Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

My ADSL modem supports remote logging via syslog. I have set up my server, running rsyslog, to accept the log messages from the modem and they are being show in /var/log/syslog along with the messages generated on the server. The log looks like this:

(timestamp) (hostname) (program): (message)

Where hostname is either server or modem.

I've look over the (terrible, IMO) documentation, and found this example that looks like what I need, but I can't make it work in my situation.

How do I configure rsyslog to write the logs received from the modem to /var/log/modem instead of /var/log/syslog?

The modem IP is static, if that helps to simplify the answer.

Moderators: This post should probably have a rsyslog tag instead of syslog, but my reputation isn't high enough to create it.

share|improve this question
    
If you are looking for a better documented and easier to configure syslog daemon, why not give syslog-ng a spin? The official documentation is unrivaled in quality and the software itself works like a charm too. –  Janoszen May 17 '13 at 19:06
    
@Janoszen, Thank you for the suggestion. I wasn't looking for a replacement, but lack of answers here may force a change. I presume it should be as easy as apt-get remove rsyslog && apt-get install syslog-ng? –  DrTwox May 17 '13 at 22:37
    
actually it's just apt-get install syslog-ng. It will automatically remove rsyslog if I know correctly. –  Janoszen May 18 '13 at 13:48
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.