GitHub

Folders and files

NameName

Last commit message

Last commit date

Fluentd plugin to tail files and add the file path to the message

Adds the following fields to log entires:

log_path - the full path to the source log file (eg. /var/log/nginx/access.log)
raw_message - the full un-modified log message

Installation

Use RubyGems:

gem install fluent-plugin-tailpath

Configuration

For more info, the configuration is identical to im_file

Example:

 <source>
   type tailpath
   path /var/log/httpd-access.log
   pos_file /var/log/td-agent/httpd-access.log.pos
   tag apache.access
   format apache2
 </source>

Copyright

Copyright (c) 2014 Jacob Wirth. See LICENSE for details.

Read the original on github.com ↗