Skip to content

Instantly share code, notes, and snippets.

@eldondev
Last active August 29, 2015 13:56
Show Gist options
  • Save eldondev/9194117 to your computer and use it in GitHub Desktop.
Save eldondev/9194117 to your computer and use it in GitHub Desktop.
input {
file {
path => "/var/log/tomcat7/access.log"
type => "apache-access"
}
}
filter {
grok {
type => "apache-access"
pattern => "%{COMBINEDAPACHELOG}"
}
}
output {
redis { host => "redis-host" port => "6379" data_type => "list" key => "logstash" }
}
input {
redis {
host => "127.0.0.1"
port => "6379"
# these settings should match the output of the agent
data_type => "list"
key => "logstash"
# We use the 'json' codec here because we expect to read
# json events from redis.
codec => json
}
}
output {
elasticsearch {
host => "127.0.0.1"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment