Skip to content
Snippets Groups Projects
Commit d92554ee authored by Hannes Feldt's avatar Hannes Feldt
Browse files

Merge branch 'L2SS-1751-syslog_port_for_pis_2' into 'master'

L2SS-1751: Open syslog port

Closes L2SS-1751

See merge request !970
parents dc7c0009 31dbd845
No related branches found
No related tags found
1 merge request!970L2SS-1751: Open syslog port
...@@ -13,6 +13,7 @@ ...@@ -13,6 +13,7 @@
**/AUTHORS **/AUTHORS
**/ChangeLog **/ChangeLog
**/env **/env
!infra/env
**/pending_log_messages.db **/pending_log_messages.db
**/vscode-server.tar **/vscode-server.tar
**/*.orig **/*.orig
......
...@@ -36,6 +36,9 @@ object_storage: ...@@ -36,6 +36,9 @@ object_storage:
name: minioadmin name: minioadmin
pass: minioadmin pass: minioadmin
vector:
version: 0.39.X-distroless-static
pypcc: pypcc:
version: v1-0 version: v1-0
......
...@@ -22,11 +22,7 @@ job "log-scraping" { ...@@ -22,11 +22,7 @@ job "log-scraping" {
mode = "delay" mode = "delay"
} }
network { network {
mode = "bridge" mode = "cni/station"
port "api" {
to = 8686
host_network = "station"
}
} }
[[ if ne .station "dev" ]] [[ if ne .station "dev" ]]
...@@ -46,8 +42,7 @@ job "log-scraping" { ...@@ -46,8 +42,7 @@ job "log-scraping" {
task "vector" { task "vector" {
driver = "docker" driver = "docker"
config { config {
image = "timberio/vector:0.37.0.custom.2ca601b-distroless-static" image = "timberio/vector:[[.vector.version]]"
ports = ["api"]
[[ if eq .station "dev" ]] [[ if eq .station "dev" ]]
volumes = [ volumes = [
"/var/run/docker.sock:/var/run/docker.sock" "/var/run/docker.sock:/var/run/docker.sock"
...@@ -88,6 +83,12 @@ healthchecks.require_healthy = true ...@@ -88,6 +83,12 @@ healthchecks.require_healthy = true
address = "0.0.0.0:8686" address = "0.0.0.0:8686"
playground = false playground = false
[sources.syslog]
type = "syslog"
address = "0.0.0.0:514"
mode = "tcp"
permit_origin = [ "10.99.0.0/16" ]
[sources.docker-local] [sources.docker-local]
type = "docker_logs" type = "docker_logs"
docker_host = "/var/run/docker.sock" docker_host = "/var/run/docker.sock"
...@@ -138,12 +139,12 @@ healthchecks.require_healthy = true ...@@ -138,12 +139,12 @@ healthchecks.require_healthy = true
# # since without them it is harder to see logs # # since without them it is harder to see logs
# # of for example crashing containers # # of for example crashing containers
# type = "console" # type = "console"
# inputs = [ "nomad-flags" ] # inputs = [ "nomad-flags", "syslog" ]
# encoding.codec = "logfmt" # encoding.codec = "logfmt"
# buffer.when_full = "drop_newest" # buffer.when_full = "drop_newest"
[sinks.loki] [sinks.loki]
type = "loki" type = "loki"
inputs = [ "nomad-flags" ] inputs = [ "nomad-flags", "syslog" ]
endpoint = "http://loki.service.consul:3100" endpoint = "http://loki.service.consul:3100"
encoding.codec = "json" encoding.codec = "json"
healthcheck.enabled = true healthcheck.enabled = true
...@@ -156,7 +157,7 @@ healthchecks.require_healthy = true ...@@ -156,7 +157,7 @@ healthchecks.require_healthy = true
[[ if ne .station "dev" ]] [[ if ne .station "dev" ]]
[sinks.loki_central] [sinks.loki_central]
type = "loki" type = "loki"
inputs = [ "nomad-flags" ] inputs = [ "nomad-flags", "syslog" ]
tenant_id = "lofar" tenant_id = "lofar"
endpoint = "http://logs.service.lofar-central.consul:3100" endpoint = "http://logs.service.lofar-central.consul:3100"
encoding.codec = "json" encoding.codec = "json"
...@@ -186,16 +187,21 @@ healthchecks.require_healthy = true ...@@ -186,16 +187,21 @@ healthchecks.require_healthy = true
healthcheck.enabled = false healthcheck.enabled = false
EOF EOF
} }
kill_timeout = "30s"
}
service { service {
name = "syslog"
port = "514"
address_mode = "alloc"
check { check {
port = "api" port = "8686"
type = "http" type = "http"
path = "/health" path = "/health"
interval = "30s" interval = "30s"
timeout = "5s" timeout = "5s"
} }
} }
kill_timeout = "30s"
}
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment