[syslog-ng] Forward slashes in QSTRING
erempel at uvic.ca
Fri Jun 22 06:32:13 CEST 2012
can you try this
This should match alphanumerics including / but followed by a / and a string of alphanumerics including -._that does not include a / and then followed by a space (I forget what your original text to match on looks like.
Michael Starks <syslog-ng-list at michaelstarks.com> wrote:
On 06/19/2012 11:24 AM, Martin Holste wrote:
> If you know this will be the rest of the message, you can use a
> capturing @ANYSTRING:var:@ to grab everything left in the message.
Thanks. I have tried @ANYSTRING@ but as I suspected it starts matching
on the first / since the pattern is being read left-to-right. What ends
up happening is that the entire file path is included. I still don't see
a way to capture everything between the last / and the ' without knowing
in advance how deep the path will be.
Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng
More information about the syslog-ng