Date filter - Timezone error

I have the following date filter:

					timezone => "America/Los_Angeles"
					match => ["logtime", "M/dd/YYYY HH:mm:ss a"]

input is : 
6/30/2017 11:00:00 PM

And the expected output is: 2017-07-01T06:00:00.000Z
but the logstash is giving output as: 2017-06-30T18:00:00.000Z

I have no idea why this is happening.Is it because of PM? please help.

HH in date patterns is for 24-hour clocks. Use hh instead.

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