Skip to content

Document that the SINCEDB_DIR variable is the first pick for sincedb #102

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 9 additions & 7 deletions lib/logstash/inputs/file.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,15 @@
# left off without missing the lines that were added to the file while
# Logstash was stopped.
#
# By default, the sincedb file is placed in the home directory of the
# user running Logstash with a filename based on the filename patterns
# being watched (i.e. the `path` option). Thus, changing the filename
# patterns will result in a new sincedb file being used and any
# existing current position state will be lost. If you change your
# patterns with any frequency it might make sense to explicitly choose
# a sincedb path with the `sincedb_path` option.
# By default, the sincedb file is placed in the directory listed in the
# SINCEDB_DIR environment variable. If that variable is unset, the HOME
# variable (i.e. the home directory of the user running Logstash) will
# be used instead. The exact name of the actual file will be based on
# the filename patterns being watched (i.e. the `path` option).
# Thus, changing the filename patterns will result in a new sincedb file
# being used and any existing current position state will be lost.
# If you change your patterns with any frequency it might make sense to
# explicitly choose a sincedb path with the `sincedb_path` option.
#
# A different `sincedb_path` must be used for each input. Using the same
# path will cause issues. The read checkpoints for each input must be
Expand Down