<?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 How to modify rows and columns in the Splunk table? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-modify-rows-and-columns-in-the-Splunk-table/m-p/453187#M128269</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I have written a splunk search which produces the following table:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;from    to  parameter   value
A       C    bla_1       111
B       D    bla_2       222
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I want to modify that table into the following:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;from    to  value
A   bla_1   111
B   bla_2   222
bla_1   C   111
bla_2   D   222
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Would you have any ides on how to achieve this?&lt;/P&gt;

&lt;P&gt;Thank you.&lt;/P&gt;</description>
    <pubDate>Mon, 10 Sep 2018 13:29:54 GMT</pubDate>
    <dc:creator>kiril123</dc:creator>
    <dc:date>2018-09-10T13:29:54Z</dc:date>
    <item>
      <title>How to modify rows and columns in the Splunk table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-modify-rows-and-columns-in-the-Splunk-table/m-p/453187#M128269</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I have written a splunk search which produces the following table:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;from    to  parameter   value
A       C    bla_1       111
B       D    bla_2       222
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I want to modify that table into the following:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;from    to  value
A   bla_1   111
B   bla_2   222
bla_1   C   111
bla_2   D   222
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Would you have any ides on how to achieve this?&lt;/P&gt;

&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Sep 2018 13:29:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-modify-rows-and-columns-in-the-Splunk-table/m-p/453187#M128269</guid>
      <dc:creator>kiril123</dc:creator>
      <dc:date>2018-09-10T13:29:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to modify rows and columns in the Splunk table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-modify-rows-and-columns-in-the-Splunk-table/m-p/453188#M128270</link>
      <description>&lt;P&gt;Try this...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(your search)
| eval myfan=mvrange(0,2)
| mvexpand myfan 
| eval from=if(myfan=0,from,parameter)
| eval to=if(myfan=0,parameter,to)
| fields - parameter
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 10 Sep 2018 13:42:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-modify-rows-and-columns-in-the-Splunk-table/m-p/453188#M128270</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2018-09-10T13:42:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to modify rows and columns in the Splunk table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-modify-rows-and-columns-in-the-Splunk-table/m-p/453189#M128271</link>
      <description>&lt;P&gt;This has worked for me. Thank you.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Sep 2018 15:18:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-modify-rows-and-columns-in-the-Splunk-table/m-p/453189#M128271</guid>
      <dc:creator>kiril123</dc:creator>
      <dc:date>2018-09-10T15:18:32Z</dc:date>
    </item>
  </channel>
</rss>

