# Elk stucked when input data from local file

**URL:** <https://discuss.elastic.co/t/elk-stucked-when-input-data-from-local-file/84658>\
**Category:** Logstash\
**Created:** [May 5, 2017, 5:53am UTC](https://discuss.elastic.co/t/elk-stucked-when-input-data-from-local-file/84658 "2017-05-05T05:53:22Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![JIELOGAN](https://avatars.discourse-cdn.com/v4/letter/j/67e7ee/32.png) [@JIELOGAN](https://discuss.elastic.co/u/JIELOGAN)\
**Post date:** [May 5, 2017, 5:53am UTC](https://discuss.elastic.co/t/elk-stucked-when-input-data-from-local-file/84658/1 "2017-05-05T05:53:22Z")

</div>

hi i wanted import my data to elasticsearch through logstash ,the logstash.conf is  
`input {  
file {  
path =\> "/home/data/accounts.json"  
}  
}

output {  
elasticsearch {  
hosts =\> ["172.16.0.10:9200"]  
index =\> "accounts"  
}  
}

but when i run this, just show  
Sending Logstash's logs to /var/log/logstash which is now configured via log4j2.properties`  
and stucked here,no any outputs,no errors show.  
im so confused,could you help me ?  
i just installed elasticsearch5.3, kibana5.3, logstash5.3, x-pack5.3

---

<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:** [May 5, 2017, 7:22am UTC](https://discuss.elastic.co/t/elk-stucked-when-input-data-from-local-file/84658/2 "2017-05-05T07:22:52Z")

</div>

Logstash is tailing the input file and waiting for more data to be added to it. Please read the file input documentation. Pay special attention to what's said about `sincedb_path` and `start_position`.

---

<div class="post-metadata">

**Author:** ![JIELOGAN](https://avatars.discourse-cdn.com/v4/letter/j/67e7ee/32.png) [@JIELOGAN](https://discuss.elastic.co/u/JIELOGAN)\
**Post date:** [May 5, 2017, 8:37am UTC](https://discuss.elastic.co/t/elk-stucked-when-input-data-from-local-file/84658/3 "2017-05-05T08:37:30Z")

</div>

thanks,i read the file used the sincedb\_path and start\_position,but still the same problem.i don't know why this happened,i want know why,so i can solve this quickly,anyway thankyou for your reply

---

<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:** [May 5, 2017, 8:55am UTC](https://discuss.elastic.co/t/elk-stucked-when-input-data-from-local-file/84658/4 "2017-05-05T08:55:58Z")

</div>

So what did you try, exactly?

---

<div class="post-metadata">

**Author:** ![JIELOGAN](https://avatars.discourse-cdn.com/v4/letter/j/67e7ee/32.png) [@JIELOGAN](https://discuss.elastic.co/u/JIELOGAN)\
**Post date:** [May 5, 2017, 9:08am UTC](https://discuss.elastic.co/t/elk-stucked-when-input-data-from-local-file/84658/5 "2017-05-05T09:08:14Z")

</div>

i tried sincedb\_path="/dev/null" and start\_position="beginning". also tried output to a local file, renamed the input filename...same situation...but i used`input { stdin { } } output { stdout {} }` in my conf ,it is right. so the problem is caused from the conf

---

<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:** [June 2, 2017, 9:16am UTC](https://discuss.elastic.co/t/elk-stucked-when-input-data-from-local-file/84658/6 "2017-06-02T09:16:31Z")

</div>

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