rsyslog.conf: kern.err /dev/console. Where do these messages go?

1

There is a commented line in rsyslog.conf:

#kern.*         /dev/console

If I add this line to the configuration file:

kern.notice       /dev/console

Where do these messages go?

If I run this command:

logger -p kern.notice "Log Message Test"

Where will I see the message?

If I want to display the message on the terminal I use omusrmsg

Console is the same as terminal right?

When I fired this command:

echo "Testing" > /dev/console

nothing happened.

Where exactly does it go?

Sunshine

Posted 2015-10-10T16:21:48.033

Reputation: 11

Answers

0

Here "Console" means the primary terminal.

The special /dev/console device node usually corresponds to what the kernel thinks to be the primary console, and that usually means whichever tty is in foreground (from tty1…tty63). On embedded systems, it might be redirected to a serial port using the console= kernel option.

Generally, in Unix, you might notice programs distinguishing between "console login" (directly at the PC) vs "remote / network login".

user1686

Posted 2015-10-10T16:21:48.033

Reputation: 283 655

So where will I be able to see the log messages that are directed to /dev/console? – Sunshine – 2015-10-11T04:45:39.783