How to use Unix Timestamp field for Log defaultDateFormats field

Comments

1 comment

  • Avatar
    Harinder Bhandari

    Unix epoch timestamps are supported in the following formats:

    • 10 digit epoch time format surrounded by brackets (or followed by a comma). The digits must be at the very start of the message. For example, [1234567890] or [1234567890, other] followed by the rest of the message.
    • 13 digit epoch time. The 13 digits must be at the very start of the message. For example, 1234567890123... followed by the rest of the message.

    If the epoch timestamp is not the first timestamp starting from left, you have to use "Specifying a custom timestamp format" as explained in the link you provided for "Timestamps, Time Zones, Time Ranges, and Date Formats". 

    Based on the example you have given, you can use this Regex for specifying the custom timestamp format:

    \"timestamp"\:(.*?)

    Hope this helps.

     

    1
    Comment actions Permalink

Please sign in to leave a comment.