Advertisement
Guest User

secure-forward log shipping configs

a guest
Jul 31st, 2014
226
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.30 KB | None | 0 0
  1. # sender td-agent.conf
  2. #---------------------------------------------------
  3.  
  4. <source>
  5. type tail
  6. path /var/log/httpd/ssl-access_log
  7. pos_file /var/log/td-agent/tmp/apache.access.pos
  8. tag apache.access
  9. format apache2
  10. </source>
  11.  
  12. <source>
  13. type tail
  14. path /var/log/httpd/ssl-error_log
  15. pos_file /var/log/td-agent/tmp/apache.error.pos
  16. tag apache.access
  17. format apache2
  18. </source>
  19.  
  20.  
  21. <match apache.*>
  22. type secure_forward
  23. shared_key somekey
  24. self_hostname sslserver.mydomain.com
  25. <server>
  26. host log-std01.mydomain.com
  27. port 2514
  28. </server>
  29. </match>
  30. #---------------eof
  31.  
  32.  
  33.  
  34.  
  35. # receiver td-agent.conf
  36. #---------------------------------------------------
  37.  
  38. <source>
  39. type secure_forward
  40. shared_key somekey
  41. self_hostname log-std01.mydomain.com
  42. cert_auto_generate yes
  43. port 2514
  44. </source>
  45.  
  46.  
  47. <match *.access>
  48. type file
  49. path /var/log/applogs/access
  50. time_slice_format %Y%m%d
  51. time_slice_wait 10m
  52. time_format %Y%m%dT%H:%M:%S%z
  53. </match>
  54.  
  55. <match *.error>
  56. type file
  57. path /var/log/applogs/error
  58. time_slice_format %Y%m%d
  59. time_slice_wait 10m
  60. time_format %Y%m%dT%H:%M:%S%z
  61. </match>
  62.  
  63. <match fluent.info>
  64. type file
  65. path /var/log/applogs/fluent-info
  66. </match>
  67. #---------------eof
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement