Last active
February 22, 2016 09:15
-
-
Save geku/025981787924172ba805 to your computer and use it in GitHub Desktop.
Logstash config
This file contains hidden or 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
input { | |
file { | |
type => "apache" | |
path => [ "/data/*.log" ] | |
start_position => "beginning" | |
} | |
} | |
filter { | |
grok { | |
match=> { message => "%{COMBINEDAPACHELOG}" } | |
} | |
date { | |
locale => "en" | |
match => [ "timestamp", "dd/MMM/yyyy:HH:mm:ss Z" ] | |
timezone => "Europe/Rome" | |
} | |
} | |
output { | |
elasticsearch { | |
embedded => ES_EMBEDDED | |
host => "ES_HOST" | |
port => "ES_PORT" | |
protocol => "http" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment