Created
February 9, 2012 19:38
-
-
Save tommybotten/1782314 to your computer and use it in GitHub Desktop.
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 { | |
stdin { | |
type => "apache-access" | |
} | |
} | |
filter { | |
grok { | |
type => "apache-access" | |
pattern => "%{COMBINEDAPACHELOG}" | |
patterns_dir => "/opt/logstash/etc/patterns" | |
} | |
date { | |
type => "apache-access" | |
timestamp => "dd/MMM/yyyy:HH:mm:ss Z" | |
} | |
grep { | |
match => [ "@tags", "_grokparsefailure" ] | |
negate => true | |
type => "apache-access" | |
} | |
} | |
output { | |
stdout { | |
debug => true | |
} | |
} | |
# Using for test: | |
# 127.0.0.1 - - [09/Feb/2012:17:32:31 +0100] "GET / HTTP/1.1" 505 548 "http://host/?q=test" "Agent" 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment