Skip to content

Instantly share code, notes, and snippets.

@objectiveSee
Last active August 29, 2015 14:26
Show Gist options
  • Save objectiveSee/c533c39e33177788f203 to your computer and use it in GitHub Desktop.
Save objectiveSee/c533c39e33177788f203 to your computer and use it in GitHub Desktop.
{
duck:true,
"french":"fries"
}
input {
stdin {
type => json
codec => json_lines
}
tcp {
port => 28777
type => "winston"
}
}
filter {
json {
source => "message"
}
}
output {
stdout { codec => rubydebug }
}
{
"message" => "{\"app\":\"logstash-dev-test\",\"level\":\"info\",\"message\":\"{\\\"duck\\\":true,\\\"french\\\":\\\"fries\\\"}\"}",
"@version" => "1",
"@timestamp" => "2015-07-28T19:49:32.063Z",
"host" => "73.212.109.60",
"type" => "winston"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment