Skip to content

Instantly share code, notes, and snippets.

@tommybotten
Created February 9, 2012 19:38
Show Gist options
  • Save tommybotten/1782314 to your computer and use it in GitHub Desktop.
Save tommybotten/1782314 to your computer and use it in GitHub Desktop.
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