Guest User

Untitled

a guest
Dec 13th, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.14 KB | None | 0 0
  1. options {
  2. create_dirs(yes);
  3. owner(root);
  4. group(root);
  5. perm(0640);
  6. dir_owner(root);
  7. dir_group(root);
  8. dir_perm(0750);
  9. };
  10.  
  11. source s_dl {
  12. network (
  13. transport("tcp")
  14. port(3993)
  15. );
  16. };
  17.  
  18. filter f_dpkg{
  19. tags("dpkg");
  20. };
  21.  
  22. destination d_host-specific {
  23.  
  24. file("/var/log/servers/$HOST/$YEAR/$MONTH/$HOST-$YEAR-$MONTH-$DAY.log");
  25. };
  26.  
  27. destination d_syslog {
  28. file("/var/log/servers/$HOST/$YEAR/$MONTH/$HOST-$YEAR-$MONTH-$DAY-syslog.log");
  29. };
  30.  
  31. destination d_dpkg {
  32. file("/var/log/servers/$HOST/$YEAR/$MONTH/$HOST-$YEAR-$MONTH-$DAY-dpkg.log");
  33. };
  34.  
  35. log {
  36. source(s_dl);
  37. filter(f_auth);
  38. destination(d_host-specific);
  39. };
  40.  
  41. log {
  42. source(s_dl);
  43. filter(f_syslog3);
  44. destination(d_syslog);
  45. };
  46.  
  47. log{
  48. source(s_dl);
  49. filter(f_dpkg);
  50. destination(d_dpkg);
  51. };
  52.  
  53. source s_dpkg {
  54. file('/var/log/dpkg.log'); tags('dpkg'));
  55. };
  56. destination d_net { tcp("192.168.48.15" port(3993)); };
  57. filter f_tag { tags("dpkg"); };
  58. log { source(s_src); filter(f_auth); destination(d_net);};
  59. log { source(s_src); filter(f_syslog3); destination(d_net);};
  60. log { source(s_dpkg); filter(f_test); destination(d_net);};
Add Comment
Please, Sign In to add comment