update logstash
parent
fd98ccac2b
commit
4daec55d61
|
@ -29,7 +29,7 @@ data:
|
|||
filebeat.inputs:
|
||||
- type: log
|
||||
paths:
|
||||
- /data/app_logs/*/logstash/*.log
|
||||
- /data/app_logs/*/*/logstash/*.log
|
||||
json.keys_under_root: true
|
||||
tags: ['json']
|
||||
|
||||
|
|
|
@ -16,13 +16,17 @@ data:
|
|||
source => "message"
|
||||
}
|
||||
}
|
||||
mutate {
|
||||
split => { "log.file.path" => "/" }
|
||||
add_field => { "env" => "%{[hostlog.file.path][2]}" }
|
||||
}
|
||||
}
|
||||
|
||||
output {
|
||||
stdout { codec => rubydebug }
|
||||
elasticsearch {
|
||||
hosts => ["http://elastic:9200"]
|
||||
index => "dev-logback-beaconfire-%{+YYYY.MM.dd}"
|
||||
index => "%{[env]}-logback-beaconfire-%{+YYYY.MM.dd}"
|
||||
}
|
||||
}
|
||||
logstash.yml: |-
|
||||
|
|
Loading…
Reference in New Issue