Hello,<br>
<br>
Thanks for the answers. Currently, I&#39;m using syslog-ng OSE 3.1.2.<br>

<br>

For that &quot;problem&quot;, I created the following configuration :<br>
<br>Configuration :<br>

source s_r_udp_cisco {<br>
    udp ( ip(0.0.0.0)<br>
    port(514)<br>
    flags(no-parse)<br>
    program_override(&quot;cisco_routeur&quot;)<br>
   );<br>
};<br>
<br>log {<br>    source (s_r_udp_cisco);<br>    parser (pattern_db_cisco);<br><br>    filter (...)   -&gt; Filter only on &quot;.cisco.facility&quot; for example<br>    etc.<br>};<br><br>

With the following 

&quot;pattern_db_cisco&quot; :<br>

&lt;?xml version=&#39;1.0&#39; encoding=&#39;UTF-8&#39;?&gt;<br>

&lt;patterndb version=&#39;3&#39; pub_date=&#39;2010-11-04&#39;&gt;<br>

  &lt;ruleset name=&#39;cisco_routeur&#39; id=&#39;1:2:3:4&#39;&gt;<br>

    &lt;pattern&gt;cisco_routeur&lt;/pattern&gt;<br>

    &lt;rules&gt;<br>

      &lt;rule provider=&#39;cisco&#39; id=&#39;1:2:3:4:id001&#39; class=&#39;system&#39;&gt;<br>

      &lt;patterns&gt;<br>

         
&lt;pattern&gt;@QSTRING:.cisco.prio:&amp;lt;&amp;gt;@@ESTRING:.cisco.id::@
 
@ESTRING:.cisco.date:%@@ESTRING:.cisco.facility:-@@ESTRING:.cisco.severity:-@@ESTRING:.cisco.mnemonic::@
 @ANYSTRING:.cisco.message-text:@&lt;/pattern&gt;<br>



      &lt;/patterns&gt;<br>

      &lt;/rule&gt;<br>

    &lt;/rules&gt;<br>

  &lt;/ruleset&gt;<br>

&lt;/patterndb&gt;<br>

<br>and... it&#39;s working !<br>But now, I should use another UDP port (which should be another value than 514) because of the option &quot;flags(no-parse)&quot;. Indeed, I have some issues when another devices send logs to the syslog-ng server.<br>
<br>Thank you :-)<br><br>Regards,<br><br>Yann I.<br>
<br><br><br><div class="gmail_quote">2010/11/3 Fekete Róbert <span dir="ltr">&lt;<a href="mailto:frobert@balabit.hu" target="_blank">frobert@balabit.hu</a>&gt;</span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">





 Hi,<br>
<br>
AFAIK, syslog-ng Premium Edition 3.2 can recognize and properly handle this message format. I am not sure if this was already ported to OSE 3.2, I&#39;ll try to get some info on it if Bazsi does not reply sooner.<br>
<br>
Regards,<br>
Robert<br>
<div><div></div><div><br>
On Wednesday, November 03, 2010 17:40 CET, Matthew Hall &lt;<a href="mailto:mhall@mhcomputing.net" target="_blank">mhall@mhcomputing.net</a>&gt; wrote:<br>
<br>
&gt; There are ways to enable and disable the message sequence numbering<br>
&gt; and other special components of the messages on the Cisco devices<br>
&gt; themselves. The numbers can be useful for finding out if your devices are<br>
&gt; dropping messages somewhere.<br>
&gt;<br>
&gt; But the more general solution is to send these to a source which has the<br>
&gt; flags(no-parse) set. Then you can parse out the interesting stuff using<br>
&gt; patterndb. Maybe Peter Czanik from Balabit can suggest where to find the<br>
&gt; latest patterns for Cisco devices.<br>
&gt;<br>
&gt; See this for details:<br>
&gt;<br>
&gt; <a href="http://www.balabit.com/sites/default/files/documents/syslog-ng-ose-v3.1-" target="_blank">http://www.balabit.com/sites/default/files/documents/syslog-ng-ose-v3.1-</a><br>
&gt; guide-admin-en.html/index.html-single.html#reference_source_tcpudp<br>
&gt;<br>
&gt; Good Luck,<br>
&gt; Matthew.<br>
&gt;<br>
&gt; On Wednesday, November 03, 2010 08:50:59 Yann Forum wrote:<br>
&gt; &gt; Hello,<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; I&#39;m writing patterndb.xml files to filter syslog messages from servers<br>
&gt; &gt; and CISCO routers. Currently, CISCO sends syslog with that format:<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; Nov  3 15:36:02 srv01.dom.test 36779: .Nov  3 14:50:30.403:<br>
&gt; &gt; %SEC_LOGIN-5-LOGIN_SUCCESS: Login Success [user: user01] [Source:<br>
&gt; &gt; 10.0.0.1] [localport: 22] at 15:50:30 CET Wed Nov 3 2010<br>
&gt; &gt;<br>
&gt; &gt; Nov  3 15:39:02 srv01.dom.test 36780: .Nov  3 14:53:30.255:<br>
&gt; &gt; %SEC_LOGIN-5-LOGIN_SUCCESS: Login Success [user: user01] [Source:<br>
&gt; &gt; 10.0.0.1] [localport: 22] at 15:53:30 CET Wed Nov 3 2010<br>
&gt; &gt;<br>
&gt; &gt; Nov  3 15:42:01 srv01.dom.test 36781: .Nov  3 14:56:30.378:<br>
&gt; &gt; %SEC_LOGIN-5-LOGIN_SUCCESS: Login Success [user: user01] [Source:<br>
&gt; &gt; 10.0.0.1] [localport: 22] at 15:56:30 CET Wed Nov 3 2010<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; The problem comes from the program name which changes for each<br>
&gt; message:<br>
&gt; &gt; 36779, 36780, 36781, etc. For this reason, I can&#39;t use patterndb<br>
&gt; &gt; mechanism.<br>
&gt; &gt;<br>
&gt; &gt; How may I solve my problem? I think it&#39;s not allowed to change the<br>
&gt; &gt; program name with the &quot;rewrite&quot; rule.<br>
&gt; &gt;<br>
&gt; &gt; I have the same problem with switches from Alcatel...<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; Regards,<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; Yann I.<br>
&gt;<br>
&gt; --<br>
&gt; Matthew Hall<br>
</div></div>&gt; ______________________________________________________________________________<br>
&gt; Member info: <a href="https://lists.balabit.hu/mailman/listinfo/syslog-ng" target="_blank">https://lists.balabit.hu/mailman/listinfo/syslog-ng</a><br>
&gt; Documentation: <a href="http://www.balabit.com/support/documentation/?product=syslog-ng" target="_blank">http://www.balabit.com/support/documentation/?product=syslog-ng</a><br>
&gt; FAQ: <a href="http://www.campin.net/syslog-ng/faq.html" target="_blank">http://www.campin.net/syslog-ng/faq.html</a><br>
&gt;<br>
&gt;<br>
<br>
<br>
<br>
<br>
<br>
______________________________________________________________________________<br>
Member info: <a href="https://lists.balabit.hu/mailman/listinfo/syslog-ng" target="_blank">https://lists.balabit.hu/mailman/listinfo/syslog-ng</a><br>
Documentation: <a href="http://www.balabit.com/support/documentation/?product=syslog-ng" target="_blank">http://www.balabit.com/support/documentation/?product=syslog-ng</a><br>
FAQ: <a href="http://www.campin.net/syslog-ng/faq.html" target="_blank">http://www.campin.net/syslog-ng/faq.html</a><br>
<br>
</blockquote></div><br>