# Receive events from 24224/tcp
# This is used by log forwarding and the fluent-cat command
# http://this.host:9880/myapp.access?json={"event":"data"}
@type record_transformer
hostname "#{Socket.gethostname}"
tag ${record["project_name"]}.scope.${tag}_old
key.flatten x
@type file
path /var/log/fluent/access
# equal to -qq option
log_level error
# equal to --without-source option
without_source
# ...
# Include config files in the ./config.d directory
@include config.d/*.conf
# =======================
# v1_literal_example.conf
# =======================
key1 'text' # text
key2 '\'' # ' (1 char)
key3 '\\' # \ (1 char)
key4 '\t' # \t (2 char)
key5 '\[' # \[ (2 char)
key6 '\\[' # \[ (2 char)
key7 '#t' # #t (2 char)
key8 '\#{test}' # \#{test} (8 char)
key9 '#{test}' # #{test} (7 char)
key10 '\[(?
key1 "text" # text
key2 "\"" # " (1 char)
key3 "\\" # \ (1 char)
key4 "\t" # TAB (1 char)
key5 "\[" # [ (1 char)
key6 "\\[" # \[ (2 char)
key7 "#t" # #t (2 char)
key8 "\#{test}" # #{test} (7 char)
key9 "#{test}" # replaced by eval('test')
key10 "\\[(?[^\\]]*)\\] (?.*)" # \[(?[^\]]*\] (?.*)
key1 text # text
key2 \ # \ (1 char)
key3 \\ # \\ (2 char)
key4 \t # \t (2 char)
key5 \[ # \[ (2 char)
key6 \\[ # \\[ (3 char)
key7 #t # #t (2 char)
key8 \#{test} # \#{test} (8 char)
key9 #{test} # #{test} (7 char)
key10 \[(?[^\]]*)\] (?.*) # \[(?[^\]]*\] (?.*)