diff options
Diffstat (limited to 'fluentd.conf')
-rw-r--r-- | fluentd.conf | 177 |
1 files changed, 38 insertions, 139 deletions
diff --git a/fluentd.conf b/fluentd.conf index 3c393b451d4e..ccdd8d9e8192 100644 --- a/fluentd.conf +++ b/fluentd.conf @@ -1,139 +1,38 @@ -# In v1 configuration, type and id are @ prefix parameters. -# @type and @id are recommended. type and id are still available for backward compatibility - -## built-in TCP input -## $ echo <json> | fluent-cat <tag> -<source> - @type forward - @id forward_input -</source> - -## built-in UNIX socket input -#<source> -# @type unix -#</source> - -# HTTP input -# http://localhost:8888/<tag>?json=<json> -<source> - @type http - @id http_input - - port 8888 -</source> - -## File input -## read apache logs with tag=apache.access -#<source> -# @type tail -# format apache -# path /var/log/httpd-access.log -# tag apache.access -#</source> - -## Mutating event filter -## Add hostname and tag fields to apache.access tag events -#<filter apache.access> -# @type record_transformer -# <record> -# hostname ${hostname} -# tag ${tag} -# </record> -#</filter> - -## Selecting event filter -## Remove unnecessary events from apache prefixed tag events -#<filter apache.**> -# @type grep -# include1 method GET # pass only GET in 'method' field -# exclude1 message debug # remove debug event -#</filter> - -# Listen HTTP for monitoring -# http://localhost:24220/api/plugins -# http://localhost:24220/api/plugins?type=TYPE -# http://localhost:24220/api/plugins?tag=MYTAG -<source> - @type monitor_agent - @id monitor_agent_input - - port 24220 -</source> - -# Listen DRb for debug -<source> - @type debug_agent - @id debug_agent_input - - bind 127.0.0.1 - port 24230 -</source> - -## match tag=apache.access and write to file -#<match apache.access> -# @type file -# path /var/log/fluent/access -#</match> - -## match tag=debug.** and dump to console -<match debug.**> - @type stdout - @id stdout_output -</match> - -# match tag=system.** and forward to another fluent server -<match system.**> - @type forward - @id forward_output - - <server> - host 192.168.0.11 - </server> - <secondary> - <server> - host 192.168.0.12 - </server> - </secondary> -</match> - -## match tag=myapp.** and forward and write to file -#<match myapp.**> -# @type copy -# <store> -# @type forward -# buffer_type file -# buffer_path /var/log/fluent/myapp-forward -# retry_limit 50 -# flush_interval 10s -# <server> -# host 192.168.0.13 -# </server> -# </store> -# <store> -# @type file -# path /var/log/fluent/myapp -# </store> -#</match> - -## match fluent's internal events -#<match fluent.**> -# @type null -#</match> - -## match not matched logs and write to file -#<match **> -# @type file -# path /var/log/fluent/else -# compress gz -#</match> - -## Label: For handling complex event routing -#<label @STAGING> -# <match system.**> -# @type forward -# @id staging_forward_output -# <server> -# host 192.168.0.101 -# </server> -# </match> -#</label> +FLUENT_AGENT_OPTIONS="" + +#Usage: fluentd [options] +# -s, --setup [DIR=/etc/fluent] install sample configuration file to the directory +# -c, --config PATH config file path (default: /etc/fluent/fluent.conf) +# --dry-run Check fluentd setup is correct or not +# --show-plugin-config=PLUGIN [DEPRECATED] Show PLUGIN configuration and exit(ex: input:dummy) +# -p, --plugin DIR add plugin directory +# -I PATH add library path +# -r NAME load library +# -d, --daemon PIDFILE daemonize fluent process +# --under-supervisor run fluent worker under supervisor (this option is NOT for users) +# --no-supervisor run fluent worker without supervisor +# --workers NUM specify the number of workers under supervisor +# --user USER change user +# --group GROUP change group +# -o, --log PATH log file path +# --log-rotate-age AGE generations to keep rotated log files +# --log-rotate-size BYTES sets the byte size to rotate log files +# --log-event-verbose enable log events during process startup/shutdown +# -i CONFIG_STRING, inline config which is appended to the config file on-the-fly +# --inline-config +# --emit-error-log-interval SECONDS +# suppress interval seconds of emit error logs +# --suppress-repeated-stacktrace [VALUE] +# suppress repeated stacktrace +# --without-source invoke a fluentd without input plugins +# --use-v1-config Use v1 configuration format (default) +# --use-v0-config Use v0 configuration format +# --strict-config-value Parse config values strictly +# -v, --verbose increase verbose level (-v: debug, -vv: trace) +# -q, --quiet decrease verbose level (-q: warn, -qq: error) +# --suppress-config-dump suppress config dumping when fluentd starts +# -g, --gemfile GEMFILE Gemfile path +# -G, --gem-path GEM_INSTALL_PATH Gemfile install path (default: $(dirname $gemfile)/vendor/bundle) +# --conf-encoding ENCODING specify configuration file encoding +# --disable-shared-socket Don't open shared socket for multiple workers +# |