<?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: not able to extract fields using TRANSFORMS.conf in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/not-able-to-extract-fields-using-TRANSFORMS-conf/m-p/227771#M67265</link>
    <description>&lt;P&gt;Add &lt;CODE&gt;MV_ADD=1&lt;/CODE&gt; to your transforms.conf file.&lt;/P&gt;</description>
    <pubDate>Wed, 18 Nov 2015 16:41:58 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2015-11-18T16:41:58Z</dc:date>
    <item>
      <title>not able to extract fields using TRANSFORMS.conf</title>
      <link>https://community.splunk.com/t5/Splunk-Search/not-able-to-extract-fields-using-TRANSFORMS-conf/m-p/227767#M67261</link>
      <description>&lt;P&gt;Files at &lt;CODE&gt;C:\Program Files\Splunk\etc\system\local&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;transforms.conf &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[function_coverage]
REGEX =(fn).(name)(=)\".*?\".(fn_cov)(=)\"(.)\" 
FORMAT = xfncov::$1
WRITE_META = true
REPEAT_MATCH = true
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[customXML]
KV_MODE = xml
NO_BINARY_CHECK = true
SHOULD_LINEMERGE = true
category = Structured
disabled = false
pulldown_type = true
BREAK_ONLY_BEFORE = src name="
MAX_EVENTS = 3000
xmlkv maxinputs=10000
TRANSFORMS-funcov = function_coverage
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;fields.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[xfncov]
INDEXED=true
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Data in one of my events looks like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;.......
src name="ACRBase.hpp" mtime="1379335836" fn_cov="15" fn_total="19" cd_cov="9" cd_total="16" d_cov="9" d_total="16"&amp;gt;
fn name="ACRPublic::C_SmartPtr&amp;lt;T&amp;gt;::addRef() const" fn_cov="1" fn_total="1" cd_cov="2" cd_total="2" d_cov="2" d_total="2"&amp;gt;
probe line="46" column="4" kind="function" event="full"/&amp;gt;
probe line="48" kind="decision" event="full"/&amp;gt;
/fn&amp;gt;
fn name="ACRPublic::C_SmartPtr&amp;lt;T&amp;gt;::release() const" fn_cov="0" fn_total="1" cd_cov="2" cd_total="2" d_cov="2" d_total="2"&amp;gt;
probe line="58" column="4" kind="function" event="full"/&amp;gt;
probe line="60" kind="decision" event="full"/&amp;gt;
/fn&amp;gt;
............
/src&amp;gt;
src...
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I am trying to create index xfncov having &lt;CODE&gt;fn name="ACRPublic::C_SmartPtr&amp;amp;lt;T&amp;amp;gt;::addRef() const" fn_cov="1"&lt;/CODE&gt;&lt;BR /&gt;
This regex works in search using &lt;CODE&gt;...|regex _raw&lt;/CODE&gt;, but I am not getting any new index using the above transform. I am not able to debug where the problem is.&lt;/P&gt;

&lt;P&gt;Can someone help?&lt;/P&gt;</description>
      <pubDate>Sun, 15 Nov 2015 12:15:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/not-able-to-extract-fields-using-TRANSFORMS-conf/m-p/227767#M67261</guid>
      <dc:creator>rbsplunktest</dc:creator>
      <dc:date>2015-11-15T12:15:57Z</dc:date>
    </item>
    <item>
      <title>Re: not able to extract fields using TRANSFORMS.conf</title>
      <link>https://community.splunk.com/t5/Splunk-Search/not-able-to-extract-fields-using-TRANSFORMS-conf/m-p/227768#M67262</link>
      <description>&lt;P&gt;Have you created the physical index named "xfncov" on your indexers? Once you do this, assign the index name to the inputs for your sourcetype.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Nov 2015 03:42:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/not-able-to-extract-fields-using-TRANSFORMS-conf/m-p/227768#M67262</guid>
      <dc:creator>esix_splunk</dc:creator>
      <dc:date>2015-11-16T03:42:31Z</dc:date>
    </item>
    <item>
      <title>Re: not able to extract fields using TRANSFORMS.conf</title>
      <link>https://community.splunk.com/t5/Splunk-Search/not-able-to-extract-fields-using-TRANSFORMS-conf/m-p/227769#M67263</link>
      <description>&lt;P&gt;I am sorry for my language. I am editing the title.&lt;BR /&gt;
"xfncov" will come into interesting fields automatically and will have values to which the REGEX will match isn't it?&lt;BR /&gt;
I think this is the way of extracting the fields at the time of indexing. am I right?&lt;/P&gt;</description>
      <pubDate>Mon, 16 Nov 2015 10:22:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/not-able-to-extract-fields-using-TRANSFORMS-conf/m-p/227769#M67263</guid>
      <dc:creator>rbsplunktest</dc:creator>
      <dc:date>2015-11-16T10:22:42Z</dc:date>
    </item>
    <item>
      <title>Re: not able to extract fields using TRANSFORMS.conf</title>
      <link>https://community.splunk.com/t5/Splunk-Search/not-able-to-extract-fields-using-TRANSFORMS-conf/m-p/227770#M67264</link>
      <description>&lt;P&gt;I have corrected my issue of field extraction by correcting my regex.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;REGEX = (fn.name=/".*/".fn_cov=/"./")
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But the problem is that the extracted field values have only the first match per event, thought there are multiple matches for the REGEX in an event and I want all the matches as values of extracted field.&lt;BR /&gt;
what should I do for this??&lt;/P&gt;</description>
      <pubDate>Wed, 18 Nov 2015 12:22:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/not-able-to-extract-fields-using-TRANSFORMS-conf/m-p/227770#M67264</guid>
      <dc:creator>rbsplunktest</dc:creator>
      <dc:date>2015-11-18T12:22:06Z</dc:date>
    </item>
    <item>
      <title>Re: not able to extract fields using TRANSFORMS.conf</title>
      <link>https://community.splunk.com/t5/Splunk-Search/not-able-to-extract-fields-using-TRANSFORMS-conf/m-p/227771#M67265</link>
      <description>&lt;P&gt;Add &lt;CODE&gt;MV_ADD=1&lt;/CODE&gt; to your transforms.conf file.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Nov 2015 16:41:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/not-able-to-extract-fields-using-TRANSFORMS-conf/m-p/227771#M67265</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2015-11-18T16:41:58Z</dc:date>
    </item>
    <item>
      <title>Re: not able to extract fields using TRANSFORMS.conf</title>
      <link>https://community.splunk.com/t5/Splunk-Search/not-able-to-extract-fields-using-TRANSFORMS-conf/m-p/227772#M67266</link>
      <description>&lt;P&gt;Thanks a lot. Now multiple fields are getting extracted. But there is one issue. &lt;/P&gt;

&lt;P&gt;In one event I have below two texts that should match with the REGEX. These are the last two entries in one event matching the REGEX. But the last one is not getting extracted. Do you see any reason for that?&lt;/P&gt;

&lt;P&gt;fn name="ACRPublic::C_SmartPtr&amp;lt;T&amp;gt;::debugGetRefCount() const" fn_cov="1"&lt;BR /&gt;
fn name="ACRPublic::C_SmartPtr&amp;lt;T&amp;gt;::debugGetRefCountAddr() const" fn_cov="0"&lt;/P&gt;

&lt;P&gt;In an another event there is only one entry and it is getting extracted.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 07:55:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/not-able-to-extract-fields-using-TRANSFORMS-conf/m-p/227772#M67266</guid>
      <dc:creator>rbsplunktest</dc:creator>
      <dc:date>2020-09-29T07:55:57Z</dc:date>
    </item>
    <item>
      <title>Re: not able to extract fields using TRANSFORMS.conf</title>
      <link>https://community.splunk.com/t5/Splunk-Search/not-able-to-extract-fields-using-TRANSFORMS-conf/m-p/227773#M67267</link>
      <description>&lt;P&gt;It seems there is a cap on the max number of fields can be extracted per event. I tried increasing possible texts per event. In one event 18 out of 19 possible matches are extracted in another event 23 out of 25 and in one other 23 out of 30.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Nov 2015 04:24:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/not-able-to-extract-fields-using-TRANSFORMS-conf/m-p/227773#M67267</guid>
      <dc:creator>rbsplunktest</dc:creator>
      <dc:date>2015-11-19T04:24:09Z</dc:date>
    </item>
    <item>
      <title>Re: not able to extract fields using TRANSFORMS.conf</title>
      <link>https://community.splunk.com/t5/Splunk-Search/not-able-to-extract-fields-using-TRANSFORMS-conf/m-p/227774#M67268</link>
      <description>&lt;P&gt;In my experience, regex strings fail to match when the target is slightly different from what was expected.  I'm not aware of any limit to the number of fields a regex can extract.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Nov 2015 12:41:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/not-able-to-extract-fields-using-TRANSFORMS-conf/m-p/227774#M67268</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2015-11-19T12:41:02Z</dc:date>
    </item>
    <item>
      <title>Re: not able to extract fields using TRANSFORMS.conf</title>
      <link>https://community.splunk.com/t5/Splunk-Search/not-able-to-extract-fields-using-TRANSFORMS-conf/m-p/227775#M67269</link>
      <description>&lt;P&gt;Thanks Rich Galloway,&lt;/P&gt;

&lt;P&gt;I have even tried by just changing the string with only one number i.e if first occurrence have function1 then I have copied function2, function 3 and so on but Field extraction only extract till a point, which is not fixed. So, REGEX should not be an issue.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Nov 2015 07:06:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/not-able-to-extract-fields-using-TRANSFORMS-conf/m-p/227775#M67269</guid>
      <dc:creator>rbsplunktest</dc:creator>
      <dc:date>2015-11-23T07:06:26Z</dc:date>
    </item>
  </channel>
</rss>

