# Last\_run\_metadata\_path file is not updating but sql\_last\_value is changing in every scheduled time

**URL:** <https://discuss.elastic.co/t/last-run-metadata-path-file-is-not-updating-but-sql-last-value-is-changing-in-every-scheduled-time/189682>\
**Category:** Logstash\
**Created:** [July 10, 2019, 7:42am UTC](https://discuss.elastic.co/t/last-run-metadata-path-file-is-not-updating-but-sql-last-value-is-changing-in-every-scheduled-time/189682 "2019-07-10T07:42:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![avinash9999](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/avinash9999/32/91409_2.png) [@avinash9999](https://discuss.elastic.co/u/avinash9999)\
**Post date:** [July 10, 2019, 7:42am UTC](https://discuss.elastic.co/t/last-run-metadata-path-file-is-not-updating-but-sql-last-value-is-changing-in-every-scheduled-time/189682/1 "2019-07-10T07:42:55Z")

</div>

I have my logstash setup on linux server. I have made two config files,  
One file is for pulling the entire records from sql server table and other file just update the the new changes.  
When I run the first file manually by direct command my last\_run\_metadata\_path file gets updated with the timestamp.  
But when I run the second file by linux service it takes the value from the last\_run\_metadata\_path file and even sql\_last\_value keeps changing in every scheduled time but that values does not update in last\_run\_metadata\_path.  
Any help would be appreciated. Thank you!

---

<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, 2019, 7:42am UTC](https://discuss.elastic.co/t/last-run-metadata-path-file-is-not-updating-but-sql-last-value-is-changing-in-every-scheduled-time/189682/2 "2019-08-07T07:42:58Z")

</div>

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