Date filter for minor changes in format

Mar 3, 2019 9:40:30,734 PM
Mar 11, 2019 11:20:10,114 PM

I have to parse logs with the following formats. The first date does not have a 0 in front of the 3. This also applies to the hours portion. I am unsure how I would use the date filter for both formats.

This is my current date config. Will it have trouble reading from days and hours in the single digits?

date {
      match => ["logdate", "MMM dd, YYYY KK:mm:ss,SSS a"]
      target => "logdate"
    }

When the day is a single digit is there one space or two between it and the month?Similarly for the hour.

Just one space

OK, then "MMM dd, YYYY KK:mm:ss,SSS a" will parse both.