[syslog-ng] Using macro substring as another macro

Jakub Jankowski shasta at toxcorp.com
Thu Apr 7 15:01:51 CEST 2011


Hi,

I'd like to implement simple hashing in file() destination, mainly to avoid 
ext3 32k directories limit, but also for convenience. Is it possible to do 
something simliar what this shell snippet does:

$ NAME=value
$ echo ${NAME[*]:0:1}
v
$

but for macros (especially those coming from parsers)?

What I want is logs written to /var/log/h/ho/hos/hostname/service.log (with 
configurable level of subdirs) using a single destination().


Regards,

-- 
Jakub Jankowski|shasta at toxcorp.com|http://toxcorp.com/
GPG: FCBF F03D 9ADB B768 8B92 BB52 0341 9037 A875 942D


More information about the syslog-ng mailing list