<div dir="ltr">Hi Fabien,<br><br>Could you please give me some documentation to use date-parser() and any other function to use within Syslog-ng. <br><br>Thanks for your help.<br><br>Regards,<br>Mukesh<br><br> </div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Feb 8, 2021 at 12:32 PM Fabien Wernli <<a href="mailto:wernli@in2p3.fr">wernli@in2p3.fr</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">Hi Mukesh,<br>
<br>
On Sun, Feb 07, 2021 at 06:12:00PM +0530, mukesh kumar wrote:<br>
> <value name="requesttime">${tmp.year}-$(if ("${tmp.month}"<br>
> == "Jan") 01 $(if ("${tmp.month}" == "jan") 01 $(if ("${tmp.month}" ==<br>
> "Feb") 02 $(if ("${tmp.month}" == "feb") 02 $(if ("${tmp.month}" ==<br>
> "Mar") 03 $(if ("${tmp.month}" == "mar") 03 $(if ("${tmp.month}" ==<br>
> "Apr") 04 $(if ("${tmp.month}" == "apr") 04 $(if ("${tmp.month}" ==<br>
> "May") 05 $(if ("${tmp.month}" == "may") 05 $(if ("${tmp.month}" ==<br>
> "Jun") 06 $(if ("${tmp.month}" == "jun") 06 $(if ("${tmp.month}" ==<br>
> "Jul") 07 $(if ("${tmp.month}" == "jul") 07 $(if ("${tmp.month}" ==<br>
> "Aug") 08 $(if ("${tmp.month}" == "aug") 08 $(if ("${tmp.month}" ==<br>
> "Sep") 09 $(if ("${tmp.month}" == "sep") 09 $(if ("${tmp.month}" ==<br>
> "Oct") 10 $(if ("${tmp.month}" == "oct") 10 $(if ("${tmp.month}" ==<br>
> "Nov") 11 $(if ("${tmp.month}" == "nov") 11 $(if ("${tmp.month}" ==<br>
> "Dec") 12 $(if ("${tmp.month}" == "dec") 12<br>
> ${tmp.month}))))))))))))))))))))))))-${tmp.day} ${tmp.time}</value><br>
> </values><br>
<br>
Did you consider the excellent date-parser() which would *probably* help in<br>
this situation ?<br>
<br>
______________________________________________________________________________<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>