Created
October 11, 2013 16:09
-
-
Save kovagoz/6937508 to your computer and use it in GitHub Desktop.
logstash nginx access log backfill
This file contains 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 { | |
tcp { | |
type => "nginx" | |
port => 3333 | |
} | |
} | |
filter { | |
grok { | |
type => "nginx" | |
pattern => "%{COMBINEDAPACHELOG}" | |
} | |
date { | |
type => "nginx" | |
locale => en | |
match => ["timestamp", "dd/MMM/yyyy:HH:mm:ss Z"] | |
} | |
} | |
output { | |
# stdout { | |
# debug => true | |
# } | |
elasticsearch { | |
embedded => true | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment