# Logstash syslog input filter default grok patterns

**URL:** <https://discuss.elastic.co/t/logstash-syslog-input-filter-default-grok-patterns/309938>\
**Category:** Logstash\
**Created:** [July 18, 2022, 6:21pm UTC](https://discuss.elastic.co/t/logstash-syslog-input-filter-default-grok-patterns/309938 "2022-07-18T18:21:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rugenl](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rugenl/32/12887_2.png) [@rugenl](https://discuss.elastic.co/u/rugenl)\
**Post date:** [July 18, 2022, 6:21pm UTC](https://discuss.elastic.co/t/logstash-syslog-input-filter-default-grok-patterns/309938/1 "2022-07-18T18:21:07Z")

</div>

What are the default grok patterns for the syslog input filter?

The data is from old snare, failing messages are formatted something like this:

\<135\> 07/18/2022:18:14:52 GMT HOSTNAME syslog\_message.

Thanks

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [July 18, 2022, 6:54pm UTC](https://discuss.elastic.co/t/logstash-syslog-input-filter-default-grok-patterns/309938/2 "2022-07-18T18:54:47Z")

</div>

The default value depends on ecs\_compatibility. It is set [here](https://github.com/logstash-plugins/logstash-input-syslog/blob/7a544560fd7171105f27ffd66db7dc49b542345e/lib/logstash/inputs/syslog.rb#L98). The SYSLOGLINE pattern is defined either [here](https://github.com/logstash-plugins/logstash-patterns-core/blob/f01f3f34cfab13a28b0822bdba33db41823cb1d8/patterns/ecs-v1/linux-syslog#L9) or [here](https://github.com/logstash-plugins/logstash-patterns-core/blob/f01f3f34cfab13a28b0822bdba33db41823cb1d8/patterns/legacy/linux-syslog#L9). I very much doubt it will match that date format with a timezone. You will need to write your own pattern.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [August 15, 2022, 6:55pm UTC](https://discuss.elastic.co/t/logstash-syslog-input-filter-default-grok-patterns/309938/3 "2022-08-15T18:55:41Z")

</div>

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