# Filebeat-\* as Index in Elasticsearch Input plugin in Logstash Config

**URL:** https://discuss.elastic.co/t/filebeat-as-index-in-elasticsearch-input-plugin-in-logstash-config/315273
**Category:** Logstash
**Created:** [September 27, 2022, 2:32pm UTC](https://discuss.elastic.co/t/filebeat-as-index-in-elasticsearch-input-plugin-in-logstash-config/315273 "2022-09-27T14:32:37Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![aji.shinde7](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aji.shinde7/32/115498_2.png) [@aji.shinde7](https://discuss.elastic.co/u/aji.shinde7)
#### Post date: [September 27, 2022, 2:32pm UTC](https://discuss.elastic.co/t/filebeat-as-index-in-elasticsearch-input-plugin-in-logstash-config/315273/1 "2022-09-27T14:32:38Z")

</div>

Hello Experts,

Expecting replies from you 🙂

I have created a Logstash Config file, which takes Elasticsearch Index ( filebeat-7.16.3-2022.09.16-000020) as Input.

Now that index is full and new index is created automatically and data stopped flowing as new data is in new Index ( filebeat-7.16.3-2022.09.23-000021)

so , I used " filebeat-\* " index (Index Pattern) , but it didn't worked.

Is there any additional setting to use Index Pattern / Wildcard as Index in Logstash Input ?

Working Code:

```auto

input {
    elasticsearch {
        hosts => ["----"]
        ca_file => "----"
        user => "----"
        password => "----"
        ssl => true		
        index => "filebeat-7.16.3-2022.09.16-000020"
        docinfo => true
        scroll => "5m"
        schedule => "59 23 * * *" #Run every day at 23:59
        query => '{ "query": { "match": { "host.hostname" : "abcde1234" } }}'
    }
}

```

Need as below:

```auto

input {
    elasticsearch {
        hosts => ["----"]
        ca_file => "----"
        user => "----"
        password => "----"
        ssl => true		
        index => "filebeat-*"
        docinfo => true
        scroll => "5m"
        schedule => "59 23 * * *" #Run every day at 23:39
        query => '{ "query": { "match": { "host.hostname" : "abcde1234" } }}'
    }
}

```

Regards,  
Ajit Shinde  
India

---

<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: [October 25, 2022, 2:32pm UTC](https://discuss.elastic.co/t/filebeat-as-index-in-elasticsearch-input-plugin-in-logstash-config/315273/2 "2022-10-25T14:32:46Z")

</div>

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