# Logstash stuck after all data inserted without any error

**URL:** <https://discuss.elastic.co/t/logstash-stuck-after-all-data-inserted-without-any-error/139339>\
**Category:** Logstash\
**Created:** [July 10, 2018, 12:02pm UTC](https://discuss.elastic.co/t/logstash-stuck-after-all-data-inserted-without-any-error/139339 "2018-07-10T12:02:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![FrantisekHrdina](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/frantisekhrdina/32/34215_2.png) [@FrantisekHrdina](https://discuss.elastic.co/u/FrantisekHrdina)\
**Post date:** [July 10, 2018, 12:02pm UTC](https://discuss.elastic.co/t/logstash-stuck-after-all-data-inserted-without-any-error/139339/1 "2018-07-10T12:02:14Z")

</div>

Hi,  
I am trying to parse some mactimes and upload them to elastic using logstash. All data will get there without problem, but the logstash process won't stop, I have to stop it manualy. Also nothing is logged in /var/log/logstash/logstash-plain.log

Any help would be appreciated.

logstash version 5.6.10

/usr/share/logstash/bin/logstash -f /etc/logstash/conf.d/logstash\_csv.conf

```
input {
  file {
    path => "/path/to/my/file"
    start_position => "beginning"
    sincedb_path => "/dev/null"
  }   
} 
 
filter {
  csv {
    columns => ["Date", "Size", "Type", "Mode", "UID", "GID", "Meta", "File Name"]
    separator => ","
    skip_header => "true"
  } 
  date {
    match => ["Date", "E MMM dd yyyy HH:mm:ss"]
    target => "@timestamp"
    remove_field => ["Date"]
  }  

} 

output {
  elasticsearch {
    hosts => "localhost:9200"
    index => "metadata"
    document_type => "mactimes"
  }
  stdout {}
}
```

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [July 10, 2018, 12:08pm UTC](https://discuss.elastic.co/t/logstash-stuck-after-all-data-inserted-without-any-error/139339/2 "2018-07-10T12:08:11Z")

</div>

A file input in logstash will run forever, tailing the file, waiting to see if additional lines are written to the log. This is normal.

---

<div class="post-metadata">

**Author:** ![FrantisekHrdina](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/frantisekhrdina/32/34215_2.png) [@FrantisekHrdina](https://discuss.elastic.co/u/FrantisekHrdina)\
**Post date:** [July 10, 2018, 12:11pm UTC](https://discuss.elastic.co/t/logstash-stuck-after-all-data-inserted-without-any-error/139339/3 "2018-07-10T12:11:23Z")

</div>

Oh, I didn't know that. However, thank you for your answer 🙂 !

---

<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:** [August 7, 2018, 12:11pm UTC](https://discuss.elastic.co/t/logstash-stuck-after-all-data-inserted-without-any-error/139339/4 "2018-08-07T12:11:28Z")

</div>

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