input { tcp { port => 9251 codec => json_lines mode => server tags => ["javaapp"] } } output { elasticsearch { hosts => ["localhost:9200"] } stdout { codec => rubydebug } }