<?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 use eval or other method in calculated fields to extract values into a new field? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-eval-or-other-method-in-calculated-fields-to-extract/m-p/198938#M57574</link>
    <description>&lt;P&gt;Thanks for the reply Ayn. Can we use RegEx in Calculated fields?&lt;/P&gt;</description>
    <pubDate>Mon, 01 Sep 2014 11:28:57 GMT</pubDate>
    <dc:creator>reach2tushar</dc:creator>
    <dc:date>2014-09-01T11:28:57Z</dc:date>
    <item>
      <title>How to use eval or other method in calculated fields to extract values into a new field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-eval-or-other-method-in-calculated-fields-to-extract/m-p/198936#M57572</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I am thinking of using the Calculated Fields option to extract one field.&lt;BR /&gt;
I have following values in a field name "YOURFIELD"&lt;BR /&gt;
Test_X&lt;BR /&gt;
TestA_Y&lt;BR /&gt;
TestBC_Z_all&lt;BR /&gt;
I want to extract the characters before "_" in a new field "MYFIELD". The result will be:&lt;BR /&gt;
Test&lt;BR /&gt;
TestA&lt;BR /&gt;
TestBC&lt;/P&gt;

&lt;P&gt;Can please help me to extract this result in calculated fields using an EVAL function or any other method?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 17:27:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-eval-or-other-method-in-calculated-fields-to-extract/m-p/198936#M57572</guid>
      <dc:creator>reach2tushar</dc:creator>
      <dc:date>2020-09-28T17:27:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to use eval or other method in calculated fields to extract values into a new field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-eval-or-other-method-in-calculated-fields-to-extract/m-p/198937#M57573</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;... | rex field=YOURFIELD "(?&amp;lt;MYFIELD&amp;gt;.+?)_"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 01 Sep 2014 11:20:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-eval-or-other-method-in-calculated-fields-to-extract/m-p/198937#M57573</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2014-09-01T11:20:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to use eval or other method in calculated fields to extract values into a new field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-eval-or-other-method-in-calculated-fields-to-extract/m-p/198938#M57574</link>
      <description>&lt;P&gt;Thanks for the reply Ayn. Can we use RegEx in Calculated fields?&lt;/P&gt;</description>
      <pubDate>Mon, 01 Sep 2014 11:28:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-eval-or-other-method-in-calculated-fields-to-extract/m-p/198938#M57574</guid>
      <dc:creator>reach2tushar</dc:creator>
      <dc:date>2014-09-01T11:28:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to use eval or other method in calculated fields to extract values into a new field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-eval-or-other-method-in-calculated-fields-to-extract/m-p/198939#M57575</link>
      <description>&lt;P&gt;Yes, you can.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Sep 2014 11:47:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-eval-or-other-method-in-calculated-fields-to-extract/m-p/198939#M57575</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2014-09-01T11:47:20Z</dc:date>
    </item>
  </channel>
</rss>

