<?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 use the transform.conf to filter event value and Host in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-use-the-transform-conf-to-filter-event-value-and-Host/m-p/475601#M99746</link>
    <description>&lt;P&gt;Hi rex_rafa,&lt;BR /&gt;
check the regex, usually this is the problem.&lt;BR /&gt;
Then check the hostname.&lt;/P&gt;

&lt;P&gt;Ciao.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
    <pubDate>Wed, 06 Nov 2019 12:03:40 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2019-11-06T12:03:40Z</dc:date>
    <item>
      <title>How use the transform.conf to filter event value and Host</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-use-the-transform-conf-to-filter-event-value-and-Host/m-p/475598#M99743</link>
      <description>&lt;P&gt;I have an index receiving events from some hosts, I create a new index and need to send for this new index data that contains the work debug, I create this rule bellow and work.&lt;/P&gt;

&lt;P&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;The problem is I need to send this event to new index only it has the word debug and specific hosts.&lt;BR /&gt;
If debug and host=xxx send for index debug if have only debug still sending for the old index. &lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2019 10:34:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-use-the-transform-conf-to-filter-event-value-and-Host/m-p/475598#M99743</guid>
      <dc:creator>rex_rafa</dc:creator>
      <dc:date>2019-11-05T10:34:10Z</dc:date>
    </item>
    <item>
      <title>Re: How use the transform.conf to filter event value and Host</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-use-the-transform-conf-to-filter-event-value-and-Host/m-p/475599#M99744</link>
      <description>&lt;P&gt;Hi rex_rafa,&lt;BR /&gt;
you could try to use your transformation for the hosts to filter, in other words:&lt;BR /&gt;
in &lt;STRONG&gt;props.conf&lt;/STRONG&gt;:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[host::xxx]
TRANSFORMS-override_index=override_index
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;In &lt;STRONG&gt;transforms.conf&lt;/STRONG&gt;:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[override_index]
REGEX = debug
DEST_KEY = _MetaData:Index
FORMAT = debug
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Ciao.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2019 14:09:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-use-the-transform-conf-to-filter-event-value-and-Host/m-p/475599#M99744</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2019-11-05T14:09:16Z</dc:date>
    </item>
    <item>
      <title>Re: How use the transform.conf to filter event value and Host</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-use-the-transform-conf-to-filter-event-value-and-Host/m-p/475600#M99745</link>
      <description>&lt;P&gt;I use that and work, but I don't know why, but some events sting going for the other index, In 20 events 18 went to correct index and 2 for the wrong index.&lt;BR /&gt;
I cant understand why it's happening, &lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2019 11:55:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-use-the-transform-conf-to-filter-event-value-and-Host/m-p/475600#M99745</guid>
      <dc:creator>rex_rafa</dc:creator>
      <dc:date>2019-11-06T11:55:52Z</dc:date>
    </item>
    <item>
      <title>Re: How use the transform.conf to filter event value and Host</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-use-the-transform-conf-to-filter-event-value-and-Host/m-p/475601#M99746</link>
      <description>&lt;P&gt;Hi rex_rafa,&lt;BR /&gt;
check the regex, usually this is the problem.&lt;BR /&gt;
Then check the hostname.&lt;/P&gt;

&lt;P&gt;Ciao.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2019 12:03:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-use-the-transform-conf-to-filter-event-value-and-Host/m-p/475601#M99746</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2019-11-06T12:03:40Z</dc:date>
    </item>
    <item>
      <title>Re: How use the transform.conf to filter event value and Host</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-use-the-transform-conf-to-filter-event-value-and-Host/m-p/475602#M99747</link>
      <description>&lt;P&gt;Do you know if have any way to see the logs of this transforms.conf? &lt;BR /&gt;
Because If I get the events and use the &lt;A href="https://regexr.com/"&gt;https://regexr.com/&lt;/A&gt; to validate the regex, the regex is correct.&lt;BR /&gt;
The host is correct too, but is strange, because just few events are going to the wrong index.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2019 12:15:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-use-the-transform-conf-to-filter-event-value-and-Host/m-p/475602#M99747</guid>
      <dc:creator>rex_rafa</dc:creator>
      <dc:date>2019-11-06T12:15:02Z</dc:date>
    </item>
    <item>
      <title>Re: How use the transform.conf to filter event value and Host</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-use-the-transform-conf-to-filter-event-value-and-Host/m-p/475603#M99748</link>
      <description>&lt;P&gt;Hi rex_rafa,&lt;BR /&gt;
About the regex check you can do it also in Splunk Search App using the regex command, sometimes, there''s something different.&lt;/P&gt;

&lt;P&gt;Anyway, did you checked regex and host values at the same time?&lt;BR /&gt;
you could use something like this:&lt;BR /&gt;
| index=wrong_index&lt;BR /&gt;
| regex "debug"&lt;BR /&gt;
| table _time host _raw&lt;BR /&gt;
In this way you can check if events with "debug" have the correct host value or a different one.&lt;/P&gt;

&lt;P&gt;Ciao.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2019 12:24:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-use-the-transform-conf-to-filter-event-value-and-Host/m-p/475603#M99748</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2019-11-06T12:24:52Z</dc:date>
    </item>
  </channel>
</rss>

