Date converter fails for a slash



I am trying to parse the followin date-time string with a date converter:

2017/04/13 00:59:55

The Format String I tried is

yyyy/MM/dd HH:mm:ss

For some reason, this fails with

MapperParsingException[failed to parse [time]]; nested: IllegalArgumentException[Invalid format: “2017/04/13 00:59:55” is malformed at “/04/13 00:59:55”];

I wonder what is the right way to write the format string - I did not find the way to quote characters in the format string from the Graylog documentation.

(Philipp Ruland) #2

Hey @jtkarvo,

if I remember correctly you have to escape slashes. So try to put / (backslash) (slash) in the places where you put / (slash).

Greetings - Phil