Boston Linux & UNIX was originally founded in 1994 as part of The Boston Computer Society. We meet on the third Wednesday of each month at the Massachusetts Institute of Technology, in Building E51.

BLU Discuss list archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Discuss] Monitor Modem Log On Server




> In rsyslog.conf I've added some templates, rules and 
> enabled listening on the udp port.
>
> ###############################
> ### Per-Host Templates for Remote Systems ###
> $template TmplAuthpriv, 
> "/var/log/remote/auth/%HOSTNAME%/%PROGRAMNAME:::secpath-replace%.log" 
>
> $template TmplMsg, 
> "/var/log/remote/msg/%HOSTNAME%/%PROGRAMNAME:::secpath-replace%.log" 
>
> ### end of user added lines
>
> # Provides UDP syslog reception
> $ModLoad imudp
> $UDPServerRun 514
>
> # Provides TCP syslog reception
> #$ModLoad imtcp
> #$InputTCPServerRun 514
>
> ### jbk added lines per SysAdminGuideF23 20160319
> # Provides TCP syslog reception
> #$ModLoad imtcp
> # Adding this ruleset to process remote messages
> $RuleSet remote1
> authpriv.*   ?TmplAuthpriv
> *.info;mail.none;authpriv.none;cron.none   ?TmplMsg
> $RuleSet RSYSLOG_DefaultRuleset   #End the rule set by 
> switching back to the default rule set
> $InputUDPServerBindRuleset remote1  #Define a new input 
> and bind it to the "remote1" rule set
> #$InputTCPServerRun 514
> ###################end of rsyslog edits############
>
> I've opened the tcp and udp port 514 on the firewall and 
> I've created the remote/auth and remote/msg directories in 
> /var/log
>
> Note the template definitions are one line.
>
> So there it is. What is hindering the log reception?
>
So I am wrong, I am receiving the modem log messages but 
they are all going to /var/log/messages.

So why are the templates not filtering the modem messages to 
the indicated locations?

Is it that the modem does not have a valid HOSTNAME?

Or, is the PROGRAMNAME keyword overly specific?

-- 
Jim Kelly-Rand
jbk at kjkelra.com




BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org