Skip to content

Instantly share code, notes, and snippets.

@torrancew
Forked from frozenfoxx/gist:6941746
Last active December 25, 2015 07:49
Show Gist options
  • Save torrancew/6941845 to your computer and use it in GitHub Desktop.
Save torrancew/6941845 to your computer and use it in GitHub Desktop.
input {
file {
type => "syslog"
path => ["/var/log/secure", "/var/log/messages"]
tags => ["syslog"]
}
pipe {
type => "edgecast-logs"
command => "zcat /home/edgecast/logs/*.log.gz"
tags => ["cdn"]
}
}
filter {
grok {
type => "edgecast-logs"
pattern => "(?<timestamp>%{YEAR}-%{MONTHNUM}-%{MONTHDAY} %{TIME}) %{INT:timetaken} %{IPORHOST:clientip} %{INT:filesize} %{IPORHOST:sourceip} %{INT:sourceport} %{NOTSPACE:response} %{INT:bytes} %{WORD:verb} %{NOTSPACE:request} - %{INT:duration} %{INT:rsbytes} "(?:%{NOTSPACE:referrer}|-)" %{QUOTEDSTRING:agent} %{INT:customerid}"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment