input { tcp { port => 12345 codec => json { charset => "UTF-8" } } } output { elasticsearch { hosts => "127.0.0.1" index => "logstash-%{+YYYY.MM.dd}" document_type => "test" } }