<?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: How do I route based on host and source type? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-route-based-on-host-and-source-type/m-p/389186#M94139</link>
    <description>&lt;P&gt;I think you could do something along these lines, triggering the transforms based on sourcetype, but inside the transforms config filter by host using the REGEX.&lt;/P&gt;

&lt;P&gt;props.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[yoursourcetype]
TRANSFORMS-setrouting = your-routing
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;transforms.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[your-routing]
SOURCE_KEY = MetaData:Host
REGEX = (host1|host2|...|hostn)
DEST_KEY = _TCP_ROUTING
FORMAT = your-outputgroup
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 24 Sep 2018 15:42:17 GMT</pubDate>
    <dc:creator>FrankVl</dc:creator>
    <dc:date>2018-09-24T15:42:17Z</dc:date>
    <item>
      <title>How do I route based on host and source type?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-route-based-on-host-and-source-type/m-p/389185#M94138</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I am routing traffic to a 3rd party. I have done some of this based on a host and others based on the source type. &lt;/P&gt;

&lt;P&gt;But I now need to route based on a host and a sourcetype and I can't work out how to do it?&lt;/P&gt;

&lt;P&gt;Any tips of where to look?&lt;/P&gt;</description>
      <pubDate>Mon, 24 Sep 2018 14:33:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-route-based-on-host-and-source-type/m-p/389185#M94138</guid>
      <dc:creator>lukessi</dc:creator>
      <dc:date>2018-09-24T14:33:16Z</dc:date>
    </item>
    <item>
      <title>Re: How do I route based on host and source type?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-route-based-on-host-and-source-type/m-p/389186#M94139</link>
      <description>&lt;P&gt;I think you could do something along these lines, triggering the transforms based on sourcetype, but inside the transforms config filter by host using the REGEX.&lt;/P&gt;

&lt;P&gt;props.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[yoursourcetype]
TRANSFORMS-setrouting = your-routing
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;transforms.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[your-routing]
SOURCE_KEY = MetaData:Host
REGEX = (host1|host2|...|hostn)
DEST_KEY = _TCP_ROUTING
FORMAT = your-outputgroup
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 24 Sep 2018 15:42:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-route-based-on-host-and-source-type/m-p/389186#M94139</guid>
      <dc:creator>FrankVl</dc:creator>
      <dc:date>2018-09-24T15:42:17Z</dc:date>
    </item>
    <item>
      <title>Re: How do I route based on host and source type?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-route-based-on-host-and-source-type/m-p/389187#M94140</link>
      <description>&lt;P&gt;Cheers mate I came to that solution too.  Just double checking if there was another way.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Sep 2018 15:50:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-route-based-on-host-and-source-type/m-p/389187#M94140</guid>
      <dc:creator>lukessi</dc:creator>
      <dc:date>2018-09-24T15:50:04Z</dc:date>
    </item>
    <item>
      <title>Re: How do I route based on host and source type?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-route-based-on-host-and-source-type/m-p/640955#M109348</link>
      <description>&lt;P&gt;What if we have multiple hosts , say 500 and above can we mark and * to pick up all the host name .&lt;/P&gt;&lt;PRE&gt;REGEX = (host*)&lt;/PRE&gt;&lt;P&gt;If my host name starts with ABCD and if i say ABCD* will this work ?. Or say my events have these hosts under a field called computername&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;REGEX = (?ms)(ComputerName=ABCD*.domain.com)&lt;/P&gt;</description>
      <pubDate>Fri, 21 Apr 2023 09:50:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-route-based-on-host-and-source-type/m-p/640955#M109348</guid>
      <dc:creator>krithikar</dc:creator>
      <dc:date>2023-04-21T09:50:01Z</dc:date>
    </item>
  </channel>
</rss>

