Testing log facility "kern.*" using "logger -p kern.xxx" doesn't work

Solution Verified - Updated -

Issue

  • Even after configuring kernel related logging in separate directory, it is not working as expected :
 template(name="TmplKern" type="list") {
    constant(value="/syslog/remote/kern/")
    property(name="hostname")
    constant(value="/")
    property(name="programname" SecurePath="replace")
    constant(value=".log")
    }
 module(load="imtcp")

 # Adding this ruleset to process remote messages
 ruleset(name="remotetcp"){
     kern.*   action(type="omfile" DynaFile="TmplKern")
 }

 input(type="imtcp" port="514" ruleset="remotetcp" address="IP_of_recipient_server")
  • As configured kern.* is not logging to /syslog/remote/kern/ directory in the rsyslog server side after getting forwarded from rsyslog client side.

Environment

  • Red Hat Enterprise Linux 7
  • Red Hat Enterprise Linux 8
  • rsyslogd

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In