filter { json { source => "message" } date { match => ["time", "ISO8601"] target => "@timestamp" } } output { elasticsearch { hosts => ["localhost"] index => "%{type}-%{dateStr}" codec => json } }