On Thu, 12 Nov 2009, Lukasz Szybalski wrote:

> On Thu, Nov 12, 2009 at 1:25 PM,  <[email protected]> wrote:
>> On Thu, 12 Nov 2009, Lukasz Szybalski wrote:
>>
>>
>> it may be close enough to the correct thing to work.
>>
>>> 2. What about saving the file with todays date. I don't want to rotate
>>> the logs, but I want to have a file for each day saved in
>>> /home/lucas/$year$month$date.txt
>>> Above does not work, unless I'm missing some escape characters/parentheses?
>>
>> look in the section on dynafiles. I have not used this feature, so I can't
>> help directly.
>
> Now I just have to find the proper syntax to get the file to save to
> :syslogtag, contains, "myapp" /home/lucas/20091112.txt
> to
> /home/lucas/$year$month$date.txt

look at DynFile in
http://www.rsyslog.com/doc-rsyslog_conf_actions.html

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

Reply via email to