Date filter showing error


(Gokul Kathirvel) #1

date{
match=>{"date","yyyy-mm-dd hh:mm:ss:sss","ISO8601"}
target="updated_date"
}
My input timestamp will be:2018-07-09T06:36:44.254Z"

exception=>"LogStash::ConfigurationError", :message=>"Expected one of #, => at line 31(ie match line), column 20 (byte 778) after filter


#2

Can you show us the complete error message? That appears to be truncated.

You appear to be missing a > after target=.


(Magnus B├Ąck) #3

match=>{"date","yyyy-mm-dd hh:mm:ss:sss","ISO8601"}

Use [ and ] instead of { and }.


(Gokul Kathirvel) #4

thank you all for your replies


(system) #5

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.