# Different index name for different filebeat instances

**URL:** <https://discuss.elastic.co/t/different-index-name-for-different-filebeat-instances/172874>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [March 18, 2019, 11:49pm UTC](https://discuss.elastic.co/t/different-index-name-for-different-filebeat-instances/172874 "2019-03-18T23:49:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![syedsfayaz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/syedsfayaz/32/46657_2.png) [@syedsfayaz](https://discuss.elastic.co/u/syedsfayaz)\
**Post date:** [March 18, 2019, 11:49pm UTC](https://discuss.elastic.co/t/different-index-name-for-different-filebeat-instances/172874/1 "2019-03-18T23:49:17Z")

</div>

Hi

Elastic stack version 6.6.1  
Setup:  
filebeat -- Elastic Search -- Kibana

I have different environments windows and Linux. I want to forward logs from multiple servers to elastic search . EX:- server1, 2, 3 to elastic search and forward logs. I can install filebeat on each server and configure it to forward logs to elastic search. Can I create a index name with the server name. So it will be easy to create a dashboard and differentiate logs coming from different servers.  
Note: i will be using modules. like IIs and may be a different module for Tomcat access logs.

If its possible where can I make these configuration changes.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [March 18, 2019, 11:51pm UTC](https://discuss.elastic.co/t/different-index-name-for-different-filebeat-instances/172874/2 "2019-03-18T23:51:47Z")

</div>

[Using Environment variable in ES index name](https://discuss.elastic.co/t/using-environment-variable-in-es-index-name/172862) should be what you want 🙂

---

<div class="post-metadata">

**Author:** ![syedsfayaz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/syedsfayaz/32/46657_2.png) [@syedsfayaz](https://discuss.elastic.co/u/syedsfayaz)\
**Post date:** [March 21, 2019, 1:27am UTC](https://discuss.elastic.co/t/different-index-name-for-different-filebeat-instances/172874/3 "2019-03-21T01:27:33Z")

</div>

@warkolm  
Can you please look at this error i'm getting.

> [@File beat throwing warning for custom index pattern](https://discuss.elastic.co/t/file-beat-throwing-warning-for-custom-index-pattern/173201):
>
> Hi I am seeing this weird issue on my file beat module 6.6.2 . When I have default configuration in the filebeat.yml and iis module enabled. The file beat sends logs fine but when I try to add an index pattern it is throwing error in logs and not sendiing logs to elastic search. Please let me know what is wrong with my configuration. Here is my configuration. #==================== Elasticsearch template setting ========================== setup.template.name: 'filebeat-win' setup.template.p…

---

<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:** [April 18, 2019, 1:27am UTC](https://discuss.elastic.co/t/different-index-name-for-different-filebeat-instances/172874/4 "2019-04-18T01:27:38Z")

</div>

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