#Tail and parse Apache access logs
#Add hostname and tag fields to all events ("records") with a Fluentd tag of apache_access
@type record_transformer
hostname "#{Socket.gethostname}"
tag ${tag}
#Output (https://docs.fluentd.org/output/copy) events to both New Relic and a local file.
@type copy
@type newrelic
api_key
@type file
path /var/log/apacheout.log
#Buffer settings are for testing and not recommended for use in a production environment.
timekey 10s
timekey_use_utc true
timekey_wait 15s