Skip to content

Instantly share code, notes, and snippets.

@imran-baig-se
Created April 15, 2018 21:20
Show Gist options
  • Save imran-baig-se/b05f87a9a4b664afd4bd38cbec4e1dc9 to your computer and use it in GitHub Desktop.
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
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