Skip to content

Instantly share code, notes, and snippets.

@theikkila
Created July 24, 2017 12:19
Show Gist options
  • Save theikkila/51f69a84a95560384a21783f83883430 to your computer and use it in GitHub Desktop.
Save theikkila/51f69a84a95560384a21783f83883430 to your computer and use it in GitHub Desktop.
Logstash plans
# Read files from /log/*.json and output them into listening tcp-server
logstash -e 'input { file { path => "/log/*.json" } } output { tcp { host => "0.0.0.0" port => 3333 mode => "server" codec => line { format => "%{message}" }} }'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment