I’ve configured an extractor on a RAW TCP input. Here’s the details:
Extractor type: Regular expression
Regular expression: ^[(\d{4}-\d{2}-\d{2}\s\d{2}:\d{2}:\d{2},\d{3})
Condition: Always try to extract
Store as field: timestamp
Extraction strategy: Copy
Converters:
Convert to date type.
Format string: yyyy-MM-dd HH:mm:ss,SSS
Time Zone:
I’m not sure what’s going on here! There’s another input with the same type of converter and it’s working. The only difference is that the date contains the time zone (Z). I’ve tried to set the “Time Zone” to UTC on this converter, but no success. Storing the conversion in a separate field works as expected. Storing the conversion in “timestamp” field seems to have an unpredictable behaviour…:-/
Does graylog definitely support timestamp field override?