Parse date format with timezone CST

hello,

in my case, my log insert logTime like 19-5-21 11:00:00:000 CST
I parse date with format yy-M-d HH:mm:ss:SSS zzz
everything is looks good

but when I query this date field, I found that timezone is wrong
because I want CST( C hina S tandard T ime) => UTC+8
not CST( C entral S tandard T ime) => UTC-5
Is there any way to solve this problem?

Hey,

what Elasticsearch version are you trying this on?

--Alex

Hello,

I using Elasticsearch 6.3.0

It does not look like joda time is interpreting CST as china standard time, so I think the best way to solve this would be to specify the offset as -08:00 and use Z in the format.

yes I think so too, but my dilemma is that LOG is not in my control. :joy:
Thanks for your reply

you could use an script ingest processor and modify the field then and replace CST with the offset.

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