Show TOC

ConfigurationLocate this document in the navigation structure

Configure your Log File Input adapter by setting values in the .properties file for the adapter.

For example, specify the name of the log file to read by setting the Input.Filename property. An example .properties file is located at STREAMING_HOME/adapters/logfile_input/example.properties.

You can use this adapter to read either live or historical log files.
  • To read a historical file, specify the file name in the Input.Filename property, and set the Input.WaitForGrowth property to false.
  • To read a live file, whether rotated or advancing, set the Input.WaitForGrowth property to true. The Log File Input adapter goes to the end of the file and then reads as new data is appended to the file. When the file size shrinks to zero (after the old log file is renamed and a new, empty one is created), the Log File Input adapter continues reading from the beginning of the new file.
  • You can use regular expression file names. A filter is automatically set in the Input.Filename property so that the adapter only reads the specified files matching the given regular expressions. Other files will not be read.