# Filebeat index pattern's hostname is missing

**URL:** <https://discuss.elastic.co/t/filebeat-index-patterns-hostname-is-missing/187943>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [June 27, 2019, 10:59pm UTC](https://discuss.elastic.co/t/filebeat-index-patterns-hostname-is-missing/187943 "2019-06-27T22:59:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Amine\_Abed](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/amine_abed/32/48970_2.png) [@Amine\_Abed](https://discuss.elastic.co/u/Amine_Abed)\
**Post date:** [June 27, 2019, 10:59pm UTC](https://discuss.elastic.co/t/filebeat-index-patterns-hostname-is-missing/187943/1 "2019-06-27T22:59:11Z")

</div>

Hi , i have an issue that i have two machine that ship iptables log with filebeat , when creating index pattern i found only one filebeat index pattern  
i want to have index patterns by hostname  
can you help me please

---

<div class="post-metadata">

**Author:** ![Michael\_Madden](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/michael_madden/32/46640_2.png) [@Michael\_Madden](https://discuss.elastic.co/u/Michael_Madden)\
**Post date:** [June 28, 2019, 6:47pm UTC](https://discuss.elastic.co/t/filebeat-index-patterns-hostname-is-missing/187943/2 "2019-06-28T18:47:19Z")

</div>

Hello, thanks for reaching out. Would you mind including relevant portions of your `filebeat.yml` config? The following reference config suggests using a setting like the following:

`index: "filebeat-%{[agent.version]}-%{+yyyy.MM.dd}"`

[https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-reference-yml.html](https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-reference-yml.html)

---

<div class="post-metadata">

**Author:** ![Amine\_Abed](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/amine_abed/32/48970_2.png) [@Amine\_Abed](https://discuss.elastic.co/u/Amine_Abed)\
**Post date:** [June 30, 2019, 4:17am UTC](https://discuss.elastic.co/t/filebeat-index-patterns-hostname-is-missing/187943/3 "2019-06-30T04:17:06Z")

</div>

thank you for your reply @Michael_Madden  
Here is my filebeat.yml file

###################### Filebeat Configuration Example #########################

# This file is an example configuration file highlighting only the most common

# options. The filebeat.reference.yml file from the same directory contains all the

# supported options with more comments. You can use it as a reference.

# 

# You can find the full configuration reference here:

# [https://www.elastic.co/guide/en/beats/filebeat/index.html](https://www.elastic.co/guide/en/beats/filebeat/index.html)

# For more available modules and options, please see the filebeat.reference.yml sample

# configuration file.

#=========================== Filebeat inputs =============================

filebeat.inputs:

# Each - is an input. Most options can be set at the input level, so

# you can use different inputs for various configurations.

# Below are the input specific configurations.

- type: log

- /var/log/\*.log  
#- c:\programdata\elasticsearch\logs\*

#============================= Filebeat modules ===============================

filebeat.config.modules:

# Glob pattern for configuration loading

path: ${path.config}/modules.d/\*.yml

# Set to true to enable config reloading

reload.enabled: false

# Period on which files under path should be checked for changes

#reload.period: 10s

#==================== Elasticsearch template setting ==========================

setup.template.settings:  
index.number\_of\_shards: 1  
#index.codec: best\_compression  
#\_source.enabled: false

i will try you solution and keep you updated , but i have another issue ,since i have filebeat\* index pattern and an old filebeat index pattern i can't see a new index patterns of each day  
is that a normal behaviour ?

---

<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 28, 2019, 4:17am UTC](https://discuss.elastic.co/t/filebeat-index-patterns-hostname-is-missing/187943/4 "2019-07-28T04:17:24Z")

</div>

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