Hello,
I'm trying to send a log file from a syslog-ng client to Rsyslog server.

This is my configuration on client and server

On client syslog-ng 3.1:

source s_file_sslaccess {
file("/var/log/httpd/logs/sslaccess_log.2013-10-18" flags(no-parse) default-facility("local6") default-priority("debug") tags("sslaccess") );
};

destination remote_fsp01trnr {
        tcp("10.10.1.10" port(10516) keep-alive(yes) );
};

log {
        source(s_file_sslaccess);
        destination(remote_fsp01trnr);
};

On Server rsyslog 7:

template(name="filename" type="string" string="/rsyslog-data/%$!path%/%$!server%/%syslogtag%.log")

if $fromhost-ip == "10.10.1.4" then {
        set $!path="TestLog";
        set $!server="http01";
local6.debug action(type="omfile" DirOwner="tom" DirCreateMode="0750" FileCreateMode="0444" DynaFile="filename" )
        stop
}


On Server the destination directory is formed by multiple file named with a number.log

10.log 12.log 14.log 18.log 20.log 22.log 25.log 28.log 30.log 39.log 40.log 5.log 74.log 8.log 11.log 13.log 15.log 1.log 21.log 24.log 26.log 2.log 34.log 3.log 4.log 6.log 7.log 9.log

How can create a single file named with tag selected on client conf? (Ex. sslaccess.log)


Regards,
Roberto.

_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com/professional-services/
What's up with rsyslog? Follow https://twitter.com/rgerhards
NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad of 
sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you DON'T LIKE 
THAT.

Reply via email to