Skip to content

Commit

Permalink
Prefer "filename pattern" to "glob".
Browse files Browse the repository at this point in the history
The term "glob" is a Unix colloquialism that we can't expect all
users to be familiar with, especially not those with a Windows
background.

Fixes logstash-plugins#61
  • Loading branch information
magnusbaeck authored and jordansissel committed Aug 20, 2015
1 parent 9ba95e9 commit 57d3d93
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions lib/logstash/inputs/file.rb
Original file line number Diff line number Diff line change
Expand Up @@ -69,15 +69,15 @@ class LogStash::Inputs::File < LogStash::Inputs::Base
default :codec, "plain"

# The path(s) to the file(s) to use as an input.
# You can use globs here, such as `/var/log/*.log`
# You can use filename patterns here, such as `/var/log/*.log`.
# Paths must be absolute and cannot be relative.
#
# You may also configure multiple paths. See an example
# on the <<array,Logstash configuration page>>.
config :path, :validate => :array, :required => true

# Exclusions (matched against the filename, not full path). Globs
# are valid here, too. For example, if you have
# Exclusions (matched against the filename, not full path). Filename
# patterns are valid here, too. For example, if you have
# [source,ruby]
# path => "/var/log/*"
#
Expand All @@ -91,7 +91,8 @@ class LogStash::Inputs::File < LogStash::Inputs::Base
# but increase the time to detect new log lines.
config :stat_interval, :validate => :number, :default => 1

# How often (in seconds) we expand globs to discover new files to watch.
# How often (in seconds) we expand the filename patterns in the
# `path` option to discover new files to watch.
config :discover_interval, :validate => :number, :default => 15

# Path of the sincedb database file (keeps track of the current
Expand Down

0 comments on commit 57d3d93

Please sign in to comment.