# Index documents daily from updated file

**URL:** https://discuss.elastic.co/t/index-documents-daily-from-updated-file/94898
**Category:** Logstash
**Created:** [July 28, 2017, 4:52am UTC](https://discuss.elastic.co/t/index-documents-daily-from-updated-file/94898 "2017-07-28T04:52:17Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![daaakeee](https://avatars.discourse-cdn.com/v4/letter/d/dbc845/32.png) [@daaakeee](https://discuss.elastic.co/u/daaakeee)
#### Post date: [July 28, 2017, 4:52am UTC](https://discuss.elastic.co/t/index-documents-daily-from-updated-file/94898/1 "2017-07-28T04:52:18Z")

</div>

Hi there! I wanted to learn, how can I index documents daily from newer file

For example, I have file search\_2017.07.27.log

> input {  
> file {  
> path =\> ['/etc/logstash/elk\_searchlogs/search\_\*']  
> start\_position =\> "beginning"  
> type =\> "searchlog"  
> ignore\_older =\> 0  
> }  
> }

I want The indexing to go the following way

1. File is uploaded to my server with djenkins
2. Then logstash takes this file and indexes it

Is it possible?

---

<div class="post-metadata">

### Author: ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)
#### Post date: [August 5, 2017, 7:53pm UTC](https://discuss.elastic.co/t/index-documents-daily-from-updated-file/94898/2 "2017-08-05T19:53:00Z")

</div>

So a new file ends up in the elk\_searchlogs directory each day and is named after the day's date? Sure, that'll work just fine and is a pretty standard use case.

---

<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: [September 2, 2017, 7:53pm UTC](https://discuss.elastic.co/t/index-documents-daily-from-updated-file/94898/3 "2017-09-02T19:53:03Z")

</div>

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