<?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: Getting the wrong fields extracted from my props and transforms conf files in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Getting-the-wrong-fields-extracted-from-my-props-and-transforms/m-p/400800#M116076</link>
    <description>&lt;P&gt;Can you provide a sample event?&lt;/P&gt;</description>
    <pubDate>Fri, 19 Jul 2019 04:20:10 GMT</pubDate>
    <dc:creator>justinatpnnl</dc:creator>
    <dc:date>2019-07-19T04:20:10Z</dc:date>
    <item>
      <title>Getting the wrong fields extracted from my props and transforms conf files</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Getting-the-wrong-fields-extracted-from-my-props-and-transforms/m-p/400799#M116075</link>
      <description>&lt;P&gt;So i'm trying to extract and ip address from a multi-value field&lt;BR /&gt;
and my transforms stanza is something along these lines&lt;/P&gt;

&lt;P&gt;transforms.conf&lt;BR /&gt;
[ip]&lt;BR /&gt;
REGEX = ((?:(?:\d{1,3}.){3}(?:\d{1,3}))|(?:(?:::)?(?:[\dA-Fa-f]{1,4}:{1,2}){1,7}(?:[\d\%A-Fa-z.]+)?(?:::)?)|(?:::[\dA-Fa-f.]{1,15})|(?:::)]*)&lt;BR /&gt;
FORMAT = IP::$1&lt;/P&gt;

&lt;P&gt;props.conf&lt;/P&gt;

&lt;P&gt;[host::hostname]&lt;BR /&gt;
TIME_FORMAT = %a %b %d %H:%M:%S %T %Y&lt;BR /&gt;
KV_MODE = none&lt;BR /&gt;
SHOULD_LINEMERGE = false&lt;BR /&gt;
REPORT-ip = ip&lt;/P&gt;

&lt;P&gt;So this works, however it also extracts the source, sourcetype and host values in my new ip field.&lt;BR /&gt;
So i have random fields that look like IP= source::source|host::host|sourcetype.&lt;/P&gt;

&lt;P&gt;I could really use some help in trying to figure out why these extra values are being extracted.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 01:24:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Getting-the-wrong-fields-extracted-from-my-props-and-transforms/m-p/400799#M116075</guid>
      <dc:creator>Sparky1</dc:creator>
      <dc:date>2020-09-30T01:24:59Z</dc:date>
    </item>
    <item>
      <title>Re: Getting the wrong fields extracted from my props and transforms conf files</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Getting-the-wrong-fields-extracted-from-my-props-and-transforms/m-p/400800#M116076</link>
      <description>&lt;P&gt;Can you provide a sample event?&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jul 2019 04:20:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Getting-the-wrong-fields-extracted-from-my-props-and-transforms/m-p/400800#M116076</guid>
      <dc:creator>justinatpnnl</dc:creator>
      <dc:date>2019-07-19T04:20:10Z</dc:date>
    </item>
    <item>
      <title>Re: Getting the wrong fields extracted from my props and transforms conf files</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Getting-the-wrong-fields-extracted-from-my-props-and-transforms/m-p/400801#M116077</link>
      <description>&lt;P&gt;Are you on a single server instance?&lt;/P&gt;

&lt;P&gt;What if you try using only props?  Something like below in props.conf in place of REPORT...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; EXTRACT-ip = (?&amp;lt;ip&amp;gt;(?:(?:\d{1,3}.){3}(?:\d{1,3}))|(?:(?:::)?(?:[\dA-Fa-f]{1,4}:{1,2}){1,7}(?:[\d\%A-Fa-z.]+)?(?:::)?)|(?:::[\dA-Fa-f.]{1,15})|(?:::)]*)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 19 Jul 2019 04:38:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Getting-the-wrong-fields-extracted-from-my-props-and-transforms/m-p/400801#M116077</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2019-07-19T04:38:07Z</dc:date>
    </item>
    <item>
      <title>Re: Getting the wrong fields extracted from my props and transforms conf files</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Getting-the-wrong-fields-extracted-from-my-props-and-transforms/m-p/400802#M116078</link>
      <description>&lt;P&gt;Thank you, i tried this and I'm still getting the same results. Although I've noticed that my issue only occurs when I run a search with data from 2 sources.&lt;BR /&gt;
One of the sources is the one i want my extractions to match against&lt;BR /&gt;
and the other source shouldn't be getting matched &lt;/P&gt;

&lt;P&gt;My props stanza should only be matching hosts like this:&lt;BR /&gt;
[host::(?-i)hostname1*]&lt;/P&gt;

&lt;P&gt;but it's also matching and performing extractions(incorrectly) against the hosts that don't match my stanza&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jul 2019 14:21:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Getting-the-wrong-fields-extracted-from-my-props-and-transforms/m-p/400802#M116078</guid>
      <dc:creator>Sparky1</dc:creator>
      <dc:date>2019-07-19T14:21:31Z</dc:date>
    </item>
    <item>
      <title>Re: Getting the wrong fields extracted from my props and transforms conf files</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Getting-the-wrong-fields-extracted-from-my-props-and-transforms/m-p/400803#M116079</link>
      <description>&lt;P&gt;Do you have any other props defined that are overriding / adding to the mix?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; ./splunk btool props list --debug
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 19 Jul 2019 14:36:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Getting-the-wrong-fields-extracted-from-my-props-and-transforms/m-p/400803#M116079</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2019-07-19T14:36:25Z</dc:date>
    </item>
    <item>
      <title>Re: Getting the wrong fields extracted from my props and transforms conf files</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Getting-the-wrong-fields-extracted-from-my-props-and-transforms/m-p/400804#M116080</link>
      <description>&lt;P&gt;It's very possible. I just ran the debug command you suggested, and I've got a couple thousand lines to sift through&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jul 2019 18:06:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Getting-the-wrong-fields-extracted-from-my-props-and-transforms/m-p/400804#M116080</guid>
      <dc:creator>Sparky1</dc:creator>
      <dc:date>2019-07-19T18:06:47Z</dc:date>
    </item>
  </channel>
</rss>

