New in version 0.5.
Plugin Name:: LogstreamerInput
Tails a single log file, a sequential single log source, or multiple log sources of either a single logstream or multiple logstreams.
The hostname to use for the messages, by default this will be the machine’s qualified hostname. This can be set explicitly to ensure it’s the correct name in the event the machine has multiple interfaces/hostnames.
A time duration string (e.x. “2s”, “2m”, “2h”). Logfiles with a
last modified time older than
oldest_duration ago will not be included
for parsing. Defaults to “720h” (720 hours, i.e. 30 days).
The directory to store the journal files in for tracking the location that has been read to thus far. By default this is stored under heka’s base directory.
The root directory to scan files from. This scan is recursive so it should be suitably restricted to the most specific directory this selection of logfiles will be matched under. The log_directory path will be prepended to the file_match.
During logfile rotation, or if the logfile is not originally present on the system, this interval is how often the existence of the logfile will be checked for. The default of 5 seconds is usually fine. This interval is in milliseconds.
Regular expression used to match files located under the
log_directory. This regular expression has
$ added to the end
automatically if not already present, and
log_directory as the prefix.
WARNING: file_match should typically be delimited with single quotes,
indicating use of a raw string, rather than double quotes, which require
all backslashes to be escaped. For example, ‘access\.log’ will work as
expected, but “access\.log” will not, you would need “access\\.log”
to achieve the same result.
When using sequential logstreams, the priority is how to sort the logfiles in order from oldest to newest.
When using multiple logstreams, the differentiator is a set of strings that
will be used in the naming of the logger, and portions that match a captured
group from the
file_match will have their matched value substituted in.
Only the last (according to priority) file per differentiator is kept opened.
A set of translation mappings for matched groupings to the ints to use for sorting purposes.
Defaults to “TokenSplitter”, which will split the log stream into one Heka message per line.
New in version 0.10.
A time duration string. This interval is how often streams will be checked for new data. Defaults to “250ms”. If the plugin processes many logstreams, you may increase this value to reduce the CPU load.
New in version 0.11.
If this setting is true, when there is no cursor file for a given stream (which is always the case when reading a stream for the first time) then the input will start from the end of the stream instead of the beginning. If a cursor file exists, the input will attempt to continue from the specified cursor location, as always.