# Scheduled CSV File Update

**URL:** <https://discuss.elastic.co/t/scheduled-csv-file-update/160435>\
**Category:** Logstash\
**Created:** [December 11, 2018, 8:11pm UTC](https://discuss.elastic.co/t/scheduled-csv-file-update/160435 "2018-12-11T20:11:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kb2295](https://avatars.discourse-cdn.com/v4/letter/k/4491bb/32.png) [@kb2295](https://discuss.elastic.co/u/kb2295)\
**Post date:** [December 11, 2018, 8:11pm UTC](https://discuss.elastic.co/t/scheduled-csv-file-update/160435/1 "2018-12-11T20:11:28Z")

</div>

Hello,

I have a conf file which uploads a CSV to logstash.

> input {  
> file {  
> path =\> "/path/to/data/data.csv"  
> start\_position =\> "beginning"  
> sincedb\_path =\>"dev/null"  
> }  
> }  
> filter {  
> csv {  
> separator =\> ","  
> columns =\> ["A", "B", "date"]  
> }  
> mutate {convert =\> ["A", "integer"]}  
> mutate {convert =\> ["B", "integer"]}  
> }  
> output {
> 
> elasticsearch {  
> hosts=\> ["xxxx"]  
> index =\> ""  
> user =\> \*\*  
> password =\> \*\*\*  
> ssl =\> true  
> ssl\_certificate\_verification =\> false  
> cacert =\> '/export1/opt/ELK\_Bin/elasticsearch-5.4.0/config/x-pack/ca/ca.crt'  
> }  
> stdout {}  
> }

I want to update this CSV every day at a certain time. Is there a way I can do schedule this job?

I'd also like the "date" field to become the timestamp field in ELK to correspond with "date" in the CSV file. So regardless of what time it was uploaded, it should reflect the "time" column in my CSV.

Can anyone help me with this? Thank you.

---

<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:** [January 8, 2019, 8:11pm UTC](https://discuss.elastic.co/t/scheduled-csv-file-update/160435/2 "2019-01-08T20:11:32Z")

</div>

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