Skip to content

Instantly share code, notes, and snippets.

@denstark
Created March 12, 2012 19:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save denstark/ea5587d94e2cfdfed527 to your computer and use it in GitHub Desktop.
Save denstark/ea5587d94e2cfdfed527 to your computer and use it in GitHub Desktop.
input {
syslog {
type => "syslog"
port => 514
tags => ["rdns"]
}
}
filter {
dns {
action => ["replace"]
tags => ["rdns"]
reverse => "@source_host"
}
gelfify { }
}
output {
gelf {
host => "localhost"
}
file {
gzip => true
path => "/logarchive/%{+YYYY}/%{+MM}/%{+dd}/%{@source_host}.log.gz"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment