Skip to content

Instantly share code, notes, and snippets.

@rav94
Created April 10, 2019 05:45
Show Gist options
  • Save rav94/1a2eb74f7f658598b3f46f3390685ed0 to your computer and use it in GitHub Desktop.
Save rav94/1a2eb74f7f658598b3f46f3390685ed0 to your computer and use it in GitHub Desktop.
Logstash configuration for basic filebeat log collection
input {
beats {
port => 5044
}
}
## Add your filters / logstash plugins configuration here
filter {
}
output {
elasticsearch {
hosts => "elasticsearch:9200"
index => "%{[@metadata][beat]}-%{[@metadata][version]}-%{+YYYY.MM.dd}"
}
stdout {codec => rubydebug}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment