Invalid format, date is malformed

Hi,

I am new to Graylog, encountered an error, but failed to resolve it. Please help.

Source log:
91.205.189.15 - - [25/May/2019:18:13:32] “POST /cart.do?action=addtocart&itemId=EST-21&productId=WC-SH-A01&JSESSIONID=SD10SL4FF1ADFF53066 HTTP 1.1” 200 3061 “http://www.buttercupgames.com/product.screen?productId=WC-SH-A01” “Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_4) AppleWebKit/536.5 (KHTML, like Gecko) Chrome/19.0.1084.46 Safari/536.5” 559

Use an extractor to extract the timestamp, and use a date converter to convert the date:

Format string: dd/MM/yyyy:HH:mm:ss

checked the server.log and found this error:

2019-06-18T08:20:26.714Z ERROR [Extractor] Could not apply converter [DATE] of extractor [fd013270-90e7-11e9-a001-000c295591a0].
java.lang.IllegalArgumentException: Invalid format: “25/May/2019:18:20:55” is malformed at “May/2019:18:20:55”
at org.joda.time.format.DateTimeFormatter.parseDateTime(DateTimeFormatter.java:945) ~[graylog.jar:?]
at org.joda.time.DateTime.parse(DateTime.java:160) ~[graylog.jar:?]
at org.graylog2.inputs.converters.DateConverter.convert(DateConverter.java:87) ~[graylog.jar:?]

Anyone can help point the reason? Thanks!!

did you checked what the extractor with the regex outputs?

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