Find the answer to your Linux question:
Results 1 to 4 of 4
We have a problem in that everytime we run a full back up the /var/log/messages file continuosly writes an error related to edirectory OID............. Subsequently the server will freeze and ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Nov 2009
    Location
    Georgia
    Posts
    2

    /var/log/messages logging


    We have a problem in that everytime we run a full back up the /var/log/messages file continuosly writes an error related to edirectory OID............. Subsequently the server will freeze and we need to re-boot it. Novell is working on fixing this. (Had a fix at one time. Then we did some patching and it's back). In the meantime is there a way to change the level of logging to the /var/log/messages file. I'm thinking if we stop these messages, which mean nothing to anyone, the server will not freeze and I won't have to get up in the middle of the night to re-boot. Thanks ahead!

    SLES 10sp2 OES2sp1

  2. #2
    Linux Enthusiast scathefire's Avatar
    Join Date
    Jan 2010
    Location
    Western Kentucky
    Posts
    626
    what logging mechanism are you using? syslog, syslog-ng?

  3. #3
    Just Joined!
    Join Date
    Nov 2009
    Location
    Georgia
    Posts
    2
    /etc/syslog-ng/syslog-ng.conf

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Enthusiast scathefire's Avatar
    Join Date
    Jan 2010
    Location
    Western Kentucky
    Posts
    626
    so you're probably looks like this:
    Code:
    filter f_messages   { not facility(news, mail) and not filter(f_iptables); };
    ...
    destination messages { file("/var/log/messages"); };
    log { source(src); filter(f_messages); destination(messages); };
    you just have to add more filters, and send them to another destination

    Code:
    filter f_warn       { level(warn, err, crit) and not filter(f_iptables); };
    destination warnings { file("/var/log/warn-messages"); };
    log { source(src); filter(f_warn); destination(warnings); };

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •