Hi all, 

I'm new to rsyslog, but I do the best to give you all needed informations. 

I like to log apache2 vhost logfiles to a remote log server. On both servers I 
use rsyslog 4.2.0 as this is the regular version shipped with Ubuntu.

In the vhost config I configured to log with logger like this:
ErrorLog "|/usr/bin/logger -p local0.err -t apache2[my.domain.name]"
CustomLog "|/usr/bin/logger -p local0.info -t apache2[my.domain.name]" 
combined

To be sure to send out only apache logfiles I set this in the rsyslog.conf
if $app-name == 'apache2' and $syslogfacility-text == 'local0' then 
@@logserver:514
if $app-name == 'apache2' and $syslogfacility-text == 'local0' then ~

On the Logserver I created a template to automatically generate files based on 
$template ApacheAccessLogFile, "/var/log/%app-
name%/%procid%/%procid%_access_log"

if $app-name == 'apache2' and $syslogfacility-text == 'local0' and 
$syslogseverity-text == 'info' then 
-?ApacheAccessLogFile;ApacheAccessLogFormat

So far this works like a charm. 
But when "my.domain.name" has 23 or more characters/digits no logfile was 
generated on the logserver and I don't get any error.

So, is this a known limitation? I Googled around and read the IETF RFC but 
found no related information.
Can anyone help with this? 

Kind regards, 
Axel Rosenski

-- 
Axel Rosenski
- Administration -
______________________________
Wave Computersysteme GmbH
Philipp-Reis-Str. 1-3 / 9
35440 Linden

Geschäftsführer: Carsten Kellmann
Registergericht Gießen HRB 1823

Tel.: +49 (0)6403 / 9050 8317
Fax: +49 (0)6403 / 9050 5089
mailto:[email protected]
http://www.wave-computer.de

_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com

Reply via email to