<?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 filter by three fields then do rerouting at the same time? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-filter-by-three-fields-then-do-rerouting-at-the-same/m-p/433180#M75731</link>
    <description>&lt;P&gt;I'm not aware of any way to do this for 3 'fields'. You can do a sourcetype triggered transforms, and use the REGEX on the host field (to cover your 2nd condition) or use the REGEX on the raw message (to cover your third condition).&lt;/P&gt;

&lt;P&gt;If the hostname is also in the raw event, of course, you could incorporate that into your regex, e.g. something like &lt;CODE&gt;(host1|host2).*Application:\s(Error|Warning)&lt;/CODE&gt;. But the more hostnames involved, the uglier (and slower) that gets of course...&lt;/P&gt;</description>
    <pubDate>Tue, 23 Oct 2018 12:14:22 GMT</pubDate>
    <dc:creator>FrankVl</dc:creator>
    <dc:date>2018-10-23T12:14:22Z</dc:date>
    <item>
      <title>How do I filter by three fields then do rerouting at the same time?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-filter-by-three-fields-then-do-rerouting-at-the-same/m-p/433179#M75730</link>
      <description>&lt;P&gt;How do I filter by host name, source type, and message match regex, then rerouting at the same time?&lt;/P&gt;

&lt;P&gt;I want to achieve this:&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;For each event, if &lt;BR /&gt;
1) host name is one of host1, host2 and &lt;BR /&gt;
2) sourcetype is "linux:messages" and &lt;BR /&gt;
3) message matches "Application:\s(Error|Warning)" regex &lt;BR /&gt;
then go to index cluster 2&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;How do i do that? I can see a lot of other similar questions about filtering and rerouting, but none deals with three conditions.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Oct 2018 02:38:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-filter-by-three-fields-then-do-rerouting-at-the-same/m-p/433179#M75730</guid>
      <dc:creator>nethern</dc:creator>
      <dc:date>2018-10-23T02:38:02Z</dc:date>
    </item>
    <item>
      <title>Re: How do I filter by three fields then do rerouting at the same time?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-filter-by-three-fields-then-do-rerouting-at-the-same/m-p/433180#M75731</link>
      <description>&lt;P&gt;I'm not aware of any way to do this for 3 'fields'. You can do a sourcetype triggered transforms, and use the REGEX on the host field (to cover your 2nd condition) or use the REGEX on the raw message (to cover your third condition).&lt;/P&gt;

&lt;P&gt;If the hostname is also in the raw event, of course, you could incorporate that into your regex, e.g. something like &lt;CODE&gt;(host1|host2).*Application:\s(Error|Warning)&lt;/CODE&gt;. But the more hostnames involved, the uglier (and slower) that gets of course...&lt;/P&gt;</description>
      <pubDate>Tue, 23 Oct 2018 12:14:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-filter-by-three-fields-then-do-rerouting-at-the-same/m-p/433180#M75731</guid>
      <dc:creator>FrankVl</dc:creator>
      <dc:date>2018-10-23T12:14:22Z</dc:date>
    </item>
    <item>
      <title>Re: How do I filter by three fields then do rerouting at the same time?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-filter-by-three-fields-then-do-rerouting-at-the-same/m-p/433181#M75732</link>
      <description>&lt;P&gt;The events don't contain host names there. Can't each stanza in transforms.conf apply two transforms? or grouping two into one?&lt;/P&gt;</description>
      <pubDate>Thu, 25 Oct 2018 00:51:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-filter-by-three-fields-then-do-rerouting-at-the-same/m-p/433181#M75732</guid>
      <dc:creator>nethern</dc:creator>
      <dc:date>2018-10-25T00:51:16Z</dc:date>
    </item>
  </channel>
</rss>

