<?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 SourceType using Props.conf and Transforms.conf in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/SourceType-using-Props-conf-and-Transforms-conf/m-p/70275#M14294</link>
    <description>&lt;P&gt;Ok, so here is the deal.  I will have quite a few different types of events coming through on UDP 514 and need to sourcetype them differently.  I have read enough to find that this is supposed to be possible, however I can't get it to work.  Here is what I have so far.&lt;/P&gt;

&lt;P&gt;To start with here is a sample event stream.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Jun  7 14:25:25 10.220.5.27 8417003: *Jun  7 14:22:01.037 cst: %SEC-6-IPACCESSLOGP: list Check-TCP-UDP permitted udp 10.222.71.115(137) -&amp;gt; 10.222.71.255(137), 2 packets
Jun  7 14:25:27 10.220.5.27 8417004: *Jun  7 14:22:02.393 cst: %SEC-6-IPACCESSLOGP: list Check-TCP-UDP permitted udp 10.222.71.116(137) -&amp;gt; 10.222.71.255(137), 2 packets
Jun  7 14:25:28 10.220.5.27 8417005: *Jun  7 14:22:03.493 cst: %SEC-6-IPACCESSLOGP: list Check-TCP-UDP permitted udp 10.222.71.52(5510) -&amp;gt; 255.255.255.255(5510), 1 packet
Jun  7 14:25:29 10.220.5.27 8417006: *Jun  7 14:22:04.905 cst: %SEC-6-IPACCESSLOGP: list Check-TCP-UDP permitted udp 10.222.71.71(5510) -&amp;gt; 255.255.255.255(5510), 1 packet
Jun  7 14:25:31 10.220.5.27 8417007: *Jun  7 14:22:06.445 cst: %SEC-6-IPACCESSLOGP: list Check-TCP-UDP permitted udp 10.222.71.152(137) -&amp;gt; 10.222.71.255(137), 2 packets
Jun  7 14:25:33 10.220.5.27 8417008: *Jun  7 14:22:08.325 cst: %SEC-6-IPACCESSLOGP: list Check-TCP-UDP permitted udp 10.222.71.54(5510) -&amp;gt; 255.255.255.255(5510), 1 packet
Jun  7 14:25:34 10.220.5.27 8417009: *Jun  7 14:22:09.393 cst: %SEC-6-IPACCESSLOGP: list Check-TCP-UDP permitted udp 10.222.71.66(5510) -&amp;gt; 255.255.255.255(5510), 1 packet
Jun  7 14:25:36 10.220.5.27 8417010: *Jun  7 14:22:12.093 cst: %SEC-6-IPACCESSLOGP: list Check-TCP-UDP permitted udp 10.222.71.49(5510) -&amp;gt; 255.255.255.255(5510), 1 packet
Jun  7 14:25:38 10.220.5.27 8417011: *Jun  7 14:22:13.341 cst: %SEC-6-IPACCESSLOGP: list Check-TCP-UDP permitted udp 10.222.71.64(5510) -&amp;gt; 255.255.255.255(5510), 1 packet
Jun  7 14:25:39 10.220.5.27 8417012: *Jun  7 14:22:14.693 cst: %SEC-6-IPACCESSLOGP: list Check-TCP-UDP permitted udp 10.222.71.55(5510) -&amp;gt; 255.255.255.255(5510), 1 packet
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Now what I would like to do is to use the device IP address (10.220.5.27) as a means to sourcetype this type of event.  This is what I have in my props and transforms right now on the indexer&lt;/P&gt;

&lt;P&gt;props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[source::UDP:514]
TRANSFORMS-transCisco = transCisco
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;transforms.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[transCisco]
REGEX=10.220.5.27
FORMAT= sourcetype::cisco_syslog
DEST_KEY = MetaData:Sourcetype
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 07 Jun 2012 19:33:06 GMT</pubDate>
    <dc:creator>rmcdougal</dc:creator>
    <dc:date>2012-06-07T19:33:06Z</dc:date>
    <item>
      <title>SourceType using Props.conf and Transforms.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/SourceType-using-Props-conf-and-Transforms-conf/m-p/70275#M14294</link>
      <description>&lt;P&gt;Ok, so here is the deal.  I will have quite a few different types of events coming through on UDP 514 and need to sourcetype them differently.  I have read enough to find that this is supposed to be possible, however I can't get it to work.  Here is what I have so far.&lt;/P&gt;

&lt;P&gt;To start with here is a sample event stream.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Jun  7 14:25:25 10.220.5.27 8417003: *Jun  7 14:22:01.037 cst: %SEC-6-IPACCESSLOGP: list Check-TCP-UDP permitted udp 10.222.71.115(137) -&amp;gt; 10.222.71.255(137), 2 packets
Jun  7 14:25:27 10.220.5.27 8417004: *Jun  7 14:22:02.393 cst: %SEC-6-IPACCESSLOGP: list Check-TCP-UDP permitted udp 10.222.71.116(137) -&amp;gt; 10.222.71.255(137), 2 packets
Jun  7 14:25:28 10.220.5.27 8417005: *Jun  7 14:22:03.493 cst: %SEC-6-IPACCESSLOGP: list Check-TCP-UDP permitted udp 10.222.71.52(5510) -&amp;gt; 255.255.255.255(5510), 1 packet
Jun  7 14:25:29 10.220.5.27 8417006: *Jun  7 14:22:04.905 cst: %SEC-6-IPACCESSLOGP: list Check-TCP-UDP permitted udp 10.222.71.71(5510) -&amp;gt; 255.255.255.255(5510), 1 packet
Jun  7 14:25:31 10.220.5.27 8417007: *Jun  7 14:22:06.445 cst: %SEC-6-IPACCESSLOGP: list Check-TCP-UDP permitted udp 10.222.71.152(137) -&amp;gt; 10.222.71.255(137), 2 packets
Jun  7 14:25:33 10.220.5.27 8417008: *Jun  7 14:22:08.325 cst: %SEC-6-IPACCESSLOGP: list Check-TCP-UDP permitted udp 10.222.71.54(5510) -&amp;gt; 255.255.255.255(5510), 1 packet
Jun  7 14:25:34 10.220.5.27 8417009: *Jun  7 14:22:09.393 cst: %SEC-6-IPACCESSLOGP: list Check-TCP-UDP permitted udp 10.222.71.66(5510) -&amp;gt; 255.255.255.255(5510), 1 packet
Jun  7 14:25:36 10.220.5.27 8417010: *Jun  7 14:22:12.093 cst: %SEC-6-IPACCESSLOGP: list Check-TCP-UDP permitted udp 10.222.71.49(5510) -&amp;gt; 255.255.255.255(5510), 1 packet
Jun  7 14:25:38 10.220.5.27 8417011: *Jun  7 14:22:13.341 cst: %SEC-6-IPACCESSLOGP: list Check-TCP-UDP permitted udp 10.222.71.64(5510) -&amp;gt; 255.255.255.255(5510), 1 packet
Jun  7 14:25:39 10.220.5.27 8417012: *Jun  7 14:22:14.693 cst: %SEC-6-IPACCESSLOGP: list Check-TCP-UDP permitted udp 10.222.71.55(5510) -&amp;gt; 255.255.255.255(5510), 1 packet
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Now what I would like to do is to use the device IP address (10.220.5.27) as a means to sourcetype this type of event.  This is what I have in my props and transforms right now on the indexer&lt;/P&gt;

&lt;P&gt;props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[source::UDP:514]
TRANSFORMS-transCisco = transCisco
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;transforms.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[transCisco]
REGEX=10.220.5.27
FORMAT= sourcetype::cisco_syslog
DEST_KEY = MetaData:Sourcetype
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 07 Jun 2012 19:33:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/SourceType-using-Props-conf-and-Transforms-conf/m-p/70275#M14294</guid>
      <dc:creator>rmcdougal</dc:creator>
      <dc:date>2012-06-07T19:33:06Z</dc:date>
    </item>
    <item>
      <title>Re: SourceType using Props.conf and Transforms.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/SourceType-using-Props-conf-and-Transforms-conf/m-p/70276#M14295</link>
      <description>&lt;P&gt;Try this stanza instead:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;&lt;BR /&gt;
[transCisco]&lt;BR /&gt;
REGEX=(10\.220\.5\.27)&lt;BR /&gt;
FORMAT= sourcetype::$1&lt;BR /&gt;
DEST_KEY = MetaData:Sourcetype&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jun 2012 20:22:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/SourceType-using-Props-conf-and-Transforms-conf/m-p/70276#M14295</guid>
      <dc:creator>richprescott</dc:creator>
      <dc:date>2012-06-07T20:22:24Z</dc:date>
    </item>
    <item>
      <title>Re: SourceType using Props.conf and Transforms.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/SourceType-using-Props-conf-and-Transforms-conf/m-p/70277#M14296</link>
      <description>&lt;P&gt;Your REGEX needs to escape the periods to match an actual period instead of the REGEX special character .&lt;/P&gt;

&lt;P&gt;should be REGEX = 10\.220\.5\.27&lt;/P&gt;

&lt;P&gt;Otherwise looks good.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jun 2012 21:31:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/SourceType-using-Props-conf-and-Transforms-conf/m-p/70277#M14296</guid>
      <dc:creator>DrewO</dc:creator>
      <dc:date>2012-06-07T21:31:55Z</dc:date>
    </item>
    <item>
      <title>Re: SourceType using Props.conf and Transforms.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/SourceType-using-Props-conf-and-Transforms-conf/m-p/70278#M14297</link>
      <description>&lt;P&gt;Thank you for your help!&lt;/P&gt;

&lt;P&gt;Unfortunately this is still not working, it is still being put into Splunk as sourcetype UDP:514.  Here is my current props and transforms configs&lt;/P&gt;

&lt;P&gt;[props.conf]&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;&lt;BR /&gt;
[source::UDP:514]&lt;BR /&gt;
TRANSFORMS-changesourcetype = change_to_cisco_syslog&lt;BR /&gt;
&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;[Tranforms.conf]&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;&lt;BR /&gt;
[change_to_cisco_syslog]&lt;BR /&gt;
REGEX = (10\.220\.5\.27)&lt;BR /&gt;
FORMAT= sourcetype::cisco_syslog&lt;BR /&gt;
DEST_KEY = MetaData:Sourcetype&lt;BR /&gt;
&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 11:56:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/SourceType-using-Props-conf-and-Transforms-conf/m-p/70278#M14297</guid>
      <dc:creator>rmcdougal</dc:creator>
      <dc:date>2020-09-28T11:56:19Z</dc:date>
    </item>
    <item>
      <title>Re: SourceType using Props.conf and Transforms.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/SourceType-using-Props-conf-and-Transforms-conf/m-p/70279#M14298</link>
      <description>&lt;P&gt;Figured it out.  "UDP" was capitalized in props.conf&lt;/P&gt;

&lt;P&gt;Should have been like this&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;&lt;BR /&gt;
[source::udp:514]&lt;BR /&gt;
TRANSFORMS-changesourcetype = change_to_cisco_syslog&lt;BR /&gt;
&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 11:56:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/SourceType-using-Props-conf-and-Transforms-conf/m-p/70279#M14298</guid>
      <dc:creator>rmcdougal</dc:creator>
      <dc:date>2020-09-28T11:56:27Z</dc:date>
    </item>
  </channel>
</rss>

