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

Solution Unverified - Updated -

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 exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.