Ask Ubuntu is a question and answer site for Ubuntu users and developers. 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

I've been looking at examples of rsyslogs but most seems too programmer centric for me.

I need,, to get 1 shared log file.

This gives me the log I want into my main /var/log/syslog

$ModLoad imuxsock # provides support for local system logging
$ModLoad imklog   # provides kernel logging support (previously done by rklogd)
#$ModLoad immark  # provides --MARK-- message capability

# provides UDP syslog reception
$ModLoad imudp
$UDPServerRun 514

I tried adding this, but It didn't work.

if $fromhost-ip == '' then /var/log/aps.log
& ~

if $fromhost-ip == '' then /var/log/aps.log
& ~

if $fromhost-ip == '' then /var/log/aps.log
& ~

I updated my code with == as it makes more scene, but it did not fix the problem.

share|improve this question
and if $fromhost-ip == '' then /var/log/aps.log ? Since you provide a full IP ;) – Rinzwind Apr 10 '13 at 14:45
updated post... no difference. – wlraider70 Apr 10 '13 at 18:47

Maybe if $fromhost-ip isequal '' then /var/log/aps.log ?

You can also try :HOSTNAME, isequal, '' /var/log/aps.log...

share|improve this answer
isequal does not work – wlraider70 Apr 22 '13 at 17:40
up vote 0 down vote accepted

I made two changes i used $hostname I changed permissions to 777 on the log file.

It works.

share|improve this answer

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.