<?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 Field Extraction And Evaluation in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Field-Extraction-And-Evaluation/m-p/502453#M195196</link>
    <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="![alt text][1]"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/8054i43F4100A17CCDCFE/image-size/large?v=v2&amp;amp;px=999" role="button" title="![alt text][1]" alt="![alt text][1]" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;From the screenshot, i would like to achieve the below;&lt;/P&gt;

&lt;P&gt;LCU04 = 500 x 00000&lt;BR /&gt;
LCU03 = 500 x 01985&lt;BR /&gt;
LCU02 = 500 x 01985&lt;BR /&gt;
LCU01 = 500 x 01985&lt;/P&gt;

&lt;P&gt;Then, LCU = (LCU04 + LCU03 + LCU02 + LCU01)&lt;/P&gt;

&lt;P&gt;Please help me achieve this.&lt;/P&gt;

&lt;P&gt;Thank you.&lt;/P&gt;</description>
    <pubDate>Sun, 08 Dec 2019 20:47:26 GMT</pubDate>
    <dc:creator>rhugo</dc:creator>
    <dc:date>2019-12-08T20:47:26Z</dc:date>
    <item>
      <title>Field Extraction And Evaluation</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Field-Extraction-And-Evaluation/m-p/502453#M195196</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="![alt text][1]"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/8054i43F4100A17CCDCFE/image-size/large?v=v2&amp;amp;px=999" role="button" title="![alt text][1]" alt="![alt text][1]" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;From the screenshot, i would like to achieve the below;&lt;/P&gt;

&lt;P&gt;LCU04 = 500 x 00000&lt;BR /&gt;
LCU03 = 500 x 01985&lt;BR /&gt;
LCU02 = 500 x 01985&lt;BR /&gt;
LCU01 = 500 x 01985&lt;/P&gt;

&lt;P&gt;Then, LCU = (LCU04 + LCU03 + LCU02 + LCU01)&lt;/P&gt;

&lt;P&gt;Please help me achieve this.&lt;/P&gt;

&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Sun, 08 Dec 2019 20:47:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Field-Extraction-And-Evaluation/m-p/502453#M195196</guid>
      <dc:creator>rhugo</dc:creator>
      <dc:date>2019-12-08T20:47:26Z</dc:date>
    </item>
    <item>
      <title>Re: Field Extraction And Evaluation</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Field-Extraction-And-Evaluation/m-p/502454#M195197</link>
      <description>&lt;P&gt;NEVER post images without also posting the text, otherwise &lt;EM&gt;WE&lt;/EM&gt; have to type it in to help you.&lt;/P&gt;</description>
      <pubDate>Sun, 08 Dec 2019 22:49:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Field-Extraction-And-Evaluation/m-p/502454#M195197</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-12-08T22:49:17Z</dc:date>
    </item>
    <item>
      <title>Re: Field Extraction And Evaluation</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Field-Extraction-And-Evaluation/m-p/502455#M195198</link>
      <description>&lt;P&gt;Like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults 
| eval raw="2019-12-04 11:31:42.027 8 ResourceMgr   ATM 11:31:42 LCU Lcu04 500   00 00000   {journal}:::2019-12-04 11:31:42.024 8 ResourceMgr   ATM 11:31:42 LCU Lcu03 500   01 01985   {journal}:::2019-12-04 11:31:42.020 8 ResourceMgr   ATM 11:31:42 LCU Lcu02 500   01 01985   {journal}:::2019-12-04 11:31:42.017 8 ResourceMgr   ATM 11:31:42 LCU Lcu01 500   00 01985   {journal}"
| makemv delim=":::" raw
| mvexpand raw
| rename raw AS _raw
| eval _time = strptime(_raw, "%Y-%m-%d %H:%M:%S.%3N")
| sort 0 - _time

| rename COMMENT AS "Everything above generates sample event data; everything below is your solution"

| rex "LCU\s+(?&amp;lt;LCU_key&amp;gt;\S+)\s+(?&amp;lt;LCU_base&amp;gt;\d+)\s+(?&amp;lt;LCU_stage&amp;gt;\d+)\s+(?&amp;lt;LCU_multiplier&amp;gt;\d+)"
| eval {LCU_key} = LCU_base * LCU_multiplier
| filldown Lcu*
| eval LCU_total = Lcu01 + Lcu02 + Lcu03 + Lcu04
| where isnotnull(LCU_total)
| table LCU_total *
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 08 Dec 2019 22:49:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Field-Extraction-And-Evaluation/m-p/502455#M195198</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-12-08T22:49:56Z</dc:date>
    </item>
    <item>
      <title>Re: Field Extraction And Evaluation</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Field-Extraction-And-Evaluation/m-p/502456#M195199</link>
      <description>&lt;P&gt;Thank you. This helped.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Dec 2019 00:05:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Field-Extraction-And-Evaluation/m-p/502456#M195199</guid>
      <dc:creator>rhugo</dc:creator>
      <dc:date>2019-12-11T00:05:29Z</dc:date>
    </item>
  </channel>
</rss>

