#Tail and parse Docker log files @type tail path /var/lib/docker/containers/*/*-json.log pos_file /var/log/docker-log.pos read_from_head true tag containers @type json time_format %Y-%m-%dT%H:%M:%S.%NZ keep_time_key true time_key time @type record_transformer enable_ruby true #Add hostname and tag fields to all records fluentd_host "#{Socket.gethostname}" tag ${tag} # Forward events to New Relic @type newrelic api_key