# How to differentiate log files sended from filebeat?

**URL:** <https://discuss.elastic.co/t/how-to-differentiate-log-files-sended-from-filebeat/173139>\
**Category:** Logstash\
**Created:** [March 20, 2019, 12:28pm UTC](https://discuss.elastic.co/t/how-to-differentiate-log-files-sended-from-filebeat/173139 "2019-03-20T12:28:09Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![A\_B](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/a_b/32/17104_2.png) [@A\_B](https://discuss.elastic.co/u/A_B)\
**Post date:** [March 20, 2019, 2:11pm UTC](https://discuss.elastic.co/t/how-to-differentiate-log-files-sended-from-filebeat/173139/2 "2019-03-20T14:11:23Z")

</div>

You could try this [Creating index depends on source](https://discuss.elastic.co/t/creating-index-depends-on-source/167061/2?u=a_b)

It is my solution as I do not like `if` statements in the output section.

---

_[View the full topic](https://discuss.elastic.co/t/how-to-differentiate-log-files-sended-from-filebeat/173139)._
