Created
December 18, 2012 08:53
-
-
Save robinsmidsrod/4326276 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
input { | |
tcp { | |
type => 'json-logger' | |
port => 3517 | |
format => "json_event" | |
} | |
} | |
filter { | |
mutate { | |
# Convert hostname => @source_host, because it's overwritten | |
# by logstash on reception of event | |
type => "json-logger" | |
replace => [ "@source_host", "%{source_host}" ] | |
remove => [ "source_host" ] | |
} | |
} | |
output { | |
# not relevant | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment