Skip to content

Instantly share code, notes, and snippets.

@Nopik
Created October 25, 2012 21:50
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 Nopik/3955662 to your computer and use it in GitHub Desktop.
Save Nopik/3955662 to your computer and use it in GitHub Desktop.
input {
file {
path => "/Users/nopik/Warsztat/logstash/redis.log"
type => "r"
start_position=>"beginning"
}
}
filter {
grok {
type => "r"
pattern => [ "\[%{NUMBER:pid}\] %{MONTHDAY:md} %{MONTH:m} %{TIME:t} %{DATA:level} %{GREEDYDATA:redis_message}" ]
}
}
output {
elasticsearch {
embedded => true
}
}
@Nopik
Copy link
Author

Nopik commented Oct 25, 2012

Some data:

[54778] 22 Sep 19:49:06 * Server started, Redis version 2.4.9
[54778] 22 Sep 19:49:06 * The server is now ready to accept connections on port 6379
[54778] 22 Sep 19:49:06 - 0 clients connected (0 slaves), 922336 bytes in use

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment