Sha256: 03cd13bd2d15b87aac1d9110b68a844fd6610579e3c05a38bb4302cc8ebbd7ce

Contents?: true

Size: 613 Bytes

Versions: 6

Compression:

Stored size: 613 Bytes

Contents

#Tail and parse Docker log files

<source>
  @type tail
  path /var/lib/docker/containers/*/*-json.log
  pos_file /var/log/docker-log.pos
  read_from_head true
  tag containers
  <parse>
    @type json
    time_format %Y-%m-%dT%H:%M:%S.%NZ
    keep_time_key true
    time_key time
  </parse>
</source>

<filter containers>
  @type record_transformer
  enable_ruby true
  <record>
    #Add hostname and tag fields to all records
    fluentd_host "#{Socket.gethostname}"
    tag ${tag}
  </record>
</filter>

# Forward events to New Relic

<match containers>
  @type newrelic
  api_key <YOUR INSERT KEY>
  </match>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
fluent-plugin-newrelic-1.2.3 examples/custom_field.conf
fluent-plugin-newrelic-1.2.2 examples/custom_field.conf
fluent-plugin-newrelic-1.2.1 examples/custom_field.conf
fluent-plugin-newrelic-1.2.0 examples/custom_field.conf
fluent-plugin-newrelic-1.1.10 examples/custom_field.conf
fluent-plugin-newrelic-1.1.9 examples/custom_field.conf