# Importing Dynamic named file from logstash to elasticsearch in a single index

**URL:** https://discuss.elastic.co/t/importing-dynamic-named-file-from-logstash-to-elasticsearch-in-a-single-index/265434
**Category:** Logstash
**Created:** [February 25, 2021, 5:19am UTC](https://discuss.elastic.co/t/importing-dynamic-named-file-from-logstash-to-elasticsearch-in-a-single-index/265434 "2021-02-25T05:19:21Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Sagar\_Mandal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sagar_mandal/32/57073_2.png) [@Sagar\_Mandal](https://discuss.elastic.co/u/Sagar_Mandal)
#### Post date: [February 25, 2021, 5:19am UTC](https://discuss.elastic.co/t/importing-dynamic-named-file-from-logstash-to-elasticsearch-in-a-single-index/265434/1 "2021-02-25T05:19:21Z")

</div>

Hi Team,

So let's just say I'm receiving some dynamic named files based on today's date like,

```
somefile-25-02-2021.csv  
somefile-26-02-2021.csv
somefile-27-02-2021.csv
somefile-28-02-2021.csv

```

and I want to increment the daily data into a single index, but if I use filebeat and use \* at the end of the directory it will pick up all the files on a daily basis, not the one I received today.

so any solution for this? Like what should i use to push data into a single index with logstash or file beat

Regards,  
Sagar Mandal

---

<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: [March 25, 2021, 5:19am UTC](https://discuss.elastic.co/t/importing-dynamic-named-file-from-logstash-to-elasticsearch-in-a-single-index/265434/2 "2021-03-25T05:19:48Z")

</div>

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