Hi,
I noticed the user and code documentation of the default sincedb path is not up-to-date.
I had to lookup the source code to see what was going on.
Since the commit of July 26, 2016 the behaviour of the default sincedb path has been changed:
So from the 3.1.1 version and on of the plugin.
According to the source code, the default path is
<path.data>/plugins/inputs/file
The code that should set the default path to $SINCEDB_DIR or $HOME will never be reached, also in the current situation.
# encoding: utf-8
require "logstash/namespace"
require "logstash/inputs/base"
require "logstash/codecs/identity_map_codec"
require "pathname"
require "socket" # for Socket.gethostname
require "fileutils"
require_relative "file/patch"
# Stream events from files, normally by tailing them in a manner
# similar to `tail -0F` but optionally reading them from the
# beginning.
#
# By default, each event is assumed to be one line and a line is
# taken to be the text before a newline character.
# Normally, logging will add a newline to the end of each line written.
# If you would like to join multiple log lines into one event,
# you'll want to use the multiline codec or filter.
This file has been truncated. show original
Could the user and code documentation be updated to explain this behaviour?
Tnx!
Regards.
Bjorn
system
(system)
Closed
May 3, 2017, 12:19pm
2
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.