# Filebeat writting on 2 different indices

**URL:** <https://discuss.elastic.co/t/filebeat-writting-on-2-different-indices/307859>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [June 22, 2022, 9:49am UTC](https://discuss.elastic.co/t/filebeat-writting-on-2-different-indices/307859 "2022-06-22T09:49:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Elie\_Sbat](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/elie_sbat/32/69089_2.png) [@Elie\_Sbat](https://discuss.elastic.co/u/Elie_Sbat)\
**Post date:** [June 22, 2022, 9:49am UTC](https://discuss.elastic.co/t/filebeat-writting-on-2-different-indices/307859/1 "2022-06-22T09:49:00Z")

</div>

Hello,

I am ELK cluster v8 with filebeat v8.1.0 ot ship application logs.  
I have 2 different indices one for proxy and the other for owa.

The name of the indices are:

- filebeat-8.1.0 for proxy logs
- filebeat-8.1.0-owa for owa logs

logs config:

```auto
if [type] == "filebeat" {
elasticsearch {
       hosts => [" "]
       cacert => ' '
       user => "elas"
       password => ""
       index => "filebeat-8.1.0"
       action => "create"
}
}

```

```auto
else if [type] == "owa"
elasticsearch {
         hosts => [" "]
         cacert => ' '
         user => "elas"
         password => " "
          index => "filebeat-8.1.0-owa"
          action => "create"
}
}

```

The owa filebeat is writting to proxy filebeat but not vice versa.

dataviews:  
filebeat-\*  
filebeat-8.1.0-owa\*

is it related to the index name that is considering filebeat-8.1.0-owa is being a sub of filebeat-\*

how to solve this issue and let each one write to its own index.

Thanks,

---

<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 20, 2022, 11:49am UTC](https://discuss.elastic.co/t/filebeat-writting-on-2-different-indices/307859/2 "2022-07-20T11:49:54Z")

</div>

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