Wikis - Page

CIFS writing in 2 differents log file

0 Likes

Hi Community,

When activating logs within CIFS, this is writing the exact same information in

/var/log/messages
and in
/var/log/cifs/cifs.log.

This is very annoying when activating "DEBUG", flooding both files.

Any idea on how to "disable" this redundancy ?

And I need DEBUG for a "long" term period because CIFS is crashing one or two times a week, and we need to find out, or at least having something to provide to support.

 

Thanks,

Regards,

Pascal

Labels:

How To-Best Practice
Comment List
  • Perfect, thank you  

    Editing /etc/rsyslog.d/cifs-log.conf as following :

    Before:

    if ($programname == 'CIFS' or $programname == 'cifsd')
    then {
    /var/log/cifs/cifs.log
    }

    After:

    if ($programname == 'CIFS' or $programname == 'cifsd')
    then {
    /var/log/cifs/cifs.log
    stop
    }

    Solved my issue,

    thanks

    -

    Everyone is a genius. But if you judge a fish by its ability to climb a tree, it will live its whole life believing that it is stupid. [A. Einstein]

  • Check link below, not strictly for cifs, but shows how to manage logging:

    /collaboration/oes/f/oes_discussions/191031/dhcpd-log-disabled-after-upgrade-to-oes2018sp1

    Hope it helps

     

    Regs

Related
Recommended