<div dir="auto">The <span class="m_8211379849010350452money">$1</span> is not set in this case, you can however use template functions in the value part. E.g. set line based on the @PCRE@ matcher and overwrite its value using an expression $(substr $line 0 -3)<div dir="auto"><br></div><div dir="auto">Would that work for you?</div><div dir="auto"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mar 15, 2018 02:08, "Evan Rempel" <<a href="mailto:erempel@uvic.ca" target="_blank">erempel@uvic.ca</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I have a case where an application logs something like<br>
<br>
{date} {host} {program}: my first line...<br>
...my second line...<br>
...and my third line.<br>
<br>
<br>
I want to make a correlation and unwrap these lines into<br>
<br>
{date} {host} {program}: my first line my second line and my third line.<br>
<br>
<br>
I started writing the patterndb to do this, but matching the ... at the end<br>
<br>
of the line is difficult, so I used @PCRE:line:(.*)\.\.\.$@<br>
<br>
but I then need to only use the $1 to set a value<br>
<br>
<values><br>
<value name="mymessage">$1</value><br>
</values><br>
<br>
<br>
Would this be the correct syntax to do this?<br>
<br>
Is there an easier way that would perform well?<br>
<br>
Thanks,<br>
<br>
______________________________<wbr>______________________________<wbr>__________________<br>
Member info: <a href="https://lists.balabit.hu/mailman/listinfo/syslog-ng" rel="noreferrer" target="_blank">https://lists.balabit.hu/mailm<wbr>an/listinfo/syslog-ng</a><br>
Documentation: <a href="http://www.balabit.com/support/documentation/?product=syslog-ng" rel="noreferrer" target="_blank">http://www.balabit.com/support<wbr>/documentation/?product=<wbr>syslog-ng</a><br>
FAQ: <a href="http://www.balabit.com/wiki/syslog-ng-faq" rel="noreferrer" target="_blank">http://www.balabit.com/wiki/sy<wbr>slog-ng-faq</a><br>
<br>
</blockquote></div></div>