Changes
→Setting up remote side
and rebuild initrd
=== Setting up rsyslogd ===
/etc/rsyslog.d/netconsole.conf
$template NetconsoleFile,"/var/log/netconsole-%HOSTNAME%.log"
$template NetconsoleFormat,"%rawmsg%"
$EscapeControlCharactersOnReceive off
$DropTrailingLFOnReception off
$RuleSet NetconsoleRuleset
*.* ?NetconsoleFile;NetconsoleFormat
$RuleSet RSYSLOG_DefaultRuleset
$ModLoad imudp
$InputUDPServerBindRuleset NetconsoleRuleset
$UDPServerRun 6666
=== Setting up remote side ===