Advertisement
Guest User

Untitled

a guest
Jul 12th, 2018
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VIM 2.27 KB | None | 0 0
  1. [root@localhost etc]# vim rsyslog.conf
  2. #$ActionFileEnableSync on
  3.  
  4. # Include all config files in /etc/rsyslog.d/
  5. #IncludeConfig /etc/rsyslog.d/*.conf
  6.  
  7. # Turn off message reception via local log socket;
  8. # local messages are retrieved through imjournal now.
  9. $OmitLocalLogging on
  10.  
  11. # File to store the position in the journal
  12. $IMJournalStateFile imjournal.state
  13.  
  14.  
  15. #### RULES ####
  16.  
  17. # Log all kernel messages to the console.
  18. # Logging much else clutters up the screen.
  19. #kern.*                                                 /dev/console
  20.  
  21. # Log anything (except mail) of level info or higher.
  22. # Don't log private authentication messages
  23.  
  24.  
  25.  
  26. *.info;mail.none;authpriv.none;cron.none    /var/log/messages
  27.  
  28. # The authpriv file has restricted access.
  29. authpriv.*                                              /var/log/secure
  30.  
  31. # Log all the mail messages in one place.
  32. mail.*                                                  -/var/log/maillog
  33.  
  34.  
  35. # Log cron stuff
  36. cron.*                                                  /var/log/cron
  37.  
  38. # Everybody gets emergency messages
  39. *.emerg                                                 :omusrmsg:*
  40.  
  41. # Save news errors of level crit and higher in a special file.
  42. uucp,news.crit                                          /var/log/spooler
  43.  
  44. # Save boot messages also to boot.log
  45. local7.*                                                /var/log/boot.log
  46.  
  47. *.* @@10.0.0.22:514
  48. # ### begin forwarding rule ###
  49. # The statement between the begin ... end define a SINGLE forwarding
  50. # rule. They belong together, do NOT split them. If you create multiple
  51. # forwarding rules, duplicate the whole block!
  52. # Remote Logging (we use TCP for reliable delivery)
  53. #
  54. # An on-disk queue is created for this action. If the remote host is
  55. # down, messages are spooled to disk and sent when it is up again.
  56. #$ActionQueueFileName fwdRule1 # unique name prefix for spool files
  57. #$ActionQueueMaxDiskSpace 1g   # 1gb space limit (use as much as possible)
  58. #$ActionQueueSaveOnShutdown on # save messages to disk on shutdown
  59. #$ActionQueueType LinkedList   # run asynchronously
  60. #$ActionResumeRetryCount -1    # infinite retries if host is down
  61. # remote host is: name/ip:port, e.g. 192.168.0.1:514, port optional
  62. #*.* @@remote-host:514
  63. # ### end of the forwarding rule ###
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement