Search code examples
logstashlogstash-grok

Is there a Grok pattern at logstash for following Dateformat? Wed Apr 01 23:29:47.834 2020


Hy, I have following time-format: Wed Apr 01 23:29:47.834 2020 I don´t get it, how to handle this with grok in logstash. I really hope, someone could help me.


Solution

  • According to logstash patterns documentation here you can use HTTPDERROR_DATE. The other option could be %{DAY} %{MONTH} %{MONTHDAY} %{TIME} %{YEAR}

    I tried with online grok pattern matcher and both works for me.

    Pattern supplied for test: Wed Apr 01 23:29:47.834 2020