Skip to content

nxlog job from nxlog/0.5.0

Github source: feb127a6 or master branch

Properties

nxlog

input

files

Array of files to check path: path to file recursive: to look recursively into folder exclude: regex of file/dir pattern to exclude - {path: “/var/vcap/data/sys/log/*.log”, recursive: true, exclude: “(monit|nxlog)”} - {path: “/var/log/kernel.log”, recursive: false, exclude: “”} - {path: “/var/log/test.log”, recursive: false, exclude: “”}

Default
  - exclude: (monit|nxlog)
    path: /var/vcap/data/sys/log/*.log
    recursive: true

pollinterval

Specifies in seconds how frequently the module will check for new files and new log entries.

Default
10

runas

An optional user:group[:group] string for specifying what user and group(s) to run nxlog as

Default
vcap:vcap:adm:admin

tcpoutput

host

Host where the log should be sent

port

Port where the log should be sent

Templates

Templates are rendered and placed onto corresponding instances during the deployment process. This job's templates will be placed into /var/vcap/jobs/nxlog/ directory (learn more).

  • bin/monit_debugger (from bin/monit_debugger)
  • bin/nxlog_ctl (from bin/nxlog_ctl)
  • config/nxlog.conf (from config/nxlog.conf.erb)
  • data/properties.sh (from data/properties.sh.erb)
  • helpers/ctl_setup.sh (from helpers/ctl_setup.sh)
  • helpers/ctl_utils.sh (from helpers/ctl_utils.sh)

Packages

Packages are compiled and placed onto corresponding instances during the deployment process. Packages will be placed into /var/vcap/packages/ directory.