# Mixed logs

**URL:** <https://discuss.elastic.co/t/mixed-logs/152592>\
**Category:** Kibana\
**Created:** [October 16, 2018, 7:02am UTC](https://discuss.elastic.co/t/mixed-logs/152592 "2018-10-16T07:02:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pedro\_Cabral](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pedro_cabral/32/103308_2.png) [@Pedro\_Cabral](https://discuss.elastic.co/u/Pedro_Cabral)\
**Post date:** [October 16, 2018, 7:02am UTC](https://discuss.elastic.co/t/mixed-logs/152592/1 "2018-10-16T07:02:55Z")

</div>

Hello all,

`I have the following configurations:`

```
input {
  beats {
port => "8514"
type => "winlogbeat"
  }
}

output {
    elasticsearch {
            hosts => ["10.192.144.9:9200"]
            manage_template => false
            sniffing => true
            index => "ad-%{+YYYY.MM.dd}"
    }
}

```

and

```
input {
  beats {
    port => "8513"
    type => "winlogbeat"
   }
}
output {
        elasticsearch {
                hosts => ["10.192.144.9:9200"]
                manage_template => false
                sniffing => true
                index => "sysmon-%{+YYYY.MM.dd}"
        }
}

```

In kibana I have 2 different index pattern one ad-\* and sysmon-\* but when I see the logs I have sysmon logs with ad logs.

Can someone please tell me why this is happening and how I can fix it?  
Thanks in advance for your help.

Best Regards,  
Pedro Cabral

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [October 16, 2018, 7:15am UTC](https://discuss.elastic.co/t/mixed-logs/152592/2 "2018-10-16T07:15:26Z")

</div>

Logstash concatenates all configuration files in the directory, so unless you use [conditionals](https://www.elastic.co/guide/en/logstash/6.4/event-dependent-configuration.html) to control the flow or define [multiple pipelines](https://www.elastic.co/guide/en/logstash/6.4/multiple-pipelines.html), all data will go to all outputs. This has been discussed here a lot, so you should be able to search and find examples if needed.

---

<div class="post-metadata">

**Author:** ![Pedro\_Cabral](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pedro_cabral/32/103308_2.png) [@Pedro\_Cabral](https://discuss.elastic.co/u/Pedro_Cabral)\
**Post date:** [October 16, 2018, 8:00am UTC](https://discuss.elastic.co/t/mixed-logs/152592/3 "2018-10-16T08:00:49Z")

</div>

Thank you for your reply!  
Best Regards,  
Pedro Cabral

---

<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:** [November 13, 2018, 8:00am UTC](https://discuss.elastic.co/t/mixed-logs/152592/4 "2018-11-13T08:00:50Z")

</div>

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