Skip to content

Instantly share code, notes, and snippets.

@kiyoto
Last active August 29, 2015 14:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kiyoto/52fb58a9eb3db5b1b604 to your computer and use it in GitHub Desktop.
Save kiyoto/52fb58a9eb3db5b1b604 to your computer and use it in GitHub Desktop.
hsinclar-test.conf
# sender td-agent.conf
#---------------------------------------------------
<source>
type forward
</source>
<match apache.*>
type secure_forward
shared_key somekey
self_hostname sslserver.mydomain.com
<server>
host log-std01.mydomain.com
port 2514
</server>
</match>
#---------------eof
# receiver td-agent.conf
#---------------------------------------------------
<source>
type secure_forward
shared_key somekey
self_hostname log-std01.mydomain.com
cert_auto_generate yes
port 2514
</source>
<match *.access>
type file
path /var/log/applogs/access
time_slice_format %Y%m%d
time_slice_wait 10m
time_format %Y%m%dT%H:%M:%S%z
</match>
<match *.error>
type file
path /var/log/applogs/error
time_slice_format %Y%m%d
time_slice_wait 10m
time_format %Y%m%dT%H:%M:%S%z
</match>
<match fluent.info>
type file
path /var/log/applogs/fluent-info
</match>
<match debug>
type stdout
</match>
#---------------eof
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment