<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Hi All!<br>
      <br>
      The solution is:<br>
      Use old RFC3164 message syntax without timestamp:<br>
      The UDP message is:<br>
      "&lt;prio&gt;procname[procid]: LogMessage"<br>
      <br>
      prio: byte 0-191 (See more information in RFC3164
      <a class="moz-txt-link-freetext" href="https://www.ietf.org/rfc/rfc3164.txt">https://www.ietf.org/rfc/rfc3164.txt</a>)<br>
      procname: string (max length 48 character)<br>
      procid: number (Max length 128 character)<br>
      Full UDP message length 1024 character<br>
      <br>
      Best regards<br>
      <br>
      2016.09.22. 10:55 keltezéssel, Fekete, Róbert írta:<br>
    </div>
    <blockquote
cite="mid:CAAhEgppKQBBsBbbZYERQDCd-Q1gMfAiv+q0Kg_Aw48nDrahnbA@mail.gmail.com"
      type="cite">
      <pre wrap="">I see. Then the easiest is probably to not bother with the timestamp on the
sender (arduino) side, and set the keep-timestamp(no) option on the server
side.

On Wed, Sep 21, 2016 at 9:41 PM, Csuti Istvan <a class="moz-txt-link-rfc2396E" href="mailto:icsuti@zalaszam.hu">&lt;icsuti@zalaszam.hu&gt;</a> wrote:

</pre>
      <blockquote type="cite">
        <pre wrap="">Hi!

I write a program on arduino embended system.
This device do not have Real Time Clock.
I sended UDP syslog datagram from this device.


2016.09.21. 20:19 keltezéssel, Fekete, Róbert írta:

Hi,

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?

destination d_file {
    file ("/var/log/messages" template("${MSG}\n") );};



On Wed, Sep 21, 2016 at 7:41 PM, Csuti Istvan <a class="moz-txt-link-rfc2396E" href="mailto:icsuti@zalaszam.hu">&lt;icsuti@zalaszam.hu&gt;</a> <a class="moz-txt-link-rfc2396E" href="mailto:icsuti@zalaszam.hu">&lt;icsuti@zalaszam.hu&gt;</a> wrote:


Hi All!

I would like send UDP message to the syslog server without timestamp.

I readed RFC3164 and RFC5424 and syslog-ng-ose-guide-admin.pdf.

The new "RFC 5424 (also called the IETF-syslog protocol): see Section
2.8.2,
IETF-syslog messages (p. 13)" support NIL values "-" in HEADER.

I sended this "&lt;110&gt;1 - hostname procname procid - - Message"

The syslog-ng server logged this:

"Sep 21 19:29:54 h164-19 1: - hostname procname procid - - Message"

Question:
What is wrong in my message string?
The syslog-ng server why do not decode "1" after "&gt;" as version?
Can i send old syslog message (RFC3164) without timestamp?

Best Regards
Istvan Csuti

____________________________________________________________
__________________
Member info: <a class="moz-txt-link-freetext" href="https://lists.balabit.hu/mailman/listinfo/syslog-ng">https://lists.balabit.hu/mailman/listinfo/syslog-ng</a>
Documentation: <a class="moz-txt-link-freetext" href="http://www.balabit.com/support/documentation/">http://www.balabit.com/support/documentation/</a>?
product=syslog-ng
FAQ: <a class="moz-txt-link-freetext" href="http://www.balabit.com/wiki/syslog-ng-faq">http://www.balabit.com/wiki/syslog-ng-faq</a>




Hi,

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?

destination d_file {
    file ("/var/log/messages" template("${MSG}\n") );};



On Wed, Sep 21, 2016 at 7:41 PM, Csuti Istvan <a class="moz-txt-link-rfc2396E" href="mailto:icsuti@zalaszam.hu">&lt;icsuti@zalaszam.hu&gt;</a> wrote:

</pre>
        <blockquote type="cite">
          <pre wrap="">Hi All!

I would like send UDP message to the syslog server without timestamp.

I readed RFC3164 and RFC5424 and syslog-ng-ose-guide-admin.pdf.

The new "RFC 5424 (also called the IETF-syslog protocol): see Section
2.8.2,
IETF-syslog messages (p. 13)" support NIL values "-" in HEADER.

I sended this "&lt;110&gt;1 - hostname procname procid - - Message"

The syslog-ng server logged this:

"Sep 21 19:29:54 h164-19 1: - hostname procname procid - - Message"

Question:
What is wrong in my message string?
The syslog-ng server why do not decode "1" after "&gt;" as version?
Can i send old syslog message (RFC3164) without timestamp?

Best Regards
Istvan Csuti

____________________________________________________________
__________________
Member info: <a class="moz-txt-link-freetext" href="https://lists.balabit.hu/mailman/listinfo/syslog-ng">https://lists.balabit.hu/mailman/listinfo/syslog-ng</a>
Documentation: <a class="moz-txt-link-freetext" href="http://www.balabit.com/support/documentation/?product=">http://www.balabit.com/support/documentation/?product=</a>
syslog-ng
FAQ: <a class="moz-txt-link-freetext" href="http://www.balabit.com/wiki/syslog-ng-faq">http://www.balabit.com/wiki/syslog-ng-faq</a>



</pre>
        </blockquote>
        <pre wrap="">

______________________________________________________________________________
Member info: <a class="moz-txt-link-freetext" href="https://lists.balabit.hu/mailman/listinfo/syslog-ng">https://lists.balabit.hu/mailman/listinfo/syslog-ng</a>
Documentation: <a class="moz-txt-link-freetext" href="http://www.balabit.com/support/documentation/?product=syslog-ng">http://www.balabit.com/support/documentation/?product=syslog-ng</a>
FAQ: <a class="moz-txt-link-freetext" href="http://www.balabit.com/wiki/syslog-ng-faq">http://www.balabit.com/wiki/syslog-ng-faq</a>



--
Csuti István
rendszergazda
__________________________________________________

Zalaszám Informatika Kft.
8900 Zalaegerszeg, Mártírok útja 53.
Telefon: 92/502-593
Fax: 92/502-501
e-mail: <a class="moz-txt-link-abbreviated" href="mailto:icsuti@zalaszam.hu">icsuti@zalaszam.hu</a> <a class="moz-txt-link-rfc2396E" href="mailto:%0Aicsuti@zalaszam.hu%09%09%09">&lt;%0Aicsuti@zalaszam.hu%09%09%09&gt;</a>
web: <a class="moz-txt-link-abbreviated" href="http://www.zalaszam.hu">www.zalaszam.hu</a>

____________________________________________________________
__________________
Member info: <a class="moz-txt-link-freetext" href="https://lists.balabit.hu/mailman/listinfo/syslog-ng">https://lists.balabit.hu/mailman/listinfo/syslog-ng</a>
Documentation: <a class="moz-txt-link-freetext" href="http://www.balabit.com/support/documentation/">http://www.balabit.com/support/documentation/</a>?
product=syslog-ng
FAQ: <a class="moz-txt-link-freetext" href="http://www.balabit.com/wiki/syslog-ng-faq">http://www.balabit.com/wiki/syslog-ng-faq</a>



</pre>
        <br>
        <fieldset class="mimeAttachmentHeader"></fieldset>
        <br>
        <div dir="ltr">I see. Then the easiest is probably to not bother
          with the timestamp on the sender (arduino) side, and set the
          keep-timestamp(no) option on the server side.</div>
        <div class="gmail_extra"><br>
          <div class="gmail_quote">On Wed, Sep 21, 2016 at 9:41 PM,
            Csuti Istvan <span dir="ltr">&lt;<a moz-do-not-send="true"
                href="mailto:icsuti@zalaszam.hu" target="_blank">icsuti@zalaszam.hu</a>&gt;</span>
            wrote:<br>
            <blockquote class="gmail_quote" style="margin:0 0 0
              .8ex;border-left:1px #ccc solid;padding-left:1ex">
              <div bgcolor="#FFFFFF" text="#000000">
                <div>Hi!<br>
                  <br>
                  I write a program on arduino embended system.<br>
                  This device do not have Real Time Clock.<br>
                  I sended UDP syslog datagram from this device.
                  <div>
                    <div class="h5"><br>
                      <br>
                      2016.09.21. 20:19 keltezéssel, Fekete, Róbert
                      írta:<br>
                    </div>
                  </div>
                </div>
                <div>
                  <div class="h5">
                    <blockquote type="cite">
                      <pre>Hi,

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?

destination d_file {
    file ("/var/log/messages" template("${MSG}\n") );};



On Wed, Sep 21, 2016 at 7:41 PM, Csuti Istvan <a moz-do-not-send="true" href="mailto:icsuti@zalaszam.hu" target="_blank">&lt;icsuti@zalaszam.hu&gt;</a> wrote:

</pre>
                      <blockquote type="cite">
                        <pre>Hi All!

I would like send UDP message to the syslog server without timestamp.

I readed RFC3164 and RFC5424 and syslog-ng-ose-guide-admin.pdf.

The new "RFC 5424 (also called the IETF-syslog protocol): see Section
2.8.2,
IETF-syslog messages (p. 13)" support NIL values "-" in HEADER.

I sended this "&lt;110&gt;1 - hostname procname procid - - Message"

The syslog-ng server logged this:

"Sep 21 19:29:54 h164-19 1: - hostname procname procid - - Message"

Question:
What is wrong in my message string?
The syslog-ng server why do not decode "1" after "&gt;" as version?
Can i send old syslog message (RFC3164) without timestamp?

Best Regards
Istvan Csuti

______________________________<wbr>______________________________
__________________
Member info: <a moz-do-not-send="true" href="https://lists.balabit.hu/mailman/listinfo/syslog-ng" target="_blank">https://lists.balabit.hu/<wbr>mailman/listinfo/syslog-ng</a>
Documentation: <a moz-do-not-send="true" href="http://www.balabit.com/support/documentation/" target="_blank">http://www.balabit.com/<wbr>support/documentation/</a>?
product=syslog-ng
FAQ: <a moz-do-not-send="true" href="http://www.balabit.com/wiki/syslog-ng-faq" target="_blank">http://www.balabit.com/wiki/<wbr>syslog-ng-faq</a>



</pre>
        

        <fieldset></fieldset>
        

        <div dir="ltr">
          <div>
            <div>Hi, 

              

            </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?

            <pre style="display:table-cell"><span>destination d_file </span><span>{</span><span>
    file </span><span>(</span><span>"/var/log/messages"</span><span> </span><span>template</span><span>(</span><span>"${MSG}\n"</span><span>)</span><span> </span><span>);</span><span>
</span><span>};</span></pre>
            

          </div>
        </div>
        <div class="gmail_extra">

          <div class="gmail_quote">On Wed, Sep 21, 2016 at 7:41 PM,
            Csuti Istvan <span dir="ltr">&lt;<a moz-do-not-send="true" href="mailto:icsuti@zalaszam.hu" target="_blank">icsuti@zalaszam.hu</a>&gt;</span>
            wrote:

            <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi All!

              

              I would like send UDP message to the syslog server without
              timestamp.

              

              I readed RFC3164 and RFC5424 and
              syslog-ng-ose-guide-admin.pdf.

              

              The new "RFC 5424 (also called the IETF-syslog protocol):
              see Section 2.8.2,

              IETF-syslog messages (p. 13)" support NIL values "-" in
              HEADER.

              

              I sended this "&lt;110&gt;1 - hostname procname procid - -
              Message"

              

              The syslog-ng server logged this:

              

              "Sep 21 19:29:54 h164-19 1: - hostname procname procid - -
              Message"

              

              Question:

              What is wrong in my message string?

              The syslog-ng server why do not decode "1" after "&gt;" as
              version?

              Can i send old syslog message (RFC3164) without timestamp?

              

              Best Regards

              Istvan Csuti

              

              ______________________________<wbr>______________________________<wbr>__________________

              Member info: <a moz-do-not-send="true" href="https://lists.balabit.hu/mailman/listinfo/syslog-ng" rel="noreferrer" target="_blank">https://lists.balabit.hu/mailm<wbr>an/listinfo/syslog-ng</a>

              Documentation: <a moz-do-not-send="true" 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>

              FAQ: <a moz-do-not-send="true" href="http://www.balabit.com/wiki/syslog-ng-faq" rel="noreferrer" target="_blank">http://www.balabit.com/wiki/sy<wbr>slog-ng-faq</a>

              

              

            </blockquote>
          </div>
          

        </div>
        

        <fieldset></fieldset>
        

        <pre>______________________________<wbr>______________________________<wbr>__________________
Member info: <a moz-do-not-send="true" href="https://lists.balabit.hu/mailman/listinfo/syslog-ng" target="_blank">https://lists.balabit.hu/<wbr>mailman/listinfo/syslog-ng</a>
Documentation: <a moz-do-not-send="true" href="http://www.balabit.com/support/documentation/?product=syslog-ng" target="_blank">http://www.balabit.com/<wbr>support/documentation/?<wbr>product=syslog-ng</a>
FAQ: <a moz-do-not-send="true" href="http://www.balabit.com/wiki/syslog-ng-faq" target="_blank">http://www.balabit.com/wiki/<wbr>syslog-ng-faq</a>

</pre>
      </blockquote>
    </blockquote>
    

    <p>

    </p>
    </div></div><span class="HOEnZb"><font color="#888888"><div>-- 

      
      <span></span><small style="font-family:Arial Narrow">
        Csuti István 

        rendszergazda 

        ______________________________<wbr>____________________

        

      </small>
      <img moz-do-not-send="true" style="font-family:Arial Narrow;width:96px;min-height:95px;float:left" alt="" src="cid:part5.8C04DDA6.ABDD7F52@zalaszam.hu" hspace="10">
      <small>
        <span style="font-family:Arial Narrow"> Zalaszám Informatika
          Kft.
        </span>

        <span style="font-family:Arial Narrow">
          8900 Zalaegerszeg, Mártírok útja 53.
        </span>

        <span style="font-family:Arial Narrow"> Telefon: 92/502-593
          

          Fax: 92/502-501</span>
        

        <span style="font-family:Arial Narrow">e-mail: </span><a moz-do-not-send="true" style="font-family:Arial Narrow" href="mailto:%0Aicsuti@zalaszam.hu%09%09%09" target="_blank">
          icsuti@zalaszam.hu</a><span style="font-family:Arial Narrow">

          web: </span><a moz-do-not-send="true" style="font-family:Arial Narrow" href="http://www.zalaszam.hu" target="_blank">www.zalaszam.hu</a>

      </small>
    </div>
  </font></span></div>


______________________________<wbr>______________________________<wbr>__________________

Member info: <a moz-do-not-send="true" href="https://lists.balabit.hu/mailman/listinfo/syslog-ng" rel="noreferrer" target="_blank">https://lists.balabit.hu/<wbr>mailman/listinfo/syslog-ng</a>

Documentation: <a moz-do-not-send="true" 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>

FAQ: <a moz-do-not-send="true" href="http://www.balabit.com/wiki/syslog-ng-faq" rel="noreferrer" target="_blank">http://www.balabit.com/wiki/<wbr>syslog-ng-faq</a>




</blockquote></div>
</div>

<fieldset class="mimeAttachmentHeader"></fieldset>
<pre wrap="">______________________________________________________________________________
Member info: <a class="moz-txt-link-freetext" href="https://lists.balabit.hu/mailman/listinfo/syslog-ng">https://lists.balabit.hu/mailman/listinfo/syslog-ng</a>
Documentation: <a class="moz-txt-link-freetext" href="http://www.balabit.com/support/documentation/?product=syslog-ng">http://www.balabit.com/support/documentation/?product=syslog-ng</a>
FAQ: <a class="moz-txt-link-freetext" href="http://www.balabit.com/wiki/syslog-ng-faq">http://www.balabit.com/wiki/syslog-ng-faq</a>

</pre>

</blockquote></blockquote>
<p>
</p><div class="moz-signature">-- 



        <title>sig</title>


<span class="moz-txt-tag"></span><small style="font-family: Arial Narrow;">
Csuti István                                

rendszergazda                                

__________________________________________________


 </small>
<img style="font-family: Arial Narrow; width: 96px; height: 95px; float: left;" alt="" src="cid:part19.DC85D6A6.815F9748@zalaszam.hu" hspace="10">
<small>
<span style="font-family: Arial Narrow;">
        Zalaszám Informatika Kft.
</span>

<span style="font-family: Arial Narrow;">
8900 Zalaegerszeg, Mártírok útja 53.
</span>

<span style="font-family: Arial Narrow;"> Telefon: 
92/502-593

Fax: 92/502-501</span>


<span style="font-family: Arial Narrow;">e-mail: </span><a style="font-family: Arial Narrow;" class="moz-txt-link-abbreviated" href="mailto:%0Aicsuti@zalaszam.hu%09%09%09">
icsuti@zalaszam.hu</a><span style="font-family: Arial Narrow;">

web: </span><a style="font-family: Arial Narrow;" href="http://www.zalaszam.hu">www.zalaszam.hu</a>

</small>


</div></body></html>