# How to make difference between 2 source of logs in Logstash input

**URL:** <https://discuss.elastic.co/t/how-to-make-difference-between-2-source-of-logs-in-logstash-input/266709>\
**Category:** Logstash\
**Created:** [March 9, 2021, 2:50pm UTC](https://discuss.elastic.co/t/how-to-make-difference-between-2-source-of-logs-in-logstash-input/266709 "2021-03-09T14:50:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Abdelhalim](https://avatars.discourse-cdn.com/v4/letter/a/838e76/32.png) [@Abdelhalim](https://discuss.elastic.co/u/Abdelhalim)\
**Post date:** [March 9, 2021, 2:50pm UTC](https://discuss.elastic.co/t/how-to-make-difference-between-2-source-of-logs-in-logstash-input/266709/1 "2021-03-09T14:50:28Z")

</div>

Hello everyone,

I want to send log of the "auth.log" file using `system` module of filebeat, and I have another file that I want to parse using logstash (as there is no module for that type of log).  
And as I know, there is no possibility to enable both output `logstash` and `Elasticsearch` in filebeat. so I want to send both logs to logstash and then for the `auth.log` I won't apply any filter, and for the other logs I wll apply logstash filter

My question is:  
Once the logs arrived to logstash input, How can I make the difference between the 2 sources of logs to be able to add tags to don't apply any filter to the `auth.log` file

```auto
   beats {
      port => "5044"
      host => "10.10.10.1"
      ssl => true
      ssl_certificate_authorities => ["/etc/logstash/certs/ca.crt"]
      ssl_certificate => "/etc/logstash/certs/logstash.crt"
      ssl_key => "/etc/logstash/certs/logstash.pkcs8.key"
      ssl_verify_mode => "force_peer"
      type => "VYOS"
    }

```

If I do that, it means all the logs coming from filebeat, will take the `VYOS` tag !

Could you please help me!  
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:** [March 9, 2021, 3:35pm UTC](https://discuss.elastic.co/t/how-to-make-difference-between-2-source-of-logs-in-logstash-input/266709/2 "2021-03-09T15:35:50Z")

</div>

You can use the [fields](https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-input-log.html#filebeat-input-log-fields) option of a filebeat log input to tag the different types of data.

---

<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:** [April 6, 2021, 3:35pm UTC](https://discuss.elastic.co/t/how-to-make-difference-between-2-source-of-logs-in-logstash-input/266709/3 "2021-04-06T15:35:51Z")

</div>

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