Skip to content

Instantly share code, notes, and snippets.

@jordansissel
Created January 22, 2015 19:23
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save jordansissel/7a889aad8bc8a4f6fb22 to your computer and use it in GitHub Desktop.
% bin/logstash -e 'filter { mutate { gsub => [ "message", "-", "none" ] } }'
hello - world
- - -
---
{
"message" => "hello none world",
"@version" => "1",
"@timestamp" => "2015-01-22T19:22:38.208Z",
"type" => "stdin",
"host" => "Macintosh.lan"
}
{
"message" => "none none none",
"@version" => "1",
"@timestamp" => "2015-01-22T19:22:38.210Z",
"type" => "stdin",
"host" => "Macintosh.lan"
}
{
"message" => "nonenonenone",
"@version" => "1",
"@timestamp" => "2015-01-22T19:22:38.210Z",
"type" => "stdin",
"host" => "Macintosh.lan"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment