Skip to content

Instantly share code, notes, and snippets.

@marianogg9
Created May 22, 2014 19: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 marianogg9/bb5d6118d040bb9c6cfc to your computer and use it in GitHub Desktop.
Save marianogg9/bb5d6118d040bb9c6cfc to your computer and use it in GitHub Desktop.
input {
s3 {
bucket => "bucket_name"
credentials => ["access","secret"]
delete => "false"
interval => "60"
#prefix => "logs/"
#'region' => 'us-east-1'
region_endpoint => "us-east-1"
type => "cloudtrail"
#sincedb_path => "/path/logstash-1.4.1/.sincedb"
}
}
filter {
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
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment