Skip to content

Instantly share code, notes, and snippets.

@ruo91
Created April 22, 2014 11:43
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 ruo91/11175488 to your computer and use it in GitHub Desktop.
Save ruo91/11175488 to your computer and use it in GitHub Desktop.
logstash shipper - File -> Redis
input {
file {
path => "/storage/logs/www-access.json"
type => nginx
format => json
# message_format => json
# format => msgpack_event
# message_format => json_event
}
}
output {
stdout { codec => rubydebug }
redis {
host => "127.0.0.1"
port => "6379"
data_type => "list"
key => "logstash"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment