<?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 to extract field values from another field using transforms.conf and props.conf? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-field-values-from-another-field-using-transforms/m-p/118479#M31617</link>
    <description>&lt;P&gt;I forgot to mention that "block" is a multi value field.&lt;/P&gt;</description>
    <pubDate>Wed, 20 May 2015 20:36:24 GMT</pubDate>
    <dc:creator>edrivera3</dc:creator>
    <dc:date>2015-05-20T20:36:24Z</dc:date>
    <item>
      <title>How to extract field values from another field using transforms.conf and props.conf?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-field-values-from-another-field-using-transforms/m-p/118476#M31614</link>
      <description>&lt;P&gt;Hi &lt;BR /&gt;
I am trying to extract the field "block_num" from the field "block" during search-time. I've already extracted the field "block" correctly.  I also tried this block_num extraction  in the search app and it worked correctly. This is what I got:&lt;/P&gt;

&lt;P&gt;transforms.conf:&lt;BR /&gt;
[mvfield_block_num]&lt;BR /&gt;
 REGEX = Start-End\sSteps:\s(?&amp;lt;block_num&amp;gt;\d+-\d+)&lt;BR /&gt;
 SOURCE_KEY = fields:block&lt;BR /&gt;
 MV_ADD = true &lt;/P&gt;

&lt;P&gt;props.conf&lt;BR /&gt;
[tirfiles]&lt;BR /&gt;
REPORT-block_num = mvfield_block_num&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 20:01:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-field-values-from-another-field-using-transforms/m-p/118476#M31614</guid>
      <dc:creator>edrivera3</dc:creator>
      <dc:date>2020-09-28T20:01:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract field values from another field using transforms.conf and props.conf?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-field-values-from-another-field-using-transforms/m-p/118477#M31615</link>
      <description>&lt;P&gt;Use this instead:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;SOURCE_KEY = block
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 20 May 2015 20:22:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-field-values-from-another-field-using-transforms/m-p/118477#M31615</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-05-20T20:22:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract field values from another field using transforms.conf and props.conf?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-field-values-from-another-field-using-transforms/m-p/118478#M31616</link>
      <description>&lt;P&gt;I tried it, but it doesn't extract anything.&lt;/P&gt;</description>
      <pubDate>Wed, 20 May 2015 20:27:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-field-values-from-another-field-using-transforms/m-p/118478#M31616</guid>
      <dc:creator>edrivera3</dc:creator>
      <dc:date>2015-05-20T20:27:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract field values from another field using transforms.conf and props.conf?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-field-values-from-another-field-using-transforms/m-p/118479#M31617</link>
      <description>&lt;P&gt;I forgot to mention that "block" is a multi value field.&lt;/P&gt;</description>
      <pubDate>Wed, 20 May 2015 20:36:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-field-values-from-another-field-using-transforms/m-p/118479#M31617</guid>
      <dc:creator>edrivera3</dc:creator>
      <dc:date>2015-05-20T20:36:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract field values from another field using transforms.conf and props.conf?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-field-values-from-another-field-using-transforms/m-p/118480#M31618</link>
      <description>&lt;P&gt;How is the &lt;CODE&gt;block&lt;/CODE&gt; field being extracted? You'd only use the &lt;CODE&gt;fields:&lt;/CODE&gt; syntax if it were extracted with an INDEXED_EXTRACTIONS directive on the forwarder.&lt;/P&gt;

&lt;P&gt;If it is being auto-extracted via KV_MODE, then you probably can't use it as a source key.&lt;/P&gt;

&lt;P&gt;If you had a transform called &lt;CODE&gt;[extract_block]&lt;/CODE&gt; that did the search-time extraction for that field, you'd want your props to look like this:&lt;/P&gt;

&lt;P&gt;[tirfiles]&lt;BR /&gt;
REPORT-block = extract_block, mvfield_block_num&lt;/P&gt;

&lt;P&gt;This would be easier to answer if we had a bigger picture of your config, and a good sample of what was being extracted into &lt;CODE&gt;block&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 20:01:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-field-values-from-another-field-using-transforms/m-p/118480#M31618</guid>
      <dc:creator>jacobwilkins</dc:creator>
      <dc:date>2020-09-28T20:01:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract field values from another field using transforms.conf and props.conf?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-field-values-from-another-field-using-transforms/m-p/118481#M31619</link>
      <description>&lt;P&gt;There is nothing more to say unless you post sample events.&lt;/P&gt;</description>
      <pubDate>Wed, 20 May 2015 20:41:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-field-values-from-another-field-using-transforms/m-p/118481#M31619</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-05-20T20:41:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract field values from another field using transforms.conf and props.conf?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-field-values-from-another-field-using-transforms/m-p/118482#M31620</link>
      <description>&lt;P&gt;Ok. &lt;BR /&gt;
Block is a multi-value field and it is extracted in search-time:&lt;/P&gt;

&lt;P&gt;[tirfiles]&lt;BR /&gt;
REPORT-step_block = mvfield_step_block&lt;/P&gt;

&lt;P&gt;[mvfield_step_block]&lt;BR /&gt;
 REGEX = ---\n(?&amp;lt;block&amp;gt;Block\sStatus[\w\W\n]{1,20000}?)----\n&lt;BR /&gt;
 MV_ADD = true&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 20:01:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-field-values-from-another-field-using-transforms/m-p/118482#M31620</guid>
      <dc:creator>edrivera3</dc:creator>
      <dc:date>2020-09-28T20:01:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract field values from another field using transforms.conf and props.conf?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-field-values-from-another-field-using-transforms/m-p/118483#M31621</link>
      <description>&lt;P&gt;I changed props.conf to REPORT-step_block = mvfield_step_block, mvfield_block_num and it worked correctly. Thank you.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 20:01:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-field-values-from-another-field-using-transforms/m-p/118483#M31621</guid>
      <dc:creator>edrivera3</dc:creator>
      <dc:date>2020-09-28T20:01:11Z</dc:date>
    </item>
  </channel>
</rss>

