<?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 multivalue fields in Splunk and the events in tabular format? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-multivalue-fields-in-Splunk-and-the-events-in/m-p/444472#M126056</link>
    <description>&lt;P&gt;Hi Landen, Thanks for your response.&lt;BR /&gt;
Using this I am not able to see _time field. So basically my ultimate goal is to plot 2 charts (line graphs) in same splunk. Now the 2nd chart will consist of this index=os data. So i was thinking of exporting the PID and time values from this splunk to other splunk and then plot the chart against time.&lt;BR /&gt;
Does this make sense?&lt;/P&gt;</description>
    <pubDate>Thu, 02 May 2019 08:48:16 GMT</pubDate>
    <dc:creator>Shashank_87</dc:creator>
    <dc:date>2019-05-02T08:48:16Z</dc:date>
    <item>
      <title>How to extract multivalue fields in Splunk and the events in tabular format?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-multivalue-fields-in-Splunk-and-the-events-in/m-p/444468#M126052</link>
      <description>&lt;P&gt;Hi, I have one OS index in Splunk where i get the raw data in a tabular format like below. Now I need to extract these fields like PID and that too only for the "java" COMMAND.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;PID  USER              PR    NI    VIRT     RES     SHR   S  pctCPU  pctMEM       cpuTIME  COMMAND
  7195  user              20     0   1361m     74m     15m   S    25.1     0.3      57:32.41  oneagentos
  7240  api               20     0   14.1g    1.9g     35m   S     5.8     8.1      62:42.81  java
  9717  api               20     0   14.1g    1.8g     35m   S     3.9     7.8      61:00.56  java
  3882  user1              20     0   1530m     34m    8584   S     1.9     0.1     212:28.61  python
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I would need this data in a lookup because I need to ingest it into another instance of Splunk to compare the charts.&lt;BR /&gt;
Can someone help me extracting these fields and how can i export those to another Splunk?&lt;/P&gt;</description>
      <pubDate>Wed, 01 May 2019 15:12:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-multivalue-fields-in-Splunk-and-the-events-in/m-p/444468#M126052</guid>
      <dc:creator>Shashank_87</dc:creator>
      <dc:date>2019-05-01T15:12:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract multivalue fields in Splunk and the events in tabular format?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-multivalue-fields-in-Splunk-and-the-events-in/m-p/444469#M126053</link>
      <description>&lt;P&gt;Use multikv:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| stats count | eval _raw="PID USER PR NI VIRT RES SHR S pctCPU pctMEM cpuTIME COMMAND
7195 user 20 0 1361m 74m 15m S 25.1 0.3 57:32.41 oneagentos
7240 api 20 0 14.1g 1.9g 35m S 5.8 8.1 62:42.81 java
9717 api 20 0 14.1g 1.8g 35m S 3.9 7.8 61:00.56 java
3882 user1 20 0 1530m 34m 8584 S 1.9 0.1 212:28.61 python" | table _raw
| multikv
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;For your example:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=os | multikv | outputlookup yourlookup.csv
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 01 May 2019 15:52:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-multivalue-fields-in-Splunk-and-the-events-in/m-p/444469#M126053</guid>
      <dc:creator>landen99</dc:creator>
      <dc:date>2019-05-01T15:52:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract multivalue fields in Splunk and the events in tabular format?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-multivalue-fields-in-Splunk-and-the-events-in/m-p/444470#M126054</link>
      <description>&lt;P&gt;On your 1st instance, you could do something like this to extract pids to a file.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    index=os | rex field=_raw  " ^(?&amp;lt;java_pid&amp;gt;\d+)\s.*java$"| table java_pid | eval status ="java" | fields java_pid, status | outputlookup java_pid_status.csv
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;On the second instance, you can then use this lookup to compare &lt;/P&gt;</description>
      <pubDate>Wed, 01 May 2019 16:23:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-multivalue-fields-in-Splunk-and-the-events-in/m-p/444470#M126054</guid>
      <dc:creator>lakshman239</dc:creator>
      <dc:date>2019-05-01T16:23:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract multivalue fields in Splunk and the events in tabular format?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-multivalue-fields-in-Splunk-and-the-events-in/m-p/444471#M126055</link>
      <description>&lt;P&gt;Hi, I dont think this rex is correct as it is not working.&lt;/P&gt;</description>
      <pubDate>Thu, 02 May 2019 08:39:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-multivalue-fields-in-Splunk-and-the-events-in/m-p/444471#M126055</guid>
      <dc:creator>Shashank_87</dc:creator>
      <dc:date>2019-05-02T08:39:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract multivalue fields in Splunk and the events in tabular format?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-multivalue-fields-in-Splunk-and-the-events-in/m-p/444472#M126056</link>
      <description>&lt;P&gt;Hi Landen, Thanks for your response.&lt;BR /&gt;
Using this I am not able to see _time field. So basically my ultimate goal is to plot 2 charts (line graphs) in same splunk. Now the 2nd chart will consist of this index=os data. So i was thinking of exporting the PID and time values from this splunk to other splunk and then plot the chart against time.&lt;BR /&gt;
Does this make sense?&lt;/P&gt;</description>
      <pubDate>Thu, 02 May 2019 08:48:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-multivalue-fields-in-Splunk-and-the-events-in/m-p/444472#M126056</guid>
      <dc:creator>Shashank_87</dc:creator>
      <dc:date>2019-05-02T08:48:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract multivalue fields in Splunk and the events in tabular format?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-multivalue-fields-in-Splunk-and-the-events-in/m-p/444473#M126057</link>
      <description>&lt;P&gt;could you pls check now and also review/amend as needed for your event - &lt;A href="https://regex101.com/r/lcAZF0/2"&gt;https://regex101.com/r/lcAZF0/2&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 May 2019 09:58:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-multivalue-fields-in-Splunk-and-the-events-in/m-p/444473#M126057</guid>
      <dc:creator>lakshman239</dc:creator>
      <dc:date>2019-05-02T09:58:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract multivalue fields in Splunk and the events in tabular format?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-multivalue-fields-in-Splunk-and-the-events-in/m-p/444474#M126058</link>
      <description>&lt;P&gt;The SPL posted was just an example to show the command "multikv" in action.  For your data, your SPL would probably like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=os | multikv
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 02 May 2019 17:18:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-multivalue-fields-in-Splunk-and-the-events-in/m-p/444474#M126058</guid>
      <dc:creator>landen99</dc:creator>
      <dc:date>2019-05-02T17:18:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract multivalue fields in Splunk and the events in tabular format?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-multivalue-fields-in-Splunk-and-the-events-in/m-p/444475#M126059</link>
      <description>&lt;P&gt;It worked thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 08 May 2019 10:26:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-multivalue-fields-in-Splunk-and-the-events-in/m-p/444475#M126059</guid>
      <dc:creator>Shashank_87</dc:creator>
      <dc:date>2019-05-08T10:26:16Z</dc:date>
    </item>
  </channel>
</rss>

