Skip to content

Instantly share code, notes, and snippets.

@gcarothers
Created September 15, 2015 17:41
Show Gist options
  • Save gcarothers/7a0a37ed51eeafbb9f5a to your computer and use it in GitHub Desktop.
Save gcarothers/7a0a37ed51eeafbb9f5a to your computer and use it in GitHub Desktop.
<label @json>
# Add a hostname to every record we generate.
<filter **>
type record_transformer
<record>
hostname "#{Socket.gethostname}"
application ${tag_parts[-1]}
</record>
</filter>
<match **>
type forward
send_timeout 60s
recover_wait 10s
heartbeat_interval 1s
phi_threshold 16
hard_timeout 60s
buffer_type file
buffer_path /var/tmp/fluentd.forward-buffer
<server>
name pg-jsonb-logs
host pg-jsonb-logs
</server>
</match>
</label>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment