Skip to content

Instantly share code, notes, and snippets.

@Piumal1999
Created September 16, 2021 19:46
Show Gist options
  • Select an option

  • Save Piumal1999/75c3f15d79339de1a58b2e745cc8ab51 to your computer and use it in GitHub Desktop.

Select an option

Save Piumal1999/75c3f15d79339de1a58b2e745cc8ab51 to your computer and use it in GitHub Desktop.
Logstash server: /etc/logstash/conf.d/main-logstash.conf
input {
beats {
port => "5044"
}
}
# Filter part not necessary
# filter {
# grok {
# match => { "message" => "%{COMBINEDAPACHELOG}"}
# }
# geoip {
# source => "clientip"
# }
#}
output {
elasticsearch {
hosts => [ "34.131.166.152:9200" ]
index => "%{[@metadata][beat]}-%{[@metadata][version]}-%{+YYYY.MM.dd}"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment