# Logs not moved from Logstash to Elasticsearch

**URL:** <https://discuss.elastic.co/t/logs-not-moved-from-logstash-to-elasticsearch/64683>\
**Category:** Logstash\
**Created:** [November 2, 2016, 8:54am UTC](https://discuss.elastic.co/t/logs-not-moved-from-logstash-to-elasticsearch/64683 "2016-11-02T08:54:48Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![manojvenkat](https://avatars.discourse-cdn.com/v4/letter/m/e36b37/32.png) [@manojvenkat](https://discuss.elastic.co/u/manojvenkat)\
**Post date:** [November 2, 2016, 8:54am UTC](https://discuss.elastic.co/t/logs-not-moved-from-logstash-to-elasticsearch/64683/1 "2016-11-02T08:54:48Z")

</div>

Dear All,

I have installed ELK on single server. Now I am just trying to read a sample log file in my tmp folder andoutput it to elasticsearch and display in Kibana .

Below is my logstash configuration file:

input {  
file {  
path =\> "\tmp\Test.log"  
start\_position =\> "beginning"  
}  
}

output {  
elasticsearch { hosts =\> ["localhost:9200"] }  
stdout { codec =\> rubydebug }  
}

But in Kibana I am not able to view the contents.

I checked Elasticsearch data directory :/var/lib/elasticsearch/elasticsearch/nodes and found 0 files in it. I understand logs not moved from logstash to elasticsearch. Please advice.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [November 2, 2016, 9:14am UTC](https://discuss.elastic.co/t/logs-not-moved-from-logstash-to-elasticsearch/64683/2 "2016-11-02T09:14:31Z")

</div>

Have a read of [https://www.elastic.co/guide/en/logstash/current/plugins-inputs-file.html#\_tracking\_of\_current\_position\_in\_watched\_files](https://www.elastic.co/guide/en/logstash/current/plugins-inputs-file.html#_tracking_of_current_position_in_watched_files)

---

<div class="post-metadata">

**Author:** ![manojvenkat](https://avatars.discourse-cdn.com/v4/letter/m/e36b37/32.png) [@manojvenkat](https://discuss.elastic.co/u/manojvenkat)\
**Post date:** [November 2, 2016, 9:35am UTC](https://discuss.elastic.co/t/logs-not-moved-from-logstash-to-elasticsearch/64683/3 "2016-11-02T09:35:58Z")

</div>

Mark Thanks for reply. I verified the link and did --configtest the configuration file and It seems to be OK.

[root@ip-10-32-71-115 bin]# ./logstash --configtest -f /etc/logstash/conf.d/syslog-elasticsearch.conf  
Picked up \_JAVA\_OPTIONS: -Xmx2048m -Xms1024m  
Configuration OK

Please suggest what else could be the other reasons.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [November 2, 2016, 9:36am UTC](https://discuss.elastic.co/t/logs-not-moved-from-logstash-to-elasticsearch/64683/4 "2016-11-02T09:36:27Z")

</div>

That is not what the link was about. Read about sincedb.

---

<div class="post-metadata">

**Author:** ![manojvenkat](https://avatars.discourse-cdn.com/v4/letter/m/e36b37/32.png) [@manojvenkat](https://discuss.elastic.co/u/manojvenkat)\
**Post date:** [November 2, 2016, 10:11am UTC](https://discuss.elastic.co/t/logs-not-moved-from-logstash-to-elasticsearch/64683/5 "2016-11-02T10:11:52Z")

</div>

I have updated config file with sincedb details. But still not seeing the logs moved to elasticsearch. Please advice.

input {  
file {  
path =\> "/tmp/Test.log"  
type =\> "log"  
start\_position =\> "beginning"  
sincedb\_path =\> "/tmp/loc"  
sincedb\_write\_interval =\> 10  
}  
}

---

<div class="post-metadata">

**Author:** ![guyboertje](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/guyboertje/32/31592_2.png) [@guyboertje](https://discuss.elastic.co/u/guyboertje)\
**Post date:** [November 2, 2016, 10:40am UTC](https://discuss.elastic.co/t/logs-not-moved-from-logstash-to-elasticsearch/64683/6 "2016-11-02T10:40:18Z")

</div>

@manojvenkat

- What version of LS are you using?
- Is the last modified date of the file `/tmp/Test.log` more than 24 hours ago? if yes then either `touch` it or set `ignore_older` to zero in the file config.

---

<div class="post-metadata">

**Author:** ![manojvenkat](https://avatars.discourse-cdn.com/v4/letter/m/e36b37/32.png) [@manojvenkat](https://discuss.elastic.co/u/manojvenkat)\
**Post date:** [November 2, 2016, 3:43pm UTC](https://discuss.elastic.co/t/logs-not-moved-from-logstash-to-elasticsearch/64683/7 "2016-11-02T15:43:44Z")

</div>

Hi Guyboertje, Thanks for reply.

1. Logstash Version is 2.4  
2.I created Test.log file few hours back.

---

<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:** [July 6, 2017, 4:31am UTC](https://discuss.elastic.co/t/logs-not-moved-from-logstash-to-elasticsearch/64683/8 "2017-07-06T04:31:30Z")

</div>


