Date filter to parse custom date


(Punit Jain) #1

Hi, I have a storage device which prints date as below:

Date: Wed Oct 26 16:13:33 JST 2016

How do I parse this date using date filter ?


#2

Hello,
I would try something like "EEE MMM dd HH:mm:ss 'JST' yyyy".


(Punit Jain) #3

doesnot seem to work time zone offset reflects 000Z

Wed Oct 2616:13:33 JST 2016 converts to 2016-10-26T20:13:33.000Z

Not sure what this 000 means


#4

I think 000 is just the milliseconds, and there's an offset of 4 hours because Elasticsearch uses UTC and I guess you don't. There's a timezone parameter for the date filter plugin, you should try with that.


(system) #5

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