Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # sender td-agent.conf
- #---------------------------------------------------
- <source>
- type tail
- path /var/log/httpd/ssl-access_log
- pos_file /var/log/td-agent/tmp/apache.access.pos
- tag apache.access
- format apache2
- </source>
- <source>
- type tail
- path /var/log/httpd/ssl-error_log
- pos_file /var/log/td-agent/tmp/apache.error.pos
- tag apache.access
- format apache2
- </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>
- #---------------eof
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement