Created
September 15, 2015 17:41
-
-
Save gcarothers/7a0a37ed51eeafbb9f5a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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