Skip to content
Snippets Groups Projects
Commit cb2e5d38 authored by Jan David Mol's avatar Jan David Mol
Browse files

L2SS-445: Forward logs from grafana and prometheus to ELK

parent 60cbdb7f
No related branches found
No related tags found
1 merge request!159L2SS-445: Forward logs from the Docker containers to ELK
filter {
if [program] == "grafana" {
kv { }
mutate {
rename => {
"t" => "timestamp"
"lvl" => "level"
"msg" => "message"
}
uppercase => [ "level" ]
}
date {
match => [ "timestamp", "ISO8601" ]
}
}
}
filter {
if [program] == "prometheus" {
kv { }
mutate {
rename => {
"ts" => "timestamp"
"msg" => "message"
}
uppercase => [ "level" ]
}
date {
match => [ "timestamp", "ISO8601" ]
}
}
}
...@@ -23,4 +23,10 @@ services: ...@@ -23,4 +23,10 @@ services:
# - grafana-configs:/etc/grafana # - grafana-configs:/etc/grafana
ports: ports:
- "3000:3000" - "3000:3000"
logging:
driver: syslog
options:
syslog-address: udp://${HOSTNAME}:1514
syslog-format: rfc3164
tag: "{{.Name}}"
restart: unless-stopped restart: unless-stopped
...@@ -16,4 +16,10 @@ services: ...@@ -16,4 +16,10 @@ services:
- control - control
ports: ports:
- "9090:9090" - "9090:9090"
logging:
driver: syslog
options:
syslog-address: udp://${HOSTNAME}:1514
syslog-format: rfc3164
tag: "{{.Name}}"
restart: unless-stopped restart: unless-stopped
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment