Timestamp extractor not working 0 hits, 44 misses


(Blackyellowred) #1

I am trying to fix timestamp on my logs that are set 7 hrs backwards in time. It is not working, not sure why.

Configuration

  • regex: ^(\d{4}-\d{2}-\d{2})\S(\d{2}:\d{2}:\d{2}.\d{3}).$
  • replacement: $1 $2
  • replace_all:

Converters

  • date
    • date_format: yyyy-MM-dd HH:mm:ss.SSS
    • time_zone: America/Vancouver
    • locale:


(Jan Doberstein) #2

did you checked the documentation on that?: http://docs.graylog.org/en/2.4/pages/extractors.html#the-standard-date-converter


(Blackyellowred) #3

copy input extractor doesn’t work either. all misses

Is my format string right?
Message: 2018-10-18T03:49:32.000Z
Format String: yyyy-MM-dd HH:mm:ss.SSS


(Blackyellowred) #4

Ended up not needing this. I am now sending logs to syslog-ng server that fixes the date and other stuff and forwards the logs graylog


(system) #5

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