Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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? – x-x 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

You must log in to answer this question.

Browse other questions tagged .