Skip to content

Instantly share code, notes, and snippets.

@marianogg9
Created May 20, 2014 18:45
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 marianogg9/aced8421fc169350fdfa to your computer and use it in GitHub Desktop.
Save marianogg9/aced8421fc169350fdfa to your computer and use it in GitHub Desktop.
input {
redis {
host => "redis_server"
data_type => "list"
key => "cloudtrail"
type => "json"
}
}
filter {
if ("splitted" in [tags]) {
date {
match => ["eventTime", "ISO8601"]
'remove_tag' => ['splitted']
'add_tag' => ['cloudtrail']
}
ruby {
'code' => '["responseElements","requestParameters"].each { |field| event[field] = event[field].inspect } '
}
}
}
output {
stdout { codec => rubydebug
}
elasticsearch {
cluster => "logstash"
host => "ES_server"
embedded => "false"
protocol => "http"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment