<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Create cleaner snmptrapd logs in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Create-cleaner-snmptrapd-logs/m-p/474403#M99706</link>
    <description>&lt;P&gt;I appreciate the feedback. At that point, I will just use rex mode=sed though. I would like to know if it would be possible to do this in snmptrapd since, I am assuming, that would be most efficient. &lt;/P&gt;</description>
    <pubDate>Mon, 24 Feb 2020 15:17:18 GMT</pubDate>
    <dc:creator>_joe</dc:creator>
    <dc:date>2020-02-24T15:17:18Z</dc:date>
    <item>
      <title>Create cleaner snmptrapd logs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Create-cleaner-snmptrapd-logs/m-p/474401#M99704</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;

&lt;P&gt;I was wondering if there is a way to cleanup the key value pair logging inside of snmptrapd? I am ingesting these logs with a UF and I do not want to perform rex sed from my indexers. Thanks. &lt;/P&gt;

&lt;P&gt;Here is my current format string&lt;/P&gt;

&lt;P&gt;vi /etc/snmp/snmptrapd.conf&lt;BR /&gt;
&lt;CODE&gt;format2 Date = %y-%02.2m-%02.2l %02.2h:%02.2j:%02.2k\n%V\n%v\n---\n&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;My logs look like this:&lt;BR /&gt;
CISCO-LWAPP-DOT11-CLIENT-MIB::cldcApMacAddress.'....6C' = mac-address&lt;BR /&gt;
CISCO-LWAPP-DOT11-CLIENT-MIB::cldcClientByIpAddressType.0 = ipv4&lt;BR /&gt;
CISCO-LWAPP-DOT11-CLIENT-MIB::cldcClientUsername.'@&amp;amp;....' = name&lt;BR /&gt;
CISCO-LWAPP-DOT11-CLIENT-MIB::cldcClientSSID.'@&amp;amp;....' = Employee&lt;BR /&gt;
CISCO-LWAPP-DOT11-CLIENT-MIB::cldcClientSessionID.'@&amp;amp;....' = id&lt;BR /&gt;
CISCO-LWAPP-DOT11-CLIENT-MIB::cldcApMacAddress.'@&amp;amp;....' = mac&lt;/P&gt;

&lt;P&gt;I would like them to look like this (before ingesting them into Splunk)&lt;BR /&gt;
cldcApMacAddress = mac-address&lt;BR /&gt;
cldcClientByIpAddressType = ipv4&lt;/P&gt;

&lt;P&gt;If that isn't possible, I would at least like to remove the random characters (example: "@&amp;amp;...." and "'....6C'"). I am not sure why they are generating. &lt;/P&gt;</description>
      <pubDate>Wed, 19 Feb 2020 17:51:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Create-cleaner-snmptrapd-logs/m-p/474401#M99704</guid>
      <dc:creator>_joe</dc:creator>
      <dc:date>2020-02-19T17:51:42Z</dc:date>
    </item>
    <item>
      <title>Re: Create cleaner snmptrapd logs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Create-cleaner-snmptrapd-logs/m-p/474402#M99705</link>
      <description>&lt;P&gt;Perform the cleanup in, say, a looping script that writes the cleaned up events to a separate log file and then have the UF pick up events from that log file?&lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2020 14:36:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Create-cleaner-snmptrapd-logs/m-p/474402#M99705</guid>
      <dc:creator>bgraabek_splunk</dc:creator>
      <dc:date>2020-02-20T14:36:59Z</dc:date>
    </item>
    <item>
      <title>Re: Create cleaner snmptrapd logs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Create-cleaner-snmptrapd-logs/m-p/474403#M99706</link>
      <description>&lt;P&gt;I appreciate the feedback. At that point, I will just use rex mode=sed though. I would like to know if it would be possible to do this in snmptrapd since, I am assuming, that would be most efficient. &lt;/P&gt;</description>
      <pubDate>Mon, 24 Feb 2020 15:17:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Create-cleaner-snmptrapd-logs/m-p/474403#M99706</guid>
      <dc:creator>_joe</dc:creator>
      <dc:date>2020-02-24T15:17:18Z</dc:date>
    </item>
  </channel>
</rss>

