# Add multiple tags with Postgresql module

**URL:** <https://discuss.elastic.co/t/add-multiple-tags-with-postgresql-module/192646>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [July 29, 2019, 8:36am UTC](https://discuss.elastic.co/t/add-multiple-tags-with-postgresql-module/192646 "2019-07-29T08:36:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ts-kazuob](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ts-kazuob/32/51799_2.png) [@ts-kazuob](https://discuss.elastic.co/u/ts-kazuob)\
**Post date:** [July 29, 2019, 8:36am UTC](https://discuss.elastic.co/t/add-multiple-tags-with-postgresql-module/192646/1 "2019-07-29T08:36:42Z")

</div>

Hi,

I would like to know if multiple tags can be added with Postgresql module. In my environment there are two postgresql containers and it shoud have different Elasticsearch indexes. Below is the current setting of filebeat module and it does not work.

**modules.d/postgresql.yml**

```
- module: postgresql
  log:
    enabled: true
    var.paths: ["/var/log/postgresql1/*.log", "/var/log/postgresql2/*.log"]
- add_tags:
    tags: ["postgres1", "postgres2"]

```

What I would like to do is that it can create distinctive elasticsearch index based on tag by using filter in Logstash. If multiple tags are not available, I'm thinking of running one more filebeat container and set different tag. But ideally one filebeat container should handle all postgresql logs to save docker machine resource.

Regards,  
Kazuo

---

<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:** [August 26, 2019, 8:36am UTC](https://discuss.elastic.co/t/add-multiple-tags-with-postgresql-module/192646/2 "2019-08-26T08:36:43Z")

</div>

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