<?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: Changing sourcetype name in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Changing-sourcetype-name/m-p/546299#M90992</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/172955"&gt;@jwhughes58&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Yes, the last one wins.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 31 Mar 2021 19:48:13 GMT</pubDate>
    <dc:creator>scelikok</dc:creator>
    <dc:date>2021-03-31T19:48:13Z</dc:date>
    <item>
      <title>Changing sourcetype name</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Changing-sourcetype-name/m-p/546268#M90989</link>
      <description>&lt;P&gt;I've got an app that I've developed running on a HF that has the following inputs.conf&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;monitor:///apps/snmp-traps/traps-received.log]
disabled = false
host = hostname
index = my_index
sourcetype = SNMP:raw&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Then the props.conf&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[SNMP:raw]
SHOULD_LINEMERGE = true
BREAK_ONLY_BEFORE_DATE = true
TRANSFORMS-snmp_sourcetype = aruba_config_alert, aruba_down_ap, aruba_down_radio, aruba_radio_utilization, aruba_rogue_ap_detected_detail, aruba_rogue_ap_discovered, aruba_up_ap, snmp_aruba_amp, snmp_cisco_prime, snmp_cisco_asa, snmp_solarwinds, snmp_pan, snmp_generic_traps&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then the transforms.conf&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;#
# Set sourcetype based on trap
#

#
# Aruba AMP Trap 12
#
[aruba_rogue_ap_discovered]
DEST_KEY = MetaData:Sourcetype
REGEX = AWAMP-MIB::rogueAPDetected
FORMAT = sourcetype::aruba:rogue_ap_discovered

#
# Aruba AMP Trap 13
#
[aruba_down_ap]
DEST_KEY = MetaData:Sourcetype
REGEX = AWAMP-MIB::downAP
FORMAT = sourcetype::aruba:down_ap

#
# Aruba AMP Trap 15
#
[aruba_up_ap]
DEST_KEY = MetaData:Sourcetype
REGEX = AWAMP-MIB::upAP
FORMAT = sourcetype::aruba:up_ap

#
# Aruba AMP Trap 16
#
[aruba_down_radio]
DEST_KEY = MetaData:Sourcetype
REGEX = AWAMP-MIB::downRadio
FORMAT = sourcetype::aruba:down_radio

#
# Aruba AMP Trap 30
#
[aruba_radio_utilization]
DEST_KEY = MetaData:Sourcetype
REGEX = AWAMP-MIB::radioUtilization
FORMAT = sourcetype::aruba:radio_utilization

#
# Aruba AMP Trap 32
#
[aruba_rogue_ap_detected_detail]
DEST_KEY = MetaData:Sourcetype
REGEX = AWAMP-MIB::rogueAPDetectedDetail
FORMAT = sourcetype::aruba:rogue_ap_detected_detail

#
# Aruba AMP Trap 59
#
[aruba_up_radio]
DEST_KEY = MetaData:Sourcetype
REGEX = AWAMP-MIB::upRadio
FORMAT = sourcetype::aruba:up_radio

#
# Aruba AMP Trap 200
#
[aruba_config_alert]
DEST_KEY = MetaData:Sourcetype
REGEX = AWAMP-MIB::configAlert
FORMAT = sourcetype::aruba:config_alert

#### sourcetype routing

[snmp_aruba_amp]
DEST_KEY = MetaData:Sourcetype
REGEX = SNMPv2-MIB\:\:snmpTrapOID.0 = OID\: AWAMP-MIB
FORMAT = sourcetype::aruba:snmp

[snmp_cisco_prime]
DEST_KEY = MetaData:Sourcetype
REGEX = SNMPv2-MIB\:\:snmpTrapOID.0 = OID\: CISCO-WIRELESS-NOTIFICATION-MIB
FORMAT = sourcetype::cisco:prime

[snmp_cisco_asa]
DEST_KEY = MetaData:Sourcetype
REGEX = .*SNMPv2-SMI\:\:enterprises\.3076.*
FORMAT = sourcetype::cisco:asa:snmp

[snmp_pan]
DEST_KEY = MetaData:Sourcetype
REGEX = SNMPv2-MIB\:\:snmpTrapOID.0 = OID\: PAN-TRAPS
FORMAT = sourcetype::pan:snmp

[snmp_solarwinds]
DEST_KEY = MetaData:Sourcetype
REGEX = SNMPv2-MIB\:\:snmpTrapEnterprise.0 = OID\: SOLARWINDS-PRODUCTS
FORMAT = sourcetype::solarwinds:snmp

[snmp_generic_traps]
DEST_KEY = MetaData:Sourcetype
REGEX = .*IF-MIB.*
FORMAT = sourcetype::snmp:generic_traps&lt;/LI-CODE&gt;&lt;P&gt;The data is getting in and the props is calling the transforms correctly, but instead of seeing aruba:rogue_ap_discovered when a Rogue AP Discovered trap is in the log, instead I see aruba:snmp.&amp;nbsp; I thought I understood this when this was for PAN only it appeared that the transforms get processed in order.&amp;nbsp; Is there something I'm missing?&lt;/P&gt;&lt;P&gt;Splunk 7.3.6&lt;/P&gt;&lt;P&gt;TIA,&lt;/P&gt;&lt;P&gt;Joe&lt;/P&gt;</description>
      <pubDate>Wed, 31 Mar 2021 16:03:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Changing-sourcetype-name/m-p/546268#M90989</guid>
      <dc:creator>jwhughes58</dc:creator>
      <dc:date>2021-03-31T16:03:54Z</dc:date>
    </item>
    <item>
      <title>Re: Changing sourcetype name</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Changing-sourcetype-name/m-p/546292#M90990</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/172955"&gt;@jwhughes58&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Splunk applies transforms in the list order. Since both &lt;SPAN&gt;rogue_ap_discovered and snmp_aruba_amp are matching, the last one wins. You should either make REGEX definitions more specific or change the order.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Mar 2021 19:21:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Changing-sourcetype-name/m-p/546292#M90990</guid>
      <dc:creator>scelikok</dc:creator>
      <dc:date>2021-03-31T19:21:11Z</dc:date>
    </item>
    <item>
      <title>Re: Changing sourcetype name</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Changing-sourcetype-name/m-p/546293#M90991</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I've read that and thought I had an understanding of list order.&amp;nbsp; So it is the last one that wins and not the first one?&lt;/P&gt;&lt;P&gt;Joe&lt;/P&gt;</description>
      <pubDate>Wed, 31 Mar 2021 19:27:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Changing-sourcetype-name/m-p/546293#M90991</guid>
      <dc:creator>jwhughes58</dc:creator>
      <dc:date>2021-03-31T19:27:51Z</dc:date>
    </item>
    <item>
      <title>Re: Changing sourcetype name</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Changing-sourcetype-name/m-p/546299#M90992</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/172955"&gt;@jwhughes58&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Yes, the last one wins.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Mar 2021 19:48:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Changing-sourcetype-name/m-p/546299#M90992</guid>
      <dc:creator>scelikok</dc:creator>
      <dc:date>2021-03-31T19:48:13Z</dc:date>
    </item>
  </channel>
</rss>

