start-fluent-agent-lite - fluent-agent-lite launcher script
start-fluent-agent-lite --primary-server HOST:PORT [--secondary-server HOST:PORT] -T TAG:FILE [-T TAG:FILE ...] [OTHER OPTIONS]
start-fluent-agent-lite -p SERVER_LIST_FILE [-s SERVER_LIST_FILE] -T TAG:FILE [-T TAG:FILE ...] [OTHER OPTIONS]
start-fluent-agent-lite -h | --help | -?
$ start-fluent-agent-lite --primary-server 127.0.0.1 --tag-prefix service \
-T www:/var/log/nginx/www_access.log \
-T app:/var/log/apache2/app_access.log
This script is launcher script for fluent-agent-lite.
fluent-agent-lite can read from only one file, so we need to run several fluent-agent-lite(s) if read and transfer multiple files.
start-fluent-agent-lite starts fluent-agent-lite(s) using Proclet as many as target files (specified -T or --tag-file options)
-
--agent-path Str, -a Str
path of fluent-agent-lite (DEFAULT: fluent-agent-lite (search in $PATH))
-
--tag-prefix Str
Prefix of each tags, specified in '--tag-file' option
-
-f Str, --field-name Str
fieldname of fluentd log message attribute (DEFAULT: message)
-
--primary-server SERVERNAME[:PORT] (Str)
Fluentd server name and port (SERVERNAME:PORT), as primary server. 'fluent-agent-lite' try to connect to primary server at first, and if fails, then try to connect secondary server (if it specified).
Default port is 24224 (if omitted).
-
--secondary-server SERVERNAME[:PORT] (Str)
Secondary fluentd server name and port.
-
-p Str, --primary-server-list Str
primary servers list file (server[:port] per line, random selected one server)
-
-s Str, --secondary-server-list Str
secondary servers list file (server[:port] per line, random selected one server)
-
-b Int, --raed-buffer-size Int
log tailing buffer size (DEFAULT: 1MB)
-
-n Int, --process-nice Int
tail process nice (DEFAULT: 0)
-
-t Str, --tail-path Str
tail path (DEFAULT: /usr/bin/tail)
-
-i Num, --tail-interval Num
tail -F sleep interval (GNU tail ONLY, DEFAULT: tail default)
-
--tag-file TAG:TARGET_FILE, -T TAG:TARGET_FILE
Pairs of tag and target file.
You can specify more than one this option.
-
-l Str, --log-path Str
log file path (DEFAULT: /tmp/fluent-agent.log)
-
-P TAG:DATA, --ping TAG:DATA
send a ping message per minute with specified TAG and DATA (DEFAULT: not to send)
-
-S Int, --ping-interval Int
ping message interval seconds (DEFAULT: 60)
-
-d Str, --drain-log-tag Str
emits drain log to fluentd: messages per drain/send (DEFAULT: not to emits)
-
-k Int, --keepalive-time Int
connection keepalive time in seconds. 0 means infinity (DEFAULT: 1800, minimum: 120)
-
-w Num, --reconnect-wait-max Num
the maximum wait time for TCP socket reconnection in seconds (DEFAULT: 3600, minimum: 0.5)
-
-r Num, --reconnect-wait-incr-rate Num
the rate to increment the reconnect time (DEFAULT: 1.5, minimum: 1.0)
-
-j, --json
use JSON for message structure in transfering (highly experimental)
-
-v, --log-verbose
output logs of level debug and info (DEFAULT: warn/crit only)
-
-F, --force
force start even if input file is not found
-
--debug
increase debug level of start-fluent-agent-lite -d -d more verbosely.
HIROSE Masaaki