Skip to navigation

Bacula: Logwatch logfile paths don't match with logrotate logfile paths

Updated 2012-11-19T08:19:08+00:00

Issue

  • Logrotate and logwatch configration refers to different path for bacula's log files.

  • Logwatch configuration:

    cat /etc/logwatch/conf/logfiles/bacula.conf 
    # What actual file?  Defaults to LogPath if not absolute path....
    LogFile = /var/spool/bacula/log
    
  • Logrotate configuration:

    cat /etc/logrotate.d/bacula 
    # Bacula logrotate script
    
    /var/log/bacula/*.log /var/spool/bacula/log /var/log/bacula.log {
        monthly
        rotate 4
        notifempty
        missingok
    }
    
  • Bacula configuration (standar Messages):

    append = "/var/spool/bacula/log" = all, !skipped
    
  • Bacula configuration (daemon messages):

    append = "/var/log/bacula.log" = all, !skipped
    

Environment

  • RHEL6.1
  • Bacula*-5.0.0-7.el6
  • logrotate-3.7.8-12.el6_0.1
  • logwatch-7.3.6-49.el6

Subscriber content preview. For full access to the Red Hat Knowledgebase, please log in.

Not a subscriber? Learn more about the benefits of Red Hat Subscriptions.