Search code examples
logstashlogstash-configuration

What file should sincedb_path be in Logstash? Any example?


Upon research on XML plugin of Logstash, I found example. When I run this config, there is an exception Error: No such file or directory -/dev/null at sincedb_path => "/dev/null". From the enter link description here, it says

Path of the sincedb database file (keeps track of the current position of monitored log files) that will be written to disk. The default will write sincedb files to <path.data>/plugins/inputs/file NOTE: it must be a file path and not a directory path

which I still don't understand. My question is what is the file path for sincedb_path should be let's say I am running it in Window 10?


Solution

  • If you are running on Windows and you do not want the in-memory sincedb to be persisted across restarts then you can set sincedb_path to "NUL", which is the Windows equivalent of UNIX's "/dev/null".