Installed and configured the logstash-filter-json filter for message parsing in JSON out of the box.

This commit is contained in:
Michael Tarleton 2016-06-13 18:13:21 -05:00
parent 0836021533
commit d84dfb34e0
2 changed files with 11 additions and 1 deletions

View File

@ -1 +1,4 @@
FROM logstash:latest
# Install plugins
RUN logstash-plugin install logstash-filter-json

View File

@ -6,6 +6,13 @@ input {
## Add your filters here
# Added a default json filter for parsing the "message" field
filter {
json {
source => "message"
}
}
output {
elasticsearch {
hosts => "elasticsearch:9200"