# Filebeat ingest pipeline grok pattern

**URL:** <https://discuss.elastic.co/t/filebeat-ingest-pipeline-grok-pattern/131168>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [May 9, 2018, 12:41pm UTC](https://discuss.elastic.co/t/filebeat-ingest-pipeline-grok-pattern/131168 "2018-05-09T12:41:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vijayakumar\_Kannan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vijayakumar_kannan/32/34873_2.png) [@Vijayakumar\_Kannan](https://discuss.elastic.co/u/Vijayakumar_Kannan)\
**Post date:** [May 9, 2018, 12:41pm UTC](https://discuss.elastic.co/t/filebeat-ingest-pipeline-grok-pattern/131168/1 "2018-05-09T12:41:06Z")

</div>

in path location /usr/share/filebeat/module/system/syslog/ingest/pipeline.json following pattern code grok pattern is confusing. why the double slash \\ comes for [%{POSINT:system.syslog.pid}\]

```
                        "grok": {
                            "field": "message",
                            "patterns": [
                                    "%{SYSLOGTIMESTAMP:system.syslog.timestamp} %{SYSLOGHOST:system.syslog.hostname} %{DATA:system.syslog.program}(?:\\[%{POSINT:system.syslog.pid}\\])?: %{GREEDYMULTILINE:system.syslog.message}",
```

---

<div class="post-metadata">

**Author:** ![Dvikas](https://avatars.discourse-cdn.com/v4/letter/d/a9adbd/32.png) [@Dvikas](https://discuss.elastic.co/u/Dvikas)\
**Post date:** [May 9, 2018, 12:48pm UTC](https://discuss.elastic.co/t/filebeat-ingest-pipeline-grok-pattern/131168/2 "2018-05-09T12:48:47Z")

</div>

I think this is how the data pattern would be.If possible can you post the log related to that grok pattern.

---

<div class="post-metadata">

**Author:** ![Vijayakumar\_Kannan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vijayakumar_kannan/32/34873_2.png) [@Vijayakumar\_Kannan](https://discuss.elastic.co/u/Vijayakumar_Kannan)\
**Post date:** [May 9, 2018, 1:47pm UTC](https://discuss.elastic.co/t/filebeat-ingest-pipeline-grok-pattern/131168/3 "2018-05-09T13:47:52Z")

</div>

> [@Vijayakumar\_Kannan](#):
>
> (?:

\\ matches literly \ but in the line it doesn't has \

---

<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:** [June 6, 2018, 1:47pm UTC](https://discuss.elastic.co/t/filebeat-ingest-pipeline-grok-pattern/131168/4 "2018-06-06T13:47:55Z")

</div>

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