# Logstash stopped working (sincedb is not updated) after upgrade from 6.2.4 –\> 6.4.0 (Update 6.5 doesn't work also)

**URL:** <https://discuss.elastic.co/t/logstash-stopped-working-sincedb-is-not-updated-after-upgrade-from-6-2-4-6-4-0-update-6-5-doesnt-work-also/161335>\
**Category:** Logstash\
**Created:** [December 18, 2018, 1:20pm UTC](https://discuss.elastic.co/t/logstash-stopped-working-sincedb-is-not-updated-after-upgrade-from-6-2-4-6-4-0-update-6-5-doesnt-work-also/161335 "2018-12-18T13:20:36Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![RonGros](https://avatars.discourse-cdn.com/v4/letter/r/e9a140/32.png) [@RonGros](https://discuss.elastic.co/u/RonGros)\
**Post date:** [February 21, 2019, 3:51pm UTC](https://discuss.elastic.co/t/logstash-stopped-working-sincedb-is-not-updated-after-upgrade-from-6-2-4-6-4-0-update-6-5-doesnt-work-also/161335/21 "2019-02-21T15:51:59Z")

</div>

Okay, I think(!) I got it working with local windows folders. I am checking some more. do you want me to send you the logs with the trace?

---

<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:** [February 21, 2019, 3:53pm UTC](https://discuss.elastic.co/t/logstash-stopped-working-sincedb-is-not-updated-after-upgrade-from-6-2-4-6-4-0-update-6-5-doesnt-work-also/161335/22 "2019-02-21T15:53:16Z")

</div>

Yes but on the not working SMB case. Scrub any sensitive info first.

---

<div class="post-metadata">

**Author:** ![RonGros](https://avatars.discourse-cdn.com/v4/letter/r/e9a140/32.png) [@RonGros](https://discuss.elastic.co/u/RonGros)\
**Post date:** [February 21, 2019, 3:55pm UTC](https://discuss.elastic.co/t/logstash-stopped-working-sincedb-is-not-updated-after-upgrade-from-6-2-4-6-4-0-update-6-5-doesnt-work-also/161335/23 "2019-02-21T15:55:00Z")

</div>

Okay, will get to doing it. by the way - the local directory doesn't seem to work either. the logs look more promising - it does give some collection logs (which doesn't happen with the network drives) but the sincedb doesn't get anything into it, it stays blank

---

<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:** [February 21, 2019, 3:56pm UTC](https://discuss.elastic.co/t/logstash-stopped-working-sincedb-is-not-updated-after-upgrade-from-6-2-4-6-4-0-update-6-5-doesnt-work-also/161335/24 "2019-02-21T15:56:41Z")

</div>

Post logs for any cases that are not working as you'd expect. You can use Pastebin or Github Gists as well - drop links in the post.

---

<div class="post-metadata">

**Author:** ![RonGros](https://avatars.discourse-cdn.com/v4/letter/r/e9a140/32.png) [@RonGros](https://discuss.elastic.co/u/RonGros)\
**Post date:** [February 21, 2019, 3:59pm UTC](https://discuss.elastic.co/t/logstash-stopped-working-sincedb-is-not-updated-after-upgrade-from-6-2-4-6-4-0-update-6-5-doesnt-work-also/161335/25 "2019-02-21T15:59:45Z")

</div>

Working on it.

---

<div class="post-metadata">

**Author:** ![RonGros](https://avatars.discourse-cdn.com/v4/letter/r/e9a140/32.png) [@RonGros](https://discuss.elastic.co/u/RonGros)\
**Post date:** [February 21, 2019, 4:20pm UTC](https://discuss.elastic.co/t/logstash-stopped-working-sincedb-is-not-updated-after-upgrade-from-6-2-4-6-4-0-update-6-5-doesnt-work-also/161335/26 "2019-02-21T16:20:48Z")

</div>

Okay, took me some time to get the curl working on windows. it says both do not exist - not grok and not the date filter.

here is what the get gives me:

"host" : "win8nlpnew-001",  
"version" : "6.4.0",  
"http\_address" : "127.0.0.1:9600",  
"id" : "f31c8224-4aff-4b6c-bb2a-3c3e2e075561",  
"name" : "win8nlpnew-001",  
"loggers" : {  
"filewatch.discoverer" : "WARN",  
"filewatch.observingread" : "WARN",  
"filewatch.readmode.processor" : "WARN",  
"filewatch.sincedbcollection" : "WARN",  
"logstash.agent" : "WARN",  
"logstash.api.service" : "WARN",  
"logstash.codecs.plain" : "WARN",  
"logstash.config.source.local.configpathloader" : "WARN",  
"logstash.config.source.multilocal" : "WARN",  
"logstash.config.sourceloader" : "WARN",  
"logstash.configmanagement.extension" : "WARN",  
"logstash.filters.json" : "WARN",  
"logstash.inputs.file" : "WARN",  
"logstash.instrument.periodicpoller.deadletterqueue" : "WARN",  
"logstash.instrument.periodicpoller.jvm" : "WARN",  
"logstash.instrument.periodicpoller.os" : "WARN",  
"logstash.instrument.periodicpoller.persistentqueue" : "WARN",  
"logstash.modules.scaffold" : "WARN",  
"logstash.modules.xpackscaffold" : "WARN",  
"logstash.monitoringextension" : "WARN",  
"logstash.monitoringextension.pipelineregisterhook" : "WARN",  
"logstash.outputs.elasticsearch" : "WARN",  
"logstash.pipeline" : "WARN",  
"logstash.plugins.registry" : "WARN",  
"logstash.runner" : "WARN",  
"org.logstash.FieldReference" : "WARN",  
"org.logstash.Logstash" : "WARN",  
"org.logstash.execution.AbstractPipelineExt" : "WARN",  
"org.logstash.execution.ShutdownWatcherExt" : "WARN",  
"org.logstash.instrument.metrics.gauge.LazyDelegatingGauge" : "WARN",  
"org.logstash.plugins.pipeline.PipelineBus" : "WARN",  
"org.logstash.secret.store.SecretStoreFactory" : "WARN",  
"slowlog.logstash.codecs.plain" : "WARN",  
"slowlog.logstash.filters.json" : "WARN",  
"slowlog.logstash.inputs.file" : "WARN",  
"slowlog.logstash.outputs.elasticsearch" : "WARN"

---

<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:** [February 21, 2019, 5:01pm UTC](https://discuss.elastic.co/t/logstash-stopped-working-sincedb-is-not-updated-after-upgrade-from-6-2-4-6-4-0-update-6-5-doesnt-work-also/161335/27 "2019-02-21T17:01:41Z")

</div>

Ha! I failed to mention that those "instructions" I FYI'd are generic ones I post here and in Github issues.

You need to do:

```auto
curl -XPUT 'localhost:9600/_node/logging?pretty' -H 'Content-Type: application/json' -d'
{
  "filewatch.discoverer" : "TRACE",
  "filewatch.observingread" : "TRACE",
  "filewatch.readmode.processor" : "TRACE",
  "filewatch.sincedbcollection" : "TRACE",
  "logstash.inputs.file" : "TRACE"
}
'

```

---

<div class="post-metadata">

**Author:** ![RonGros](https://avatars.discourse-cdn.com/v4/letter/r/e9a140/32.png) [@RonGros](https://discuss.elastic.co/u/RonGros)\
**Post date:** [February 24, 2019, 11:01am UTC](https://discuss.elastic.co/t/logstash-stopped-working-sincedb-is-not-updated-after-upgrade-from-6-2-4-6-4-0-update-6-5-doesnt-work-also/161335/28 "2019-02-24T11:01:43Z")

</div>

Hi,  
Thanks!  
I had to fly home on Thursday, so continuing the work today (in Israel weekends are Friday-Saturday).  
Actually it needs to be logger.filewatch.discoverer etc.... but never mind, that was easy to understand 🙂  
The logs can be found here:  
[[https://drive.google.com/open?id=1mJEs8Z-gz5c\_oWzLCHUEAykAmCYx4VFz](https://drive.google.com/open?id=1mJEs8Z-gz5c_oWzLCHUEAykAmCYx4VFz)]  
I created two log files - one for the local directory, the other for the network. with the trace I saw that for the network the files start and stay in "ignored" mode. on the local directory it seems like the plugin understands what needs to be read but there is a crash inside, maybe because of the empty sincedb file, I am not sure.

Will be happy to hear your thoughts

---

<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:** [February 26, 2019, 10:08am UTC](https://discuss.elastic.co/t/logstash-stopped-working-sincedb-is-not-updated-after-upgrade-from-6-2-4-6-4-0-update-6-5-doesnt-work-also/161335/29 "2019-02-26T10:08:25Z")

</div>

Nice to see that you got that logging level stuff sorted.  
However, I can see the Logstash folder you shared but not the files in it.

---

<div class="post-metadata">

**Author:** ![RonGros](https://avatars.discourse-cdn.com/v4/letter/r/e9a140/32.png) [@RonGros](https://discuss.elastic.co/u/RonGros)\
**Post date:** [February 26, 2019, 11:33am UTC](https://discuss.elastic.co/t/logstash-stopped-working-sincedb-is-not-updated-after-upgrade-from-6-2-4-6-4-0-update-6-5-doesnt-work-also/161335/30 "2019-02-26T11:33:56Z")

</div>

> [@guyboertje](#):
>
> shared

Oh... let me have a look

---

<div class="post-metadata">

**Author:** ![RonGros](https://avatars.discourse-cdn.com/v4/letter/r/e9a140/32.png) [@RonGros](https://discuss.elastic.co/u/RonGros)\
**Post date:** [February 26, 2019, 11:36am UTC](https://discuss.elastic.co/t/logstash-stopped-working-sincedb-is-not-updated-after-upgrade-from-6-2-4-6-4-0-update-6-5-doesnt-work-also/161335/31 "2019-02-26T11:36:33Z")

</div>

Sorry, my bad. the files are now on the same link

---

<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:** [February 26, 2019, 12:53pm UTC](https://discuss.elastic.co/t/logstash-stopped-working-sincedb-is-not-updated-after-upgrade-from-6-2-4-6-4-0-update-6-5-doesnt-work-also/161335/32 "2019-02-26T12:53:15Z")

</div>

For the first one I think you should remove the leading / from path.

```auto
Pipeline_id:crashlog_beats
  Plugin: <LogStash::Inputs::File mode=>"read", start_position=>"beginning", path=>["/E:/CrashlogCollection/*.json"]

```

For the second the errors are due to the attempts to enable trace having a curl command appended to the JSON. Once trace is enabled things look normal.

Source: (byte)"{"filewatch.discoverer" : "TRACE","filewatch.observingread" : "TRACE","filewatch.readmode.processor" : "TRACE","filewatch.sincedbcollection" : "TRACE","logstash.inputs.file" : "TRACE"}curl -XPUT localhost:9600/\_node/logging?pretty -H Content-Type:"

---

<div class="post-metadata">

**Author:** ![RonGros](https://avatars.discourse-cdn.com/v4/letter/r/e9a140/32.png) [@RonGros](https://discuss.elastic.co/u/RonGros)\
**Post date:** [February 26, 2019, 12:54pm UTC](https://discuss.elastic.co/t/logstash-stopped-working-sincedb-is-not-updated-after-upgrade-from-6-2-4-6-4-0-update-6-5-doesnt-work-also/161335/33 "2019-02-26T12:54:14Z")

</div>

Yet it does not work.... I see that there are events any time I add a file, but sincedb remains empty

---

<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:** [February 26, 2019, 12:58pm UTC](https://discuss.elastic.co/t/logstash-stopped-working-sincedb-is-not-updated-after-upgrade-from-6-2-4-6-4-0-update-6-5-doesnt-work-also/161335/34 "2019-02-26T12:58:25Z")

</div>

In that log file the size of the file never changes. It is always 317155. Having @sincedb\_key 'unknown 0 0' for the second file is a bug.

[2019-02-24T12:46:20,063][TRACE][filewatch.discoverer] discover\_files {"count"=\>2}  
[2019-02-24T12:46:20,065][TRACE][filewatch.discoverer] discover\_files handling: {"new discovery"=\>false, "watched\_file details"=\>"\<FileWatch::WatchedFile: @filename='Test-20\_0\_0\_0-gsbrad3\_10\_147\_4\_51-crash\_18b8\_2019-02-19\_13-58-32-791.crashdata - Copy.json', @state='ignored', @recent\_states='[:watched, :watched]', @bytes\_read='317155', @bytes\_unread='0', current\_size='317155', last\_stat\_size='317155', file\_open?='false', @initial=true, @sincedb\_key='3669201093-79991-5308416 0 0'\>"}  
[2019-02-24T12:46:20,068][TRACE][filewatch.discoverer] discover\_files handling: {"new discovery"=\>false, "watched\_file details"=\>"\<FileWatch::WatchedFile: @filename='Test-20\_0\_0\_0-gsbrad3\_10\_147\_4\_51-crash\_18b8\_2019-02-19\_13-58-32-791.crashdata.json', @state='ignored', @recent\_states='[:watched, :watched]', @bytes\_read='317155', @bytes\_unread='0', current\_size='317155', last\_stat\_size='317155', file\_open?='false', @initial=true, @sincedb\_key='unknown 0 0'\>"}

---

<div class="post-metadata">

**Author:** ![RonGros](https://avatars.discourse-cdn.com/v4/letter/r/e9a140/32.png) [@RonGros](https://discuss.elastic.co/u/RonGros)\
**Post date:** [February 26, 2019, 12:59pm UTC](https://discuss.elastic.co/t/logstash-stopped-working-sincedb-is-not-updated-after-upgrade-from-6-2-4-6-4-0-update-6-5-doesnt-work-also/161335/35 "2019-02-26T12:59:42Z")

</div>

> [@Badger](#):
>
> ile the size of the file never changes. It is always 317155. Having @sincedb\_key 'unknown 0 0' for the second file is a bug.

Correct, my files never change in size - that's why I was really looking forward for the "read" mode. but I did add a file to see how it behaves, also since there were files there and the since DB was 0, I expected it to collect the files that were not collected before

---

<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:** [February 26, 2019, 1:04pm UTC](https://discuss.elastic.co/t/logstash-stopped-working-sincedb-is-not-updated-after-upgrade-from-6-2-4-6-4-0-update-6-5-doesnt-work-also/161335/36 "2019-02-26T13:04:28Z")

</div>

By the time trace was enabled it had read both files. You would need to add a file after enabling trace.

---

<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:** [February 26, 2019, 1:40pm UTC](https://discuss.elastic.co/t/logstash-stopped-working-sincedb-is-not-updated-after-upgrade-from-6-2-4-6-4-0-update-6-5-doesnt-work-also/161335/37 "2019-02-26T13:40:23Z")

</div>

About the `@sincedb_key = 'unknown 0 0'` of file `Test-20_0_0_0-gsbrad3_10_147_4_51-crash_18b8_2019-02-19_13-58-32-791.crashdata.json`...  
In another users issue I saw that if they edited the file (with notepad++) by adding a space, saving, removing the space and saving again, the file input was able to read the "inode" properly the second time. Do you see the same behaviour?  
It would be really helpful to find what is different before and after the edit (permissions?) and the difference between this file (unedited) and the other file.

---

<div class="post-metadata">

**Author:** ![RonGros](https://avatars.discourse-cdn.com/v4/letter/r/e9a140/32.png) [@RonGros](https://discuss.elastic.co/u/RonGros)\
**Post date:** [February 26, 2019, 2:39pm UTC](https://discuss.elastic.co/t/logstash-stopped-working-sincedb-is-not-updated-after-upgrade-from-6-2-4-6-4-0-update-6-5-doesnt-work-also/161335/38 "2019-02-26T14:39:52Z")

</div>

> [@guyboertje](#):
>
> r users issue I saw that if they edited the file (with notepad++) by adding a space, saving, removing the space and saving again, the file input was able to read the "inode" properly the second time. Do you see the same behaviour?  
> It would be

I don't think it is a permissions issue, as it started when we tried it on our existing sincedb which runs on the same computer but with logstash 6.2.4 which works, and the same doesn't work with 6.4.... so the file is writable.  
the empty sincedb was just for the test to give you a smaller log....

---

<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:** [February 26, 2019, 2:49pm UTC](https://discuss.elastic.co/t/logstash-stopped-working-sincedb-is-not-updated-after-upgrade-from-6-2-4-6-4-0-update-6-5-doesnt-work-also/161335/39 "2019-02-26T14:49:57Z")

</div>

At the same time there seems to be a difference in some files that give "unknown 0 0" and others that don't. At first I thought it might have something to do with two processes accessing the file at the same time (e.g locking) but the other case and yours are both in files that are "complete".

To test:

1. Start LS with a new sincedb file and a file glob pattern that would discover the file but that the file is not in place yet
2. Drop a copy of the file in place
3. Watch the logs with `discoverer` at TRACE and see what "inode" it detects
4. Stop Logstash
5. Edit the copied file as mentioned before
6. Repeat 1 through 4 again

---

<div class="post-metadata">

**Author:** ![RonGros](https://avatars.discourse-cdn.com/v4/letter/r/e9a140/32.png) [@RonGros](https://discuss.elastic.co/u/RonGros)\
**Post date:** [March 6, 2019, 7:35am UTC](https://discuss.elastic.co/t/logstash-stopped-working-sincedb-is-not-updated-after-upgrade-from-6-2-4-6-4-0-update-6-5-doesnt-work-also/161335/40 "2019-03-06T07:35:31Z")

</div>

> [@guyboertje](#):
>
> ere seems to be a difference in some files that give "unknown 0 0" and others that don't. At first I thought it might have something to do with two processes accessing the file at the same time (e.g locking) but the other case and yours are both in files that are "complete".
> 
> To test:
> 
> 1. Start LS with a new sincedb file and a file glob pattern that would discover the file but that the file is not in place yet
> 2. Drop a copy of the file in place
> 3. Watch the logs with `discoverer` at TRACE and see what "inode" it detects
> 4. Stop Logstash
> 5. Edit the copied file as mentioned before
> 6. Repeat 1 through 4 again

Hi @guyboertje,  
just to touch base - I had some busy days, will get to test it soon I hope

[Previous page](https://discuss.elastic.co/t/logstash-stopped-working-sincedb-is-not-updated-after-upgrade-from-6-2-4-6-4-0-update-6-5-doesnt-work-also/161335.md?page=1)

[Next page](https://discuss.elastic.co/t/logstash-stopped-working-sincedb-is-not-updated-after-upgrade-from-6-2-4-6-4-0-update-6-5-doesnt-work-also/161335.md?page=3)
