# Can I use beat input in filebeat.yml and modules with different tag?

**URL:** <https://discuss.elastic.co/t/can-i-use-beat-input-in-filebeat-yml-and-modules-with-different-tag/276114>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [June 16, 2021, 9:49am UTC](https://discuss.elastic.co/t/can-i-use-beat-input-in-filebeat-yml-and-modules-with-different-tag/276114 "2021-06-16T09:49:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![venkatesh\_prasanth](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/venkatesh_prasanth/32/89319_2.png) [@venkatesh\_prasanth](https://discuss.elastic.co/u/venkatesh_prasanth)\
**Post date:** [June 16, 2021, 9:49am UTC](https://discuss.elastic.co/t/can-i-use-beat-input-in-filebeat-yml-and-modules-with-different-tag/276114/1 "2021-06-16T09:49:54Z")

</div>

Hi, I am using filebeat. i use apache module to collect log from apache. but want to collect the log from tomcat and index it in another index.

can i use filebeat input in filebeat.yml and module in same time?

but i want to give separate tag for filebeat input as well as tag in general setting. is this possible ?

i want to use filebeat input and module with different tags in same filebeat.yml.so that using logstash i can index it separately with tags.

or is there any possible to tag each module.

---

<div class="post-metadata">

**Author:** ![legoguy1000](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/legoguy1000/32/54301_2.png) [@legoguy1000](https://discuss.elastic.co/u/legoguy1000)\
**Post date:** [June 16, 2021, 2:39pm UTC](https://discuss.elastic.co/t/can-i-use-beat-input-in-filebeat-yml-and-modules-with-different-tag/276114/2 "2021-06-16T14:39:20Z")

</div>

Yes, some modules you can set `var.tags` to set the tags you want. in this case you will override the default tags. For the regular input, you should be able to just add a `tags: ` field, [Log input | Filebeat Reference [7.13] | Elastic](https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-input-log.html#_tags_11).

---

<div class="post-metadata">

**Author:** ![venkatesh\_prasanth](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/venkatesh_prasanth/32/89319_2.png) [@venkatesh\_prasanth](https://discuss.elastic.co/u/venkatesh_prasanth)\
**Post date:** [June 17, 2021, 4:10am UTC](https://discuss.elastic.co/t/can-i-use-beat-input-in-filebeat-yml-and-modules-with-different-tag/276114/3 "2021-06-17T04:10:22Z")

</div>

thanks i will try

---

<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:** [July 15, 2021, 6:10am UTC](https://discuss.elastic.co/t/can-i-use-beat-input-in-filebeat-yml-and-modules-with-different-tag/276114/4 "2021-07-15T06:10:50Z")

</div>

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