# Tags in modules

**URL:** <https://discuss.elastic.co/t/tags-in-modules/156066>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [November 9, 2018, 2:40pm UTC](https://discuss.elastic.co/t/tags-in-modules/156066 "2018-11-09T14:40:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![shiv94](https://avatars.discourse-cdn.com/v4/letter/s/bc8723/32.png) [@shiv94](https://discuss.elastic.co/u/shiv94)\
**Post date:** [November 9, 2018, 2:40pm UTC](https://discuss.elastic.co/t/tags-in-modules/156066/1 "2018-11-09T14:40:40Z")

</div>

Can we use tags in modules, I was trying to tag the logs in elasticsearch module but the tag is not assigned to the particular path

- module: elasticsearch  
server:  
enabled: true  
var.paths: ["/var/log/elasticsearch/server1/\*.log"]  
tags: ["elasticsearch"]

In the kibana ,

| t prospector.type | |
| --- | --- |
| | log |
| t service.name | |
| | elasticsearch |
| t source | |
| | /var/log/elasticsearch/server1/xxx.log |
| t tags | |
| | beats\_input\_codec\_plain\_applied |
| t type | |
| | beats |

---

<div class="post-metadata">

**Author:** ![steffens](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/steffens/32/79630_2.png) [@steffens](https://discuss.elastic.co/u/steffens)\
**Post date:** [November 12, 2018, 8:45pm UTC](https://discuss.elastic.co/t/tags-in-modules/156066/2 "2018-11-12T20:45:01Z")

</div>

I think "tags" is no module setting, but an input setting. Try with:

```auto
input:
  tags: ["elasticsearch"]

```

---

<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:** [December 10, 2018, 8:45pm UTC](https://discuss.elastic.co/t/tags-in-modules/156066/3 "2018-12-10T20:45:04Z")

</div>

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