input { beats { port => 5044 } } output { elasticsearch { hosts => "localhost:9200" index => "postfix1-%{+YYYY.MM.dd}" } file { path => "/some/debug.txt" codec => rubydebug } }