<?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: Extracting Fields Value in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Extracting-Fields-Value/m-p/33970#M1377</link>
    <description>&lt;P&gt;Have you tried:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | multikv fields "CPU Time" "Status" "Skew Vertex" 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 14 Aug 2013 08:30:45 GMT</pubDate>
    <dc:creator>MarioM</dc:creator>
    <dc:date>2013-08-14T08:30:45Z</dc:date>
    <item>
      <title>Extracting Fields Value</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Extracting-Fields-Value/m-p/33967#M1374</link>
      <description>&lt;P&gt;Jul 16 21:54:45   Phase 0 ended (692 seconds)  &lt;/P&gt;

&lt;P&gt;CPU Time     Status    Skew Vertex&lt;BR /&gt;&lt;BR /&gt;
      0.033    [  : 1]   0% Audit.Gather_Logs&lt;BR /&gt;&lt;BR /&gt;
      0.097    [  : 1]   0% Audit.Start_Process_Step_Phase5_Run_SQL&lt;BR /&gt;&lt;BR /&gt;
      5.409    [  :12]   0% DLY_INT_Processed_format&lt;BR /&gt;&lt;BR /&gt;
      1.433    [  :12]   0% FUNC_INT_Processed_format&lt;BR /&gt;&lt;BR /&gt;
      3.482    [  :12]   0% Filter_non_func_records&lt;BR /&gt;&lt;BR /&gt;
      6.751    [  :12]   0% PTD_INT_Processed_format&lt;BR /&gt;&lt;BR /&gt;
      16.066   [  :12]   0% Partition_and_Re_Sort_by_Firm_Acct_DLY.Partition_by_Key&lt;/P&gt;

&lt;P&gt;Here in the above index i m not able to extract CPU Time that is all the values ...Only few of the values are being extracted like 0.033 and 0.097..Here I m not able to extract the complete set of values ..Please have a glance..&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 14:33:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Extracting-Fields-Value/m-p/33967#M1374</guid>
      <dc:creator>nilampakhare</dc:creator>
      <dc:date>2020-09-28T14:33:45Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting Fields Value</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Extracting-Fields-Value/m-p/33968#M1375</link>
      <description>&lt;P&gt;can you try this...&lt;/P&gt;

&lt;P&gt;your search |rex "(?i)^(?P&lt;FIELD_NAME&gt;[^ ]+)" |table field_name&lt;/FIELD_NAME&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Aug 2013 08:16:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Extracting-Fields-Value/m-p/33968#M1375</guid>
      <dc:creator>kml_uvce</dc:creator>
      <dc:date>2013-08-14T08:16:58Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting Fields Value</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Extracting-Fields-Value/m-p/33969#M1376</link>
      <description>&lt;P&gt;"^\d+.\d+" as a regex will match any  (1 or more) digit(s), then a period (.) and then another (1 or more) digit(s) at the beginning of a line.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Aug 2013 08:21:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Extracting-Fields-Value/m-p/33969#M1376</guid>
      <dc:creator>lcrielaa</dc:creator>
      <dc:date>2013-08-14T08:21:29Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting Fields Value</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Extracting-Fields-Value/m-p/33970#M1377</link>
      <description>&lt;P&gt;Have you tried:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | multikv fields "CPU Time" "Status" "Skew Vertex" 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 14 Aug 2013 08:30:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Extracting-Fields-Value/m-p/33970#M1377</guid>
      <dc:creator>MarioM</dc:creator>
      <dc:date>2013-08-14T08:30:45Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting Fields Value</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Extracting-Fields-Value/m-p/33971#M1378</link>
      <description>&lt;P&gt;Here in this example  I am not able to extract the values only for CPU Time...So here in this query in place of field_name , what do I need to mention ???&lt;/P&gt;</description>
      <pubDate>Wed, 14 Aug 2013 08:54:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Extracting-Fields-Value/m-p/33971#M1378</guid>
      <dc:creator>nilampakhare</dc:creator>
      <dc:date>2013-08-14T08:54:37Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting Fields Value</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Extracting-Fields-Value/m-p/33972#M1379</link>
      <description>&lt;P&gt;But for using multikv ..I need to extract the fields such as CPU Time ,Status ,etc ..r8 ?? In this case I am not able to extract the fields itself ...Can u please guide me through this..&lt;/P&gt;</description>
      <pubDate>Wed, 14 Aug 2013 08:57:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Extracting-Fields-Value/m-p/33972#M1379</guid>
      <dc:creator>nilampakhare</dc:creator>
      <dc:date>2013-08-14T08:57:29Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting Fields Value</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Extracting-Fields-Value/m-p/33973#M1380</link>
      <description>&lt;P&gt;it will depends on the original format of the data and the format in splunk...&lt;BR /&gt;
You can try "... | multikv forceheader=2" 2 being the line number of the fields name as you see in splunk.&lt;BR /&gt;
If still not working you can configure a multikv.conf &lt;A href="http://docs.splunk.com/Documentation/Splunk/5.0.4/Admin/Multikvconf"&gt;http://docs.splunk.com/Documentation/Splunk/5.0.4/Admin/Multikvconf&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Aug 2013 10:00:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Extracting-Fields-Value/m-p/33973#M1380</guid>
      <dc:creator>MarioM</dc:creator>
      <dc:date>2013-08-14T10:00:14Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting Fields Value</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Extracting-Fields-Value/m-p/33974#M1381</link>
      <description>&lt;P&gt;If you are not having field names, you can use _raw for calculation.&lt;/P&gt;

&lt;P&gt;You can make a |mvexpand _raw|rex field=_raw "?&lt;CPU_USAGE&gt;\d+.\d+"&lt;/CPU_USAGE&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 14:33:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Extracting-Fields-Value/m-p/33974#M1381</guid>
      <dc:creator>linu1988</dc:creator>
      <dc:date>2020-09-28T14:33:56Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting Fields Value</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Extracting-Fields-Value/m-p/33975#M1382</link>
      <description>&lt;P&gt;If I understand, you want to extract CPU time values (0.033, 0.097,5.409 etc) in a field and each line in above data is an event, in query you will get field_name with these values...&lt;BR /&gt;
your search |rex "(?i)^(?P&lt;CPU_TIME&gt;[^ ]+)" |table cpu_time&lt;/CPU_TIME&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 14:33:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Extracting-Fields-Value/m-p/33975#M1382</guid>
      <dc:creator>kml_uvce</dc:creator>
      <dc:date>2020-09-28T14:33:59Z</dc:date>
    </item>
  </channel>
</rss>

