Created
April 15, 2018 21:20
-
-
Save imran-baig-se/b05f87a9a4b664afd4bd38cbec4e1dc9 to your computer and use it in GitHub Desktop.
adding your filter for ELK path: dockers-elk/logstash/pipeline/logstash.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
filter { | |
json { | |
source => "message" | |
} | |
mutate { | |
add_field => { "index_name" => "www-log" } | |
} | |
} | |
output { | |
elasticsearch { | |
hosts => "elasticsearch:9200" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment