# Identify syslog message and filter it

**URL:** <https://discuss.elastic.co/t/identify-syslog-message-and-filter-it/179550>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [May 3, 2019, 2:26pm UTC](https://discuss.elastic.co/t/identify-syslog-message-and-filter-it/179550 "2019-05-03T14:26:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![raxawageme](https://avatars.discourse-cdn.com/v4/letter/r/cc9497/32.png) [@raxawageme](https://discuss.elastic.co/u/raxawageme)\
**Post date:** [May 3, 2019, 2:26pm UTC](https://discuss.elastic.co/t/identify-syslog-message-and-filter-it/179550/1 "2019-05-03T14:26:58Z")

</div>

Greetings.  
I want identify log messages received from syslog based on a regex pattern to tipify them and send to my logstash.

For e.g.: logs with 'SECURITY' will be send with`[type] = 'security'` while logs with 'SYSTEM' will be send with`[type] = 'system'`

How can I achieve that with **beats receiving** those logs and **sending to logstash**?

---

<div class="post-metadata">

**Author:** ![raxawageme](https://avatars.discourse-cdn.com/v4/letter/r/cc9497/32.png) [@raxawageme](https://discuss.elastic.co/u/raxawageme)\
**Post date:** [May 3, 2019, 2:29pm UTC](https://discuss.elastic.co/t/identify-syslog-message-and-filter-it/179550/2 "2019-05-03T14:29:03Z")

</div>

By the way, currently I'm looking at [processors' documentation](https://www.elastic.co/guide/en/beats/filebeat/current/filtering-and-enhancing-data.html). Am I on the right path?

---

<div class="post-metadata">

**Author:** ![raxawageme](https://avatars.discourse-cdn.com/v4/letter/r/cc9497/32.png) [@raxawageme](https://discuss.elastic.co/u/raxawageme)\
**Post date:** [May 3, 2019, 2:33pm UTC](https://discuss.elastic.co/t/identify-syslog-message-and-filter-it/179550/3 "2019-05-03T14:33:02Z")

</div>

I think I found a [comment](https://discuss.elastic.co/t/how-to-tag-log-files-in-filebeat-for-logstash-ingestion/44713/7) that will help.

---

<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:** [May 31, 2019, 2:33pm UTC](https://discuss.elastic.co/t/identify-syslog-message-and-filter-it/179550/4 "2019-05-31T14:33:10Z")

</div>

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