feat(logs/logstash): adding the logstash configuration
This commit is contained in:
parent
7356041e0d
commit
2f4d55e119
1 changed files with 22 additions and 0 deletions
22
logs/logstash/pipeline/logstash.conf
Normal file
22
logs/logstash/pipeline/logstash.conf
Normal file
|
|
@ -0,0 +1,22 @@
|
||||||
|
input {
|
||||||
|
gelf {
|
||||||
|
port => 12201
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
filter {
|
||||||
|
mutate {
|
||||||
|
rename => { "[full_message]" => "message" }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
output {
|
||||||
|
elasticsearch {
|
||||||
|
hosts => ["http://elasticsearch:9200"]
|
||||||
|
index => "docker-%{[container_name]}-%{+YYYY.MM.dd}"
|
||||||
|
}
|
||||||
|
|
||||||
|
stdout {
|
||||||
|
codec => rubydebug
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue