# Receiving logs for only one of the index

**URL:** <https://discuss.elastic.co/t/receiving-logs-for-only-one-of-the-index/181462>\
**Category:** Logstash\
**Created:** [May 16, 2019, 5:51pm UTC](https://discuss.elastic.co/t/receiving-logs-for-only-one-of-the-index/181462 "2019-05-16T17:51:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Godson\_Raju](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/godson_raju/32/46189_2.png) [@Godson\_Raju](https://discuss.elastic.co/u/Godson_Raju)\
**Post date:** [May 16, 2019, 5:51pm UTC](https://discuss.elastic.co/t/receiving-logs-for-only-one-of-the-index/181462/1 "2019-05-16T17:51:19Z")

</div>

I am using linux centos.

This is my filebeat.yml file.  
#=========================== Filebeat inputs =============================

filebeat.inputs:

- type: log  
enabled: true  
paths:

- type: log  
enabled: true  
paths:

- type: log  
enabled: true  
paths:

- type: log  
enabled: true  
paths:

and here is the logstash.conf :

input {  
beats {  
port =\> "5044"  
}  
}

output {

```
            elasticsearch {
                    hosts => ["localhost:9200"]
                    manage_template => false
                    index => "%{[fields][log_type]}-log"

            }

```

}

All the indexes are getting created, but only one of the index is showing the data. The rest of the indexes got some data for some seconds, but then it stopped.

Please help me out here.  
Thank you

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [May 20, 2019, 7:01am UTC](https://discuss.elastic.co/t/receiving-logs-for-only-one-of-the-index/181462/2 "2019-05-20T07:01:12Z")

</div>

Please format your Filebeat config as it could be an error there causing this. I see some curly braces there which I do not is OK. Have a look at [the documentation](https://www.elastic.co/guide/en/beats/filebeat/7.0/filebeat-input-log.html) for an example of what it should look like.

---

<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:** [June 17, 2019, 7:08am UTC](https://discuss.elastic.co/t/receiving-logs-for-only-one-of-the-index/181462/3 "2019-06-17T07:08:08Z")

</div>

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