[syslog-ng] can syslog-ng extract part of the hostname and make directory on the fly?

fedora fedora fedorafans at gmail.com
Fri Jul 22 16:28:35 CEST 2011


I have few hundreds of hosts, and say

hosta has dns name groupa-hosta

hostb has dns name groupbhostb

hostc has dns name groupc.hostc

..etc..etc (note the first 6 characters defines the group)

When a log comes in, can syslog-ng extracts the first 6 character from dns
name, and drop the log file to the corresponding group? (So log from hostb
will go under /log/groupb/groupahostb )

I cannot predefine the groups though, since i don't know how many groups
will be there, the only thing i know is the first 6 character of the
hostname will be the group name

thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.balabit.hu/pipermail/syslog-ng/attachments/20110722/04e11dd6/attachment.htm 


More information about the syslog-ng mailing list