#Tail arbitrary text/log file
@type tail
@type none
path /var/log/backend-app*.log
pos_file /var/log/backend.application.pos
path_key filename # Add watched file path to path_key field for every event/record.
tag backend.application
#Add hostname and tag fields to all events ("records") with a Fluentd tag of backend.application
@type record_transformer
hostname "#{Socket.gethostname}"
tag ${tag}
#Write events to New Relic
@type newrelic
api_key