# Schedule csv

**URL:** <https://discuss.elastic.co/t/schedule-csv/290575>\
**Category:** Logstash\
**Created:** [November 30, 2021, 4:12pm UTC](https://discuss.elastic.co/t/schedule-csv/290575 "2021-11-30T16:12:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lnunez](https://avatars.discourse-cdn.com/v4/letter/l/5e9695/32.png) [@lnunez](https://discuss.elastic.co/u/lnunez)\
**Post date:** [November 30, 2021, 4:12pm UTC](https://discuss.elastic.co/t/schedule-csv/290575/1 "2021-11-30T16:12:51Z")

</div>

It is not possible to schedule the csv using file as input, I've tried also the approach mentioned here:  
[Cron job for CSV filter](https://discuss.elastic.co/t/cron-job-for-csv-filter/253744), which is using exec.

But as is mentioned in the documentation: ([Cron job for CSV filter](https://discuss.elastic.co/t/cron-job-for-csv-filter/253744))  
Periodically run a shell command and capture the whole output as an event.

With that in mind is not possible to use exec (I've tested).

which is the solution to scheduling csv reading?

---

<div class="post-metadata">

**Author:** ![AquaX](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aquax/32/92006_2.png) [@AquaX](https://discuss.elastic.co/u/AquaX)\
**Post date:** [December 1, 2021, 7:43pm UTC](https://discuss.elastic.co/t/schedule-csv/290575/2 "2021-12-01T19:43:39Z")

</div>

I'm not sure if this will get you exactly what you want but it may get close.  
It may be a good idea to use filebeat and then set the `scan_frequency` to see when a file is updated.  
Then send the data to a logstash beats input.

> **[Log input | Filebeat Reference \[7.15\] | Elastic](https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-input-log.html#filebeat-input-log-scan-frequency)**

---

<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:** [December 29, 2021, 7:43pm UTC](https://discuss.elastic.co/t/schedule-csv/290575/3 "2021-12-29T19:43:47Z")

</div>

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