# Logstash ingest data after any updates in CSV input

**URL:** <https://discuss.elastic.co/t/logstash-ingest-data-after-any-updates-in-csv-input/103415>\
**Category:** Logstash\
**Created:** [October 10, 2017, 6:07pm UTC](https://discuss.elastic.co/t/logstash-ingest-data-after-any-updates-in-csv-input/103415 "2017-10-10T18:07:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![cp\_el](https://avatars.discourse-cdn.com/v4/letter/c/9d8465/32.png) [@cp\_el](https://discuss.elastic.co/u/cp_el)\
**Post date:** [October 10, 2017, 6:07pm UTC](https://discuss.elastic.co/t/logstash-ingest-data-after-any-updates-in-csv-input/103415/1 "2017-10-10T18:07:33Z")

</div>

I ingested csv in elasticsearch using logstash and also put that ingesting script running in background for continues ingestion.

It's ingest if new row added to csv but if I have any row values update then it's not updating on elasticsearch, like logstash script not able to figure out that it's input csv updated.

ex. My csv content:

> ```
> 10/10/2017 10:22,Chicago,23412
> 10/10/2017 10:30,New York,67890
> 
> ```

And it's already ingested in elasticsearch.

Now I update csv as:

> ```
> 10/10/2017 10:22,Chicago,56789
> 10/10/2017 10:30,New York,67890
> 
> ```

So I have column 3rd value update in first row but after this update logstash script runing on background continuously not updating values in ealsticsearch.

Is there any parameters I have to add in my lofgstash conf.

My log stash conf as below:

```
input {
  file {
    path => "population.csv"
    start_position => "beginning"
    sincedb_path => "/dev/null"
    ignore_older => 0
  }
}
filter {
  csv {
    separator => ","
    columns => ["timestamp","city","population"]
  }

  date {
    match => ["timestamp", "MM/dd/YY HH:mm"]
    target => "timestamp_ingestion"
  }
}
output {
   elasticsearch {
     hosts => "http://localhost:9200"
     index => "data-index"
  }
stdout {}
}

```

Can you please suggest any config parameters I need to add?

---

<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:** [October 15, 2017, 7:42pm UTC](https://discuss.elastic.co/t/logstash-ingest-data-after-any-updates-in-csv-input/103415/2 "2017-10-15T19:42:54Z")

</div>

Exactly how is the CSV file being updated? Is it updated in place (overwritten)? Is a new file being created?

---

<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:** [November 12, 2017, 7:42pm UTC](https://discuss.elastic.co/t/logstash-ingest-data-after-any-updates-in-csv-input/103415/3 "2017-11-12T19:42:55Z")

</div>

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