[syslog-ng] underscore issue

Stefan Varga Stefan_Varga at tempest.sk
Mon Jan 5 11:26:32 CET 2009


>>
>> I would prefer to use an underscore if I could.
>>     
>
> Use ${VARIABLE1}_${VARIABLE2} and so on.
>   
with $[VARIABLE] like:
destination r_messages   { file 
("/logpool/logs/$DAY$MONTH$YEAR/$[HOST]_$[DAY]$[MONTH]$[YEAR]_$[HOUR]");     
};
# ls /logpool/logs/05012009/
[HOST]_[DAY][MONTH][YEAR]_[HOUR]

any thoughts why ?:-)
Stefan


More information about the syslog-ng mailing list