OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

81 lines
1.4 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../syslog-ng/etc_syslog-ng.conf
  5. # Copyright (C) 2004 - 2006 The T2 SDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This program is free software; you can redistribute it and/or modify
  10. # it under the terms of the GNU General Public License as published by
  11. # the Free Software Foundation; version 2 of the License. A copy of the
  12. # GNU General Public License can be found in the file COPYING.
  13. # --- SDE-COPYRIGHT-NOTE-END ---
  14. # Simple syslog-mg.conf file.
  15. options {
  16. use_fqdn(no);
  17. sync(0);
  18. };
  19. source s_sys {
  20. unix-stream("/dev/log");
  21. internal();
  22. };
  23. source s_kernel {
  24. file("/proc/kmsg" log_prefix("kernel: "));
  25. };
  26. destination d_security {
  27. file("/var/log/security");
  28. };
  29. destination d_messages {
  30. file("/var/log/messages");
  31. };
  32. destination d_console {
  33. usertty("root");
  34. };
  35. destination d_kern {
  36. file("/var/log/kern.log");
  37. };
  38. filter f_authpriv {
  39. facility(auth, authpriv);
  40. };
  41. filter f_messages {
  42. level(info .. emerg) and not facility(auth, authpriv);
  43. };
  44. filter f_emergency {
  45. level(emerg);
  46. };
  47. log {
  48. source(s_sys);
  49. filter(f_authpriv);
  50. destination(d_security);
  51. };
  52. log {
  53. source(s_sys);
  54. filter(f_messages);
  55. destination(d_messages);
  56. };
  57. log {
  58. source(s_sys);
  59. filter(f_emergency);
  60. destination(d_console);
  61. };
  62. log {
  63. source(s_kernel);
  64. filter(f_messages);
  65. destination(d_kern);
  66. };