<?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: spliting multiple feed that use udp:514 in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/spliting-multiple-feed-that-use-udp-514/m-p/71119#M14464</link>
    <description>&lt;P&gt;You could perform Double Transforms (add a second stanza for each sourcetype and set the _MetaData:Index  to the index you want). But to better utilize the processing power, you probably should just collect the syslog onto the server, and index from there.&lt;/P&gt;</description>
    <pubDate>Fri, 21 Dec 2012 20:36:15 GMT</pubDate>
    <dc:creator>alacercogitatus</dc:creator>
    <dc:date>2012-12-21T20:36:15Z</dc:date>
    <item>
      <title>spliting multiple feed that use udp:514</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/spliting-multiple-feed-that-use-udp-514/m-p/71116#M14461</link>
      <description>&lt;P&gt;I have multiple systems reporting over UDP:514.  I want to separate the iron port email, Cisco ASA's, iseries as400, and PaloAlto firewall feeds at the global level before sending the data to the separate apps.  I currently have this stanza in my etc\system\local\inputs file&lt;/P&gt;

&lt;P&gt;[udp://514]&lt;BR /&gt;
connection_host = ip&lt;/P&gt;

&lt;P&gt;index = index_syslog&lt;/P&gt;

&lt;P&gt;sourcetype = syslog&lt;/P&gt;

&lt;P&gt;I know I need to write a stanza in the props.conf to separate out the individual sources by ip address but am not sure how to do it.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Dec 2012 18:30:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/spliting-multiple-feed-that-use-udp-514/m-p/71116#M14461</guid>
      <dc:creator>jarjoh42</dc:creator>
      <dc:date>2012-12-21T18:30:51Z</dc:date>
    </item>
    <item>
      <title>Re: spliting multiple feed that use udp:514</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/spliting-multiple-feed-that-use-udp-514/m-p/71117#M14462</link>
      <description>&lt;P&gt;You'll probably want an index-time transform to do this. You can chain the transforms, and use REGEX to match which IPs you want to have specific sourcetypes.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;props.conf&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;[syslog]&lt;BR /&gt;
TRANSFORMS-forcesourcetype = cisco_asa_st, iron_port, i_as400&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;transforms.conf&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;[cisco_asa_st]&lt;BR /&gt;
REGEX = 192\.168\.0\.1|192\.168\.0\.2&lt;BR /&gt;
SOURCE_KEY = MetaData:Host&lt;BR /&gt;
DEFAULT_VALUE = cisco_asa&lt;BR /&gt;
DEST_KEY = MetaData:Sourcetype&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;[iron_port]&lt;BR /&gt;
REGEX = 192\.168\.0\.1|192\.168\.0\.2&lt;BR /&gt;
SOURCE_KEY = MetaData:Host&lt;BR /&gt;
DEFAULT_VALUE = iron_port&lt;BR /&gt;
DEST_KEY = MetaData:Sourcetype&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;[i_as400]&lt;BR /&gt;
REGEX = 192\.168\.0\.1|192\.168\.0\.2&lt;BR /&gt;
SOURCE_KEY = MetaData:Host&lt;BR /&gt;
DEFAULT_VALUE = as400&lt;BR /&gt;
DEST_KEY = MetaData:Sourcetype&lt;BR /&gt;
&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Admin/Transformsconf" target="test_blank"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Admin/Transformsconf&lt;/A&gt;&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;The other, probably easier way, is to use a syslog-ng server, use specific destinations for each ip, and then index the resulting output. &lt;CODE&gt;&lt;A href="http://www.balabit.com/network-security/syslog-ng/opensource-logging-system/overview" target="test_blank"&gt;http://www.balabit.com/network-security/syslog-ng/opensource-logging-system/overview&lt;/A&gt;&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Dec 2012 18:47:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/spliting-multiple-feed-that-use-udp-514/m-p/71117#M14462</guid>
      <dc:creator>alacercogitatus</dc:creator>
      <dc:date>2012-12-21T18:47:48Z</dc:date>
    </item>
    <item>
      <title>Re: spliting multiple feed that use udp:514</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/spliting-multiple-feed-that-use-udp-514/m-p/71118#M14463</link>
      <description>&lt;P&gt;I used your template  changed the names of the stanzas to match what the default valuse are for each of the apps as you can see.&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;[cisco_asa] &lt;BR /&gt;
REGEX = 192\.20\.9\.9|192\.20\.9\.10 &lt;BR /&gt;
SOURCE_KEY = MetaData:Host &lt;BR /&gt;
DEFAULT_VALUE = cisco_asa &lt;BR /&gt;
DEST_KEY = MetaData:Sourcetype&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;[dspjrn:5] &lt;BR /&gt;
REGEX = 192\.16\.9\.20 &lt;BR /&gt;
SOURCE_KEY = MetaData:Host &lt;BR /&gt;
DEFAULT_VALUE = as400 &lt;BR /&gt;
DEST_KEY = MetaData:Sourcetype&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;is this data still indexed to the index_syslog. is there a way to change the index for just the dspjrn:5 source(from props.conf in iseries app)to index_iseries to match the index.conf in the iseries app's index.conf file.&lt;/P&gt;

&lt;P&gt;I would leave this as a comment but it will not let me post it as comment&lt;/P&gt;</description>
      <pubDate>Fri, 21 Dec 2012 20:15:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/spliting-multiple-feed-that-use-udp-514/m-p/71118#M14463</guid>
      <dc:creator>jarjoh42</dc:creator>
      <dc:date>2012-12-21T20:15:53Z</dc:date>
    </item>
    <item>
      <title>Re: spliting multiple feed that use udp:514</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/spliting-multiple-feed-that-use-udp-514/m-p/71119#M14464</link>
      <description>&lt;P&gt;You could perform Double Transforms (add a second stanza for each sourcetype and set the _MetaData:Index  to the index you want). But to better utilize the processing power, you probably should just collect the syslog onto the server, and index from there.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Dec 2012 20:36:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/spliting-multiple-feed-that-use-udp-514/m-p/71119#M14464</guid>
      <dc:creator>alacercogitatus</dc:creator>
      <dc:date>2012-12-21T20:36:15Z</dc:date>
    </item>
    <item>
      <title>Re: spliting multiple feed that use udp:514</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/spliting-multiple-feed-that-use-udp-514/m-p/71120#M14465</link>
      <description>&lt;P&gt;Final solution&lt;/P&gt;

&lt;P&gt;I had to do all this in the splunk/system/local.  this separated the host out of the data and set them into their own source type.  Please note that this is still all in the same indexed.  The next goal would to send each sourcetype to its own index.  Also when I was doiing the calls in the app I had to use [sourcetype::cisco_asa] for it to accept the parameter.&lt;/P&gt;

&lt;P&gt;inputs.conf&lt;/P&gt;

&lt;P&gt;[udp://514]&amp;lt;&lt;BR /&gt;
connection_host = ip&lt;BR /&gt;
index = index_syslog &lt;/P&gt;

&lt;P&gt;props.conf&lt;/P&gt;

&lt;P&gt;[source::udp:514] &lt;BR /&gt;
TRANSFORMS-changesourcetype = cisco_esa_st, cisco_asa_st, as400_st&lt;/P&gt;

&lt;P&gt;transforms.conf&lt;/P&gt;

&lt;P&gt;[cisco_asa_st] &lt;BR /&gt;
REGEX = 192.x.x.x|192.x.x.x|192.x.x.x&lt;BR /&gt;
SOURCE_KEY = MetaData:Host &lt;BR /&gt;
FORMAT = sourcetype::cisco_asa &lt;BR /&gt;
DEST_KEY = MetaData:Sourcetype&lt;/P&gt;

&lt;P&gt;[cisco_esa_st] &lt;BR /&gt;
REGEX = 192.x.x.x|192.x.x.x &lt;BR /&gt;
SOURCE_KEY = MetaData:Host &lt;BR /&gt;
FORMAT = sourcetype::cisco_esa &lt;BR /&gt;
DEST_KEY = MetaData:Sourcetype&lt;/P&gt;

&lt;P&gt;[as400_st] &lt;BR /&gt;
REGEX = 192.x.x.x &lt;BR /&gt;
SOURCE_KEY = MetaData:Host &lt;BR /&gt;
FORMAT = sourcetype::as400 &lt;BR /&gt;
DEST_KEY = MetaData:Sourcetype&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 14:05:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/spliting-multiple-feed-that-use-udp-514/m-p/71120#M14465</guid>
      <dc:creator>jarjoh42</dc:creator>
      <dc:date>2020-09-28T14:05:25Z</dc:date>
    </item>
  </channel>
</rss>

