<?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 make a table with multiple multivalue fields? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-make-a-table-with-multiple-multivalue-fields/m-p/31578#M6538</link>
    <description>&lt;P&gt;I have tried that. mvexpand is giving each field as one line as &lt;BR /&gt;
P_NAME    P_value&lt;BR /&gt;&lt;BR /&gt;
p1          m1&lt;BR /&gt;
p2          m2&lt;BR /&gt;
p3          m3&lt;BR /&gt;
But I cannot figure out how to do one to one mapping of P_NAME and P_ID as I need  to draw a chart like &lt;BR /&gt;
chart first(P_value) over _time by P_NAME&lt;BR /&gt;
Please help.&lt;BR /&gt;
Thanks&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 13:09:22 GMT</pubDate>
    <dc:creator>disha</dc:creator>
    <dc:date>2020-09-28T13:09:22Z</dc:date>
    <item>
      <title>How to make a table with multiple multivalue fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-make-a-table-with-multiple-multivalue-fields/m-p/31574#M6534</link>
      <description>&lt;P&gt;I need to make a table with some information from events.&lt;/P&gt;

&lt;P&gt;my event looks like:&lt;/P&gt;

&lt;P&gt;[timestamp][some info]&lt;BR /&gt;&lt;BR /&gt;
[function_name_1][id_1][param_1][result_1]&lt;BR /&gt;&lt;BR /&gt;
[function_name_2][id_2][param_2][result_2]&lt;BR /&gt;&lt;BR /&gt;
[function_name_3][id_3][param_3][result_3]&lt;BR /&gt;&lt;BR /&gt;
...&lt;BR /&gt;&lt;BR /&gt;
[function_name_n][id_n][param_n][result_n]&lt;BR /&gt;&lt;/P&gt;

&lt;P&gt;Because my regexp only found the first occurance of the fields(function_name,id,param,result) so I used MV_ADD for all multivalue fields and now it finds all occurences.&lt;/P&gt;

&lt;P&gt;My table should looks like:&lt;/P&gt;

&lt;P&gt;index   |timestamp  |some_info     |function_name |id     |param  |result&lt;BR /&gt;&lt;BR /&gt;
1       |timestamp  |some_info     |function_name_1|id_1    |param_1|result_1&lt;BR /&gt;&lt;BR /&gt;
2       |timestamp  |some_info     |function_name_2|id_2    |param_2|result_2&lt;BR /&gt;&lt;BR /&gt;
3       |timestamp  |some_info     |function_name_3|id_3    |param_3|result_3&lt;BR /&gt;&lt;BR /&gt;
4       |timestamp  |some_info     |function_name_4|id_4    |param_4|result_4&lt;BR /&gt;&lt;/P&gt;

&lt;P&gt;problem is with multivalue fields, for the last 4 column in one record I've got couple values and my table looks like:&lt;/P&gt;

&lt;P&gt;index   |timestamp  |some_info     |function_name |id     |param  |result&lt;BR /&gt;&lt;BR /&gt;
1   |timestamp  |some_info |function_name_1|id_1|param_1|result_1&lt;BR /&gt;&lt;BR /&gt;
        |               |               |function_name_2|id_2|param_2|result_2&lt;BR /&gt;&lt;BR /&gt;
        |           |           |function_name_3|id_3|param_3|result_3&lt;BR /&gt;&lt;BR /&gt;
        |               |           |function_name_4|id_4|param_4|result_4&lt;BR /&gt;&lt;BR /&gt;
2   |timestamp  |some_info     |function_name_1|id_1    |param_1|result_1&lt;BR /&gt;&lt;BR /&gt;
        |           |               |function_name_2|id_2    |param_2|result_2&lt;BR /&gt;&lt;BR /&gt;
        |           |               |function_name_3|id_3    |param_3|result_3&lt;BR /&gt;&lt;BR /&gt;
        |           |               |function_name_4|id_4    |param_4|result_4&lt;BR /&gt;&lt;/P&gt;

&lt;P&gt;I read about mvexpand command but it doesn't work good with multiple multivalue fields.&lt;BR /&gt;
after mvcommand for all multivalue fields I've got:&lt;/P&gt;

&lt;P&gt;index   |timestamp  |some_info     |function_name |id     |param  |result&lt;BR /&gt;&lt;BR /&gt;
1       |timestamp  |some_info     |function_name_1|id_1    |param_1|result_1&lt;BR /&gt;&lt;BR /&gt;
2       |timestamp  |some_info     |function_name_1|id_1    |param_1|result_2&lt;BR /&gt;&lt;BR /&gt;
3       |timestamp  |some_info     |function_name_1|id_1    |param_1|result_3&lt;BR /&gt;&lt;BR /&gt;
4       |timestamp  |some_info     |function_name_1|id_1    |param_1|result_4&lt;BR /&gt;&lt;BR /&gt;
5       |timestamp  |some_info     |function_name_1|id_1    |param_2|result_1&lt;BR /&gt;&lt;BR /&gt;
6       |timestamp  |some_info     |function_name_1|id_1    |param_2|result_2&lt;BR /&gt;&lt;BR /&gt;
7       |timestamp  |some_info     |function_name_1|id_1    |param_2|result_3&lt;BR /&gt;&lt;BR /&gt;
8       |timestamp  |some_info     |function_name_1|id_1    |param_2|result_4&lt;BR /&gt;&lt;BR /&gt;
9       |timestamp  |some_info     |function_name_1|id_1    |param_3|result_1&lt;BR /&gt;&lt;BR /&gt;
10      |timestamp  |some_info     |function_name_1|id_1    |param_3|result_2&lt;BR /&gt;&lt;BR /&gt;
11      |timestamp  |some_info     |function_name_1|id_1    |param_3|result_3&lt;BR /&gt;&lt;BR /&gt;
...&lt;BR /&gt;&lt;BR /&gt;
(n-1)   |timestamp  |some_info     |function_name_4|id_4    |param_4|result_3&lt;BR /&gt;&lt;BR /&gt;
n       |timestamp  |some_info     |function_name_4|id_4    |param_4|result_4&lt;BR /&gt;&lt;/P&gt;

&lt;P&gt;My last query looks like:&lt;/P&gt;

&lt;P&gt;"table _time some_info function_name id param result | mvexpand function_name| mvexpand id|mvexpand param |mvexpand result"&lt;/P&gt;

&lt;P&gt;Could any one help me with this situation.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;
Adrian.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Aug 2012 10:25:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-make-a-table-with-multiple-multivalue-fields/m-p/31574#M6534</guid>
      <dc:creator>aadrian</dc:creator>
      <dc:date>2012-08-10T10:25:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a table with multiple multivalue fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-make-a-table-with-multiple-multivalue-fields/m-p/31575#M6535</link>
      <description>&lt;P&gt;Hi aadrian,&lt;/P&gt;

&lt;P&gt;I am facing a similiar situation, have you got a solution to this?? even i am struggling to do the same.&lt;/P&gt;

&lt;P&gt;Thnx&lt;/P&gt;</description>
      <pubDate>Thu, 20 Sep 2012 13:58:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-make-a-table-with-multiple-multivalue-fields/m-p/31575#M6535</guid>
      <dc:creator>adityapavan18</dc:creator>
      <dc:date>2012-09-20T13:58:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a table with multiple multivalue fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-make-a-table-with-multiple-multivalue-fields/m-p/31576#M6536</link>
      <description>&lt;P&gt;Did You find any solution..Looks like nobody answering multiple multivalued field.I am stucked with the same.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jan 2013 22:08:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-make-a-table-with-multiple-multivalue-fields/m-p/31576#M6536</guid>
      <dc:creator>disha</dc:creator>
      <dc:date>2013-01-21T22:08:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a table with multiple multivalue fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-make-a-table-with-multiple-multivalue-fields/m-p/31577#M6537</link>
      <description>&lt;P&gt;I would try to use spath, output the result in a field, and do an mvexpand on that...&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jan 2013 07:09:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-make-a-table-with-multiple-multivalue-fields/m-p/31577#M6537</guid>
      <dc:creator>sbsbb</dc:creator>
      <dc:date>2013-01-22T07:09:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a table with multiple multivalue fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-make-a-table-with-multiple-multivalue-fields/m-p/31578#M6538</link>
      <description>&lt;P&gt;I have tried that. mvexpand is giving each field as one line as &lt;BR /&gt;
P_NAME    P_value&lt;BR /&gt;&lt;BR /&gt;
p1          m1&lt;BR /&gt;
p2          m2&lt;BR /&gt;
p3          m3&lt;BR /&gt;
But I cannot figure out how to do one to one mapping of P_NAME and P_ID as I need  to draw a chart like &lt;BR /&gt;
chart first(P_value) over _time by P_NAME&lt;BR /&gt;
Please help.&lt;BR /&gt;
Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 13:09:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-make-a-table-with-multiple-multivalue-fields/m-p/31578#M6538</guid>
      <dc:creator>disha</dc:creator>
      <dc:date>2020-09-28T13:09:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to make a table with multiple multivalue fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-make-a-table-with-multiple-multivalue-fields/m-p/31579#M6539</link>
      <description>&lt;P&gt;I'm not sure to understand your problem, I've done something similar with xml.&lt;BR /&gt;
In your case, maybe you should extract all information as one field (lets say eField) "  |function_name_1|id_1    |param_1|result_1", then mvexpand, and only after that, extract fields out of this eField&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 13:09:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-make-a-table-with-multiple-multivalue-fields/m-p/31579#M6539</guid>
      <dc:creator>sbsbb</dc:creator>
      <dc:date>2020-09-28T13:09:25Z</dc:date>
    </item>
  </channel>
</rss>

