<?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 transforms.conf use two conditions in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/transforms-conf-use-two-conditions/m-p/475521#M99741</link>
    <description>&lt;P&gt;I have an event in index xxx with events coming from different hosts.&lt;BR /&gt;
I need to create a transforms.conf to filter when the event has a specific word than I route for another index.&lt;/P&gt;

&lt;P&gt;transforms.conf &lt;BR /&gt;
[abc]&lt;BR /&gt;
REGEX = debug&lt;BR /&gt;
DEST_KEY = _MetaData:Index&lt;BR /&gt;
FORMAT = debug&lt;/P&gt;

&lt;P&gt;That config works well to filter the word and send it to the correct index, but I need to send for this index only words for specifics hosts.&lt;BR /&gt;
Like that:&lt;BR /&gt;
If I have debug AND host=this_host send to index debug.&lt;BR /&gt;
How I can do that?&lt;/P&gt;</description>
    <pubDate>Tue, 05 Nov 2019 09:58:39 GMT</pubDate>
    <dc:creator>rex_rafa</dc:creator>
    <dc:date>2019-11-05T09:58:39Z</dc:date>
    <item>
      <title>transforms.conf use two conditions</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/transforms-conf-use-two-conditions/m-p/475521#M99741</link>
      <description>&lt;P&gt;I have an event in index xxx with events coming from different hosts.&lt;BR /&gt;
I need to create a transforms.conf to filter when the event has a specific word than I route for another index.&lt;/P&gt;

&lt;P&gt;transforms.conf &lt;BR /&gt;
[abc]&lt;BR /&gt;
REGEX = debug&lt;BR /&gt;
DEST_KEY = _MetaData:Index&lt;BR /&gt;
FORMAT = debug&lt;/P&gt;

&lt;P&gt;That config works well to filter the word and send it to the correct index, but I need to send for this index only words for specifics hosts.&lt;BR /&gt;
Like that:&lt;BR /&gt;
If I have debug AND host=this_host send to index debug.&lt;BR /&gt;
How I can do that?&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2019 09:58:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/transforms-conf-use-two-conditions/m-p/475521#M99741</guid>
      <dc:creator>rex_rafa</dc:creator>
      <dc:date>2019-11-05T09:58:39Z</dc:date>
    </item>
    <item>
      <title>Re: transforms.conf use two conditions</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/transforms-conf-use-two-conditions/m-p/475522#M99742</link>
      <description>&lt;P&gt;Have you tried the MetaData::Host key?  &lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Admin/Transformsconf?utm_source=answers&amp;amp;utm_medium=in-question&amp;amp;utm_term=transforms.conf&amp;amp;utm_campaign=refdoc#KEYS:"&gt;https://docs.splunk.com/Documentation/Splunk/latest/Admin/Transformsconf?utm_source=answers&amp;amp;utm_medium=in-question&amp;amp;utm_term=transforms.conf&amp;amp;utm_campaign=refdoc#KEYS:&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2019 17:29:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/transforms-conf-use-two-conditions/m-p/475522#M99742</guid>
      <dc:creator>marycordova</dc:creator>
      <dc:date>2019-11-05T17:29:23Z</dc:date>
    </item>
  </channel>
</rss>

