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
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