<div dir="ltr"><div>It's not necessarily dangerous, but it is better to sanitize the untrusted components of the filename, for instance with the $(sanitize) template function. This may or may not be available with PE 4.0.5 that you are using.</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Mar 2, 2020 at 5:38 PM Pal, Laszlo <<a href="mailto:vlad@vlad.hu">vlad@vlad.hu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Thank you Bazsi,<div><br></div><div>This is really strange... only this client affected and not the other server which also running RHEL5 + PE4. Right now I'm investigating the issue caused several hours outage and I'm suspicious this behavior can be related to CPU spike caused freezing the whole machine. Is this possible?</div><div><br></div><div>I think I figured out why this happened :)</div><div><br></div><div>For this specific log source, I'm using a different destination like this</div><div>"/var/log/netlog/app/${HOST}/${PROGRAM}/${YEAR}/${MONTH}/${HOST}-${YEAR}${MONTH}${DAY}.log<br></div><div><br></div><div>I suppose, sometimes $PROGRAM is either empty, or contains strings which can cause this <b style="color:rgb(0,0,0);font-family:arial,sans-serif;white-space:pre-wrap">Spurious path</b><span style="color:rgb(0,0,0);font-family:arial,sans-serif;white-space:pre-wrap"> issues.... can we say, using $PROGRAM in local destination is quite dangerous? :)</span></div><div><span style="color:rgb(0,0,0);font-family:arial,sans-serif;white-space:pre-wrap"><br></span></div><div><span style="color:rgb(0,0,0);font-family:arial,sans-serif;white-space:pre-wrap">Thanks</span></div><div><span style="color:rgb(0,0,0);font-family:arial,sans-serif;white-space:pre-wrap">Laszlo</span></div><div><span style="color:rgb(0,0,0);font-family:arial,sans-serif;white-space:pre-wrap"><br></span></div><div><br></div><div><br></div></div>
______________________________________________________________________________<br>
Member info: <a href="https://lists.balabit.hu/mailman/listinfo/syslog-ng" rel="noreferrer" target="_blank">https://lists.balabit.hu/mailman/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/documentation/?product=syslog-ng</a><br>
FAQ: <a href="http://www.balabit.com/wiki/syslog-ng-faq" rel="noreferrer" target="_blank">http://www.balabit.com/wiki/syslog-ng-faq</a><br>
<br>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature">Bazsi</div>