<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Just a heads up - Cisco Nexus devices have a different format than normal ios devices, it’s kind of obnoxious.<div class=""><br class=""></div><div class="">2017 Apr 26 18:04:43</div><div class=""><div class=""><br class=""></div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On May 3, 2017, at 2:26 AM, Fekete, Róbert <<a href="mailto:robert.fekete@balabit.com" class="">robert.fekete@balabit.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Hi, you can find the description of junctions and channels here: <a href="https://www.balabit.com/documents/syslog-ng-ose-latest-guides/en/syslog-ng-ose-guide-admin/html/junctions.html" class="">https://www.balabit.com/documents/syslog-ng-ose-latest-guides/en/syslog-ng-ose-guide-admin/html/junctions.html</a><div class=""><br class=""></div><div class="">and here: <a href="https://www.balabit.com/documents/syslog-ng-ose-latest-guides/en/syslog-ng-ose-guide-admin/html/embedded-objects.html" class="">https://www.balabit.com/documents/syslog-ng-ose-latest-guides/en/syslog-ng-ose-guide-admin/html/embedded-objects.html</a></div></div><div class="gmail_extra"><br class=""><div class="gmail_quote">On Wed, May 3, 2017 at 1:54 AM, Schoonover, Mark E      HHHH <span dir="ltr" class=""><<a href="mailto:Mark.Schoonover@cigna.com" target="_blank" class="">Mark.Schoonover@cigna.com</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="EN-US" link="blue" vlink="purple" class="">
<div class="m_6663583174063366173WordSection1"><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d" class="">Thanks Bazsi,<u class=""></u><u class=""></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d" class=""><u class=""></u> <u class=""></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d" class="">It is a challenge that’s for sure. Looking at the code, I think it’ll parse a Cisco syslog message like this:<u class=""></u><u class=""></u></span></p><span class=""><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d" class=""><u class=""></u> <u class=""></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d" class="">Apr 26 14:04:45 hostname 565049: Apr 26 18:04:43.476 UTC: %EARL-DFC1-1-EXCESSIVE_PARITY_<wbr class="">ERROR: EARL 0: Parity error detected in VRAM<u class=""></u><u class=""></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d" class=""><u class=""></u> <u class=""></u></span></p>
</span><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d" class="">This snippet<u class=""></u><u class=""></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d" class="">            csv-parser(delimiters(chars('-<wbr class="">')) template("$3")<u class=""></u><u class=""></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d" class="">                       columns('.cisco.facility', '.cisco.severity', '.cisco.mnemonic'));<u class=""></u><u class=""></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d" class=""><u class=""></u> <u class=""></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d" class="">into:<u class=""></u><u class=""></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d" class=""><u class=""></u> <u class=""></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d" class="">.cisco.facility = EARL<u class=""></u><u class=""></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d" class="">.cisco.severity = DFC1<u class=""></u><u class=""></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d" class="">.cisco.mnemonic = 1<u class=""></u><u class=""></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d" class=""><u class=""></u> <u class=""></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d" class="">I’m not familiar with channels and junctions and didn’t find anything in the OSE admin manual. Possibly I’m not fully understanding either.<u class=""></u><u class=""></u></span></p><span class=""><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d" class=""><u class=""></u> <u class=""></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:Consolas;color:#1f497d" class="">Regards,<u class=""></u><u class=""></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:Consolas;color:#1f497d" class=""><u class=""></u> <u class=""></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:Consolas;color:#1f497d" class="">Mark Schoonover – KA6WKE<u class=""></u><u class=""></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:Consolas;color:#1f497d" class="">Infrastructure Engineering Manager, Splunk Architect<u class=""></u><u class=""></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:Consolas;color:#1f497d" class="">ENE   : Tools, Instrumentation and Common Services Team<u class=""></u><u class=""></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:Consolas;color:#1f497d" class="">Office: 32.8697° N, 116.9711° W
<u class=""></u><u class=""></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:Consolas;color:#1f497d" class="">Phone : <a href="tel:(770)%20261-7934" value="+17702617934" target="_blank" class="">770-261-7934</a>
<u class=""></u><u class=""></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:Consolas;color:#1f497d" class="">Email :
<a href="mailto:mark.schoonover@cigna.com" target="_blank" class=""><span style="color:#0563c1" class="">mark.schoonover@cigna.com</span></a><u class=""></u><u class=""></u></span></p><p class="MsoNormal"><b class=""><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#1f497d" class="">HPSM Team: ENE NMS Engineering<u class=""></u><u class=""></u></span></b></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:Consolas;color:#1f497d" class=""><u class=""></u> <u class=""></u></span></p><p class="MsoNormal"><i class=""><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d" class="">Confidential, unpublished property of CIGNA. Do not duplicate or distribute. Use and distribution limited solely to authorized personnel. ¬© Copyright 2017
 CIGNA<u class=""></u><u class=""></u></span></i></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:Consolas;color:#1f497d" class=""><u class=""></u> <u class=""></u></span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d" class=""><u class=""></u> <u class=""></u></span></p>
</span><p class="MsoNormal"><b class=""><span style="font-size:11.0pt;font-family:"Calibri",sans-serif" class="">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif" class=""> syslog-ng [mailto:<a href="mailto:syslog-ng-bounces@lists.balabit.hu" target="_blank" class="">syslog-ng-bounces@<wbr class="">lists.balabit.hu</a>]
<b class="">On Behalf Of </b>Scheidler, Balázs<br class="">
<b class="">Sent:</b> Monday, May 01, 2017 11:57 PM<br class="">
<b class="">To:</b> Syslog-ng users' and developers' mailing list<br class="">
<b class="">Subject:</b> Re: [syslog-ng] PatternDB with CiscoSNMP Module<u class=""></u><u class=""></u></span></p><div class=""><div class="h5"><p class="MsoNormal"><u class=""></u> <u class=""></u></p>
<div class="">
<div class="">
<div class="">
<div class=""><p class="MsoNormal" style="margin-bottom:12.0pt">Hi,<u class=""></u><u class=""></u></p>
</div><p class="MsoNormal" style="margin-bottom:12.0pt">I am in the process of writing a cisco-parser() myself, which uses a combination of csv-parser() and regexps, pattern-db is not very well suited for breaking apart Cisco like conditional structure (which depends
 on various settings on the cisco side).<u class=""></u><u class=""></u></p>
</div><p class="MsoNormal" style="margin-bottom:12.0pt">While handling various settings (service sequence-numbers, service timestamps, logging origin-id, etc), it achieves about 37k msg/sec. What is your target number with regards to performance?<u class=""></u><u class=""></u></p>
</div><p class="MsoNormal" style="margin-bottom:12.0pt">Here's my stuff:<br class="">
<a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_balabit_syslog-2Dng_pull_1456&d=DwMFaQ&c=WlnXFIBCT3pmNh_w8hYeLw&r=7hmZ2rDjdhHVbv2tovCmuIwqUlXIJdVXqIASPRODb2U&m=s7SsNLIK6w8eENvA6fSVfIY_hmH_Ao37Vfkb8LMT5go&s=tBE35b_4ndD7X1zSxFEcMXgnwGM1GZ9VB3oIUGF-vtU&e=" target="_blank" class="">https://github.com/balabit/<wbr class="">syslog-ng/pull/1456</a><u class=""></u><u class=""></u></p>
</div>
<div class=""><p class="MsoNormal"><br clear="all" class="">
<u class=""></u><u class=""></u></p>
<div class="">
<div class="">
<div class=""><p class="MsoNormal">-- <br class="">
Bazsi<u class=""></u><u class=""></u></p>
</div>
</div>
</div><p class="MsoNormal"><u class=""></u> <u class=""></u></p>
<div class=""><p class="MsoNormal">On Tue, May 2, 2017 at 2:17 AM, Schoonover, Mark E HHHH <<a href="mailto:Mark.Schoonover@cigna.com" target="_blank" class="">Mark.Schoonover@cigna.com</a>> wrote:<u class=""></u><u class=""></u></p>
<blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in" class="">
<div class="">
<div class=""><p class="MsoNormal">Thanks for reading,<u class=""></u><u class=""></u></p><p class="MsoNormal"> <u class=""></u><u class=""></u></p><p class="MsoNormal">I’m in the process of creating a log to trap for Cisco devices. I have it working for facilities like this: TRINITY-2-TRINITY_SYSLOG_CRIT with this pattern:<u class=""></u><u class=""></u></p><p class="MsoNormal"> <u class=""></u><u class=""></u></p><p class="MsoNormal">@ESTRING::%@@ESTRING:.cisco.<wbr class="">Facility:-@@ESTRING:.cisco.<wbr class="">Severity:-@@ESTRING:.cisco.<wbr class="">MsgName::@ @ANYSTRING:.cisco.MsgText@<u class=""></u><u class=""></u></p><p class="MsoNormal"> <u class=""></u><u class=""></u></p><p class="MsoNormal">Now there are other facilities with an additional hyphen before the severity: EARL-DFC1-1-EXCESSIVE_PARITY_<wbr class="">ERROR:<u class=""></u><u class=""></u></p><p class="MsoNormal"> <u class=""></u><u class=""></u></p><p class="MsoNormal">Apr 26 14:04:45 hostname 565049: Apr 26 18:04:43.476 UTC: %EARL-DFC1-1-EXCESSIVE_PARITY_<wbr class="">ERROR: EARL 0: Parity error detected in VRAM'<u class=""></u><u class=""></u></p><p class="MsoNormal"> <u class=""></u><u class=""></u></p><p class="MsoNormal">which parses into:<u class=""></u><u class=""></u></p><p class="MsoNormal"> <u class=""></u><u class=""></u></p><p class="MsoNormal"><span style="font-family:Consolas" class="">Testing message: program='EARL-DFC1-1-<wbr class="">EXCESSIVE_PARITY_ERROR' message='Apr 26 14:04:45 hostname 565049: Apr 26 18:04:43.476 UTC: %EARL-DFC1-1-EXCESSIVE_PARITY_<wbr class="">ERROR:
 EARL 0: Parity error detected in VRAM'</span><u class=""></u><u class=""></u></p><p class="MsoNormal"><span style="font-family:Consolas" class="">Match name='.classifier.rule_id', value='09944c71-95eb-4bc0-<wbr class="">8575-936931d85715', expected='09944c71-95eb-4bc0-<wbr class="">8575-936931d85715'</span><u class=""></u><u class=""></u></p><p class="MsoNormal"><span style="font-family:Consolas" class="">Wrong match name='.cisco.Facility', value='EARL', expected='EARL-DFC1'</span><u class=""></u><u class=""></u></p><p class="MsoNormal"><span style="font-family:Consolas" class="">Wrong match name='.cisco.Severity', value='DFC1', expected='1'</span><u class=""></u><u class=""></u></p><p class="MsoNormal"><span style="font-family:Consolas" class="">Wrong match name='.cisco.MsgName', value='1-EXCESSIVE_PARITY_<wbr class="">ERROR', expected='EXCESSIVE_PARITY_<wbr class="">ERROR'</span><u class=""></u><u class=""></u></p><p class="MsoNormal"><span style="font-family:Consolas" class="">Match name='.cisco.MsgText', value='EARL 0: Parity error detected in VRAM', expected='EARL 0: Parity error detected in VRAM'</span><u class=""></u><u class=""></u></p><p class="MsoNormal"> <u class=""></u><u class=""></u></p><p class="MsoNormal">I’ve tried a pattern that would parse EARL and DFC1 into separate variables, then append them into .cisco.Facility – which didn’t work. Still that leaves the pattern hardcoded to
 just two hypens. I’ve also tried hard coding EARL-DFC1 into the pattern, then use value to set .cisco.Facility correctly. This approach works but being hardcoded, another Facility with embedded hyphens will fail. Ideally I’d like to have a pattern that matches
 on the last hyphen before the severity and capture that. I could parse using a regexp and setting $1, $2, $3, and $4 to the appropriate variables but I’m concerned about performance issues – I’m thinking this is a last resort solution.<u class=""></u><u class=""></u></p><p class="MsoNormal"> <u class=""></u><u class=""></u></p><p class="MsoNormal">Any thoughts on how to proceed?<u class=""></u><u class=""></u></p><p class="MsoNormal"> <u class=""></u><u class=""></u></p><p class="MsoNormal"><span style="font-family:Consolas" class="">Regards,</span><u class=""></u><u class=""></u></p><p class="MsoNormal"><span style="font-family:Consolas" class=""> </span><u class=""></u><u class=""></u></p><p class="MsoNormal"><span style="font-family:Consolas" class="">Mark Schoonover – KA6WKE</span><u class=""></u><u class=""></u></p><p class="MsoNormal"><span style="font-family:Consolas" class="">Infrastructure Engineering Manager, Splunk Architect</span><u class=""></u><u class=""></u></p><p class="MsoNormal"><span style="font-family:Consolas" class="">ENE   : Tools, Instrumentation and Common Services Team</span><u class=""></u><u class=""></u></p><p class="MsoNormal"><span style="font-family:Consolas" class="">Office: 32.8697° N, 116.9711° W
</span><u class=""></u><u class=""></u></p><p class="MsoNormal"><span style="font-family:Consolas" class="">Phone : <a href="tel:(770)%20261-7934" value="+17702617934" target="_blank" class="">770-261-7934</a>
</span><u class=""></u><u class=""></u></p><p class="MsoNormal"><span style="font-family:Consolas" class="">Email :
<a href="mailto:mark.schoonover@cigna.com" target="_blank" class="">mark.schoonover@cigna.com</a></span><u class=""></u><u class=""></u></p><p class="MsoNormal"><b class=""><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#1f497d" class="">HPSM Team: ENE NMS Engineering</span></b><u class=""></u><u class=""></u></p><p class="MsoNormal"><span style="font-family:Consolas" class=""> </span><u class=""></u><u class=""></u></p><p class="MsoNormal"><i class=""><span style="color:#1f497d" class="">Confidential, unpublished property of CIGNA. Do not duplicate or distribute. Use and distribution limited solely to authorized personnel. ¬© Copyright
 2017 CIGNA</span></i><u class=""></u><u class=""></u></p><p class="MsoNormal"><span style="font-family:Consolas" class=""> </span><u class=""></u><u class=""></u></p><p class="MsoNormal"> <u class=""></u><u class=""></u></p>
</div><p class="">------------------------------<wbr class="">------------------------------<wbr class="">------------------<br class="">
CONFIDENTIALITY NOTICE: If you have received this email in error,<br class="">
please immediately notify the sender by e-mail at the address shown.  <br class="">
This email transmission may contain confidential information.  This <br class="">
information is intended only for the use of the individual(s) or entity to <br class="">
whom it is intended even if addressed incorrectly.  Please delete it from <br class="">
your files if you are not the intended recipient.  Thank you for your <br class="">
compliance.  Copyright (c) 2017 Cigna<br class="">
==============================<wbr class="">==============================<wbr class="">==================<u class=""></u><u class=""></u></p>
</div><p class="MsoNormal" style="margin-bottom:12.0pt"><br class="">
______________________________<wbr class="">______________________________<wbr class="">__________________<br class="">
Member info: <a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.balabit.hu_mailman_listinfo_syslog-2Dng&d=DwMFaQ&c=WlnXFIBCT3pmNh_w8hYeLw&r=7hmZ2rDjdhHVbv2tovCmuIwqUlXIJdVXqIASPRODb2U&m=s7SsNLIK6w8eENvA6fSVfIY_hmH_Ao37Vfkb8LMT5go&s=4rnwzztJes-sEVyNI37_YvvyrlHkRLSwjQGprO-fmX0&e=" target="_blank" class="">
https://lists.balabit.hu/<wbr class="">mailman/listinfo/syslog-ng</a><br class="">
Documentation: <a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__www.balabit.com_support_documentation_-3Fproduct-3Dsyslog-2Dng&d=DwMFaQ&c=WlnXFIBCT3pmNh_w8hYeLw&r=7hmZ2rDjdhHVbv2tovCmuIwqUlXIJdVXqIASPRODb2U&m=s7SsNLIK6w8eENvA6fSVfIY_hmH_Ao37Vfkb8LMT5go&s=k_tNOdB-fJ6oAIfsJ6wU1JVQv5cTPockc95Diky6exc&e=" target="_blank" class="">
http://www.balabit.com/<wbr class="">support/documentation/?<wbr class="">product=syslog-ng</a><br class="">
FAQ: <a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__www.balabit.com_wiki_syslog-2Dng-2Dfaq&d=DwMFaQ&c=WlnXFIBCT3pmNh_w8hYeLw&r=7hmZ2rDjdhHVbv2tovCmuIwqUlXIJdVXqIASPRODb2U&m=s7SsNLIK6w8eENvA6fSVfIY_hmH_Ao37Vfkb8LMT5go&s=rNRCDCuEpMjwyl9gta5U2p59odVIqTgghc5xzMfOU_k&e=" target="_blank" class="">
http://www.balabit.com/wiki/<wbr class="">syslog-ng-faq</a><br class="">
<br class="">
<u class=""></u><u class=""></u></p>
</blockquote>
</div><p class="MsoNormal"><u class=""></u> <u class=""></u></p>
</div>
</div></div></div><div class=""><div class="h5"><p class="">------------------------------<wbr class="">------------------------------<wbr class="">------------------<br class="">CONFIDENTIALITY NOTICE: If you have received this email in error,<br class="">please immediately notify the sender by e-mail at the address shown.  <br class="">This email transmission may contain confidential information.  This <br class="">information is intended only for the use of the individual(s) or entity to <br class="">whom it is intended even if addressed incorrectly.  Please delete it from <br class="">your files if you are not the intended recipient.  Thank you for your <br class="">compliance.  Copyright (c) 2017 Cigna<br class="">==============================<wbr class="">==============================<wbr class="">==================</p></div></div></div>

<br class="">______________________________<wbr class="">______________________________<wbr class="">__________________<br class="">
Member info: <a href="https://lists.balabit.hu/mailman/listinfo/syslog-ng" rel="noreferrer" target="_blank" class="">https://lists.balabit.hu/<wbr class="">mailman/listinfo/syslog-ng</a><br class="">
Documentation: <a href="http://www.balabit.com/support/documentation/?product=syslog-ng" rel="noreferrer" target="_blank" class="">http://www.balabit.com/<wbr class="">support/documentation/?<wbr class="">product=syslog-ng</a><br class="">
FAQ: <a href="http://www.balabit.com/wiki/syslog-ng-faq" rel="noreferrer" target="_blank" class="">http://www.balabit.com/wiki/<wbr class="">syslog-ng-faq</a><br class="">
<br class="">
<br class=""></blockquote></div><br class=""></div>
______________________________________________________________________________<br class="">Member info: <a href="https://lists.balabit.hu/mailman/listinfo/syslog-ng" class="">https://lists.balabit.hu/mailman/listinfo/syslog-ng</a><br class="">Documentation: <a href="http://www.balabit.com/support/documentation/?product=syslog-ng" class="">http://www.balabit.com/support/documentation/?product=syslog-ng</a><br class="">FAQ: <a href="http://www.balabit.com/wiki/syslog-ng-faq" class="">http://www.balabit.com/wiki/syslog-ng-faq</a><br class=""><br class=""></div></blockquote></div><br class=""></div></div></body></html>