#Tail and parse Apache access logs @type tail @id input_tail_apache tag apache_access path /var/log/apache2/access.log pos_file /var/log/apache2/access.pos path_key filename @type apache2 #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