Re: [nxlog-ce-users] Filename when using wildcards

2014-09-02 Thread Jon Brouse
Thank you, I was missing the brackets. On Sat, Aug 30, 2014 at 5:12 AM, Cameron Kerr wrote: > In the following: > > Exec if file_name() =~ /[\w-]+\.log/ $FileName = $1; > > You do not have any brackets to capture what you want $1 to be. > > Not sure if they should be ( ) or \( \) for nxlog

Re: [nxlog-ce-users] Filename when using wildcards

2014-08-30 Thread Cameron Kerr
In the following: Exec if file_name() =~ /[\w-]+\.log/ $FileName = $1; You do not have any brackets to capture what you want $1 to be. Not sure if they should be ( ) or \( \) for nxlog; check the manual or try both. I think you should be able to say basename(file_name()), but I haven't tri