<div dir="ltr"><div><div>Hi, <br><br></div>TheĀ easiest way to drop the timestamp is on the syslog-ng server side, where you write the message into a file. There you can use a template, something like the one below. But why do you want to send a message without a timestamp?<br><pre class="gmail-prettyprint gmail-synopsis gmail-prettyprinted" style="display:table-cell"><span class="gmail-pln">destination d_file </span><span class="gmail-pun">{</span><span class="gmail-pln">
file </span><span class="gmail-pun">(</span><span class="gmail-str">"/var/log/messages"</span><span class="gmail-pln"> </span><span class="gmail-kwd">template</span><span class="gmail-pun">(</span><span class="gmail-str">"${MSG}\n"</span><span class="gmail-pun">)</span><span class="gmail-pln"> </span><span class="gmail-pun">);</span><span class="gmail-pln">
</span><span class="gmail-pun">};</span></pre><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Sep 21, 2016 at 7:41 PM, Csuti Istvan <span dir="ltr"><<a href="mailto:icsuti@zalaszam.hu" target="_blank">icsuti@zalaszam.hu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi All!<br>
<br>
I would like send UDP message to the syslog server without timestamp.<br>
<br>
I readed RFC3164 and RFC5424 and syslog-ng-ose-guide-admin.pdf.<br>
<br>
The new "RFC 5424 (also called the IETF-syslog protocol): see Section 2.8.2,<br>
IETF-syslog messages (p. 13)" support NIL values "-" in HEADER.<br>
<br>
I sended this "<110>1 - hostname procname procid - - Message"<br>
<br>
The syslog-ng server logged this:<br>
<br>
"Sep 21 19:29:54 h164-19 1: - hostname procname procid - - Message"<br>
<br>
Question:<br>
What is wrong in my message string?<br>
The syslog-ng server why do not decode "1" after ">" as version?<br>
Can i send old syslog message (RFC3164) without timestamp?<br>
<br>
Best Regards<br>
Istvan Csuti<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/<wbr>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/<wbr>support/documentation/?<wbr>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/<wbr>syslog-ng-faq</a><br>
<br>
<br>
</blockquote></div><br></div>