Find the answer to your Linux question:
Results 1 to 5 of 5
Is there a way to generically suppress or redirect the information types of messages that the various services send to the console? We are using these machines in a retail ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Feb 2012
    Posts
    7

    CentOS 6.2 suppress console messages


    Is there a way to generically suppress or redirect the information types of messages that the various services send to the console? We are using these machines in a retail environment and find that they create concern about whether they are having system issues.

    TIA,
    Mike

  2. #2
    Linux Guru Lazydog's Avatar
    Join Date
    Jun 2004
    Location
    The Keystone State
    Posts
    2,677
    According to Redhat

    Code:
    Setting the console log level
    
    Use of the  LOGLEVEL parameter in  /etc/sysconfig/init to set the console loglevel is no longer supported. 
    To set the console loglevel in Red Hat Enterprise Linux 6, pass loglevel=<number>' as a boot time parameter.

    Regards
    Robert

    Linux
    The adventure of a life time.

    Linux User #296285
    Get Counted

  3. #3
    Just Joined!
    Join Date
    Feb 2012
    Posts
    7
    Robert,

    Thanks! Did this and so far so good (no messages).

    Regards,
    Mike

  4. $spacer_open
    $spacer_close
  5. #4
    Just Joined!
    Join Date
    Sep 2012
    Location
    India
    Posts
    29
    You can either set the log level at the boot time or you can use rsyslog file to set the log level where the message can be redirected and which file it will be stored.
    Using this daemon you can categorize messages and also set priority for the messages.

    There are various message information types that are available
    a: kern - kernel messages
    b: mail - mail messages
    c: cron - cron messages
    d: info - informational messages etc

    You can also set priority in the configuration
    <FACILITY>.<PRIORITY>
    Priority will be
    debug
    info etc

    Please refer rsyslog file for this.

    Best Wishes,

  6. #5
    Linux Guru Lazydog's Avatar
    Join Date
    Jun 2004
    Location
    The Keystone State
    Posts
    2,677
    Quote Originally Posted by miborn View Post
    Thanks! Did this and so far so good (no messages).
    Glad this worked for you. I found this answer with a quick Google search.

    Regards
    Robert

    Linux
    The adventure of a life time.

    Linux User #296285
    Get Counted

Posting Permissions

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