<?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 filtering on host in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/filtering-on-host/m-p/32447#M5772</link>
    <description>&lt;P&gt;I've setup a heavy forwarder so that some feeds are going to one set of indexers, and another feed is going to a different set of indexers. I also setup a filter, so that only certain events are indexed (the rest are discarded). Now, I want to filter specifically on hosts that match a regex. How do I do that? It appears that the regex in transforms.conf works on the entire event, not just the host. Is there a way to do this? &lt;/P&gt;</description>
    <pubDate>Thu, 14 Feb 2013 15:21:31 GMT</pubDate>
    <dc:creator>a212830</dc:creator>
    <dc:date>2013-02-14T15:21:31Z</dc:date>
    <item>
      <title>filtering on host</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/filtering-on-host/m-p/32447#M5772</link>
      <description>&lt;P&gt;I've setup a heavy forwarder so that some feeds are going to one set of indexers, and another feed is going to a different set of indexers. I also setup a filter, so that only certain events are indexed (the rest are discarded). Now, I want to filter specifically on hosts that match a regex. How do I do that? It appears that the regex in transforms.conf works on the entire event, not just the host. Is there a way to do this? &lt;/P&gt;</description>
      <pubDate>Thu, 14 Feb 2013 15:21:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/filtering-on-host/m-p/32447#M5772</guid>
      <dc:creator>a212830</dc:creator>
      <dc:date>2013-02-14T15:21:31Z</dc:date>
    </item>
    <item>
      <title>Re: filtering on host</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/filtering-on-host/m-p/32448#M5773</link>
      <description>&lt;P&gt;When you say you want to "filter", you are implying you want to take action (change indexer, drop data) based on the regex of the host? You would do this by specifying the host-matching pattern for the host in &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/admin/propsconf"&gt;props.conf&lt;/A&gt;, which is regex-based (with the exception of ..., ., and *).&lt;/P&gt;

&lt;P&gt;&lt;U&gt;props.conf&lt;/U&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[host::(my.+[1-6])|(otherhost[0-9]{0,})]
TRANSFORMS-drop = drop_event
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;U&gt;transforms.conf&lt;/U&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[drop_event]
REGEX = .
DEST_KEY = queue
FORMAT = nullQueue
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 14 Feb 2013 16:19:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/filtering-on-host/m-p/32448#M5773</guid>
      <dc:creator>jeff</dc:creator>
      <dc:date>2013-02-14T16:19:18Z</dc:date>
    </item>
    <item>
      <title>Re: filtering on host</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/filtering-on-host/m-p/32449#M5774</link>
      <description>&lt;P&gt;Essentially, I want a whitelist. OK. I think that I get it. I'll give it a whirl...&lt;/P&gt;</description>
      <pubDate>Thu, 14 Feb 2013 16:49:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/filtering-on-host/m-p/32449#M5774</guid>
      <dc:creator>a212830</dc:creator>
      <dc:date>2013-02-14T16:49:47Z</dc:date>
    </item>
  </channel>
</rss>

