Skip to content

Instantly share code, notes, and snippets.

@sanudatta11
Created July 10, 2019 07:49
Show Gist options
  • Save sanudatta11/699bfc3cbc14ef02739aabc56cd29c32 to your computer and use it in GitHub Desktop.
Save sanudatta11/699bfc3cbc14ef02739aabc56cd29c32 to your computer and use it in GitHub Desktop.
Medium Publication Apache Conf
input {
kafka {
bootstrap_servers => "localhost:9092"
topics => "apache"
}
}
filter {
grok {
match => { "message" => "%{COMBINEDAPACHELOG}" }
}
date {
match => [ "timestamp" , "dd/MMM/yyyy:HH:mm:ss Z" ]
}
geoip {
source => "clientip"
}
}
output {
elasticsearch {
hosts => ["localhost:9200"]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment