<?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 Change table representation in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Change-table-representation/m-p/406442#M173631</link>
    <description>&lt;P&gt;I have a table as follows:&lt;/P&gt;

&lt;P&gt;CN|Lev|ref1|ref2|ref3|ref4|ref5|ref6&lt;BR /&gt;
cn1|1|1|2|3|4|||&lt;BR /&gt;
cn2|2|||||5|6|&lt;/P&gt;

&lt;P&gt;The representation required is:&lt;/P&gt;

&lt;P&gt;CN|Lev|Ref|Count&lt;BR /&gt;
cn1|1|ref1|1&lt;BR /&gt;
cn1|1|ref2|2&lt;BR /&gt;
cn1|1|ref3|3&lt;BR /&gt;
cn1|1|ref4|4&lt;BR /&gt;
cn2|2|ref5|5&lt;BR /&gt;
cn2|2|ref6|6&lt;/P&gt;</description>
    <pubDate>Wed, 16 Jan 2019 10:41:40 GMT</pubDate>
    <dc:creator>anisgupt</dc:creator>
    <dc:date>2019-01-16T10:41:40Z</dc:date>
    <item>
      <title>Change table representation</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Change-table-representation/m-p/406442#M173631</link>
      <description>&lt;P&gt;I have a table as follows:&lt;/P&gt;

&lt;P&gt;CN|Lev|ref1|ref2|ref3|ref4|ref5|ref6&lt;BR /&gt;
cn1|1|1|2|3|4|||&lt;BR /&gt;
cn2|2|||||5|6|&lt;/P&gt;

&lt;P&gt;The representation required is:&lt;/P&gt;

&lt;P&gt;CN|Lev|Ref|Count&lt;BR /&gt;
cn1|1|ref1|1&lt;BR /&gt;
cn1|1|ref2|2&lt;BR /&gt;
cn1|1|ref3|3&lt;BR /&gt;
cn1|1|ref4|4&lt;BR /&gt;
cn2|2|ref5|5&lt;BR /&gt;
cn2|2|ref6|6&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jan 2019 10:41:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Change-table-representation/m-p/406442#M173631</guid>
      <dc:creator>anisgupt</dc:creator>
      <dc:date>2019-01-16T10:41:40Z</dc:date>
    </item>
    <item>
      <title>Re: Change table representation</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Change-table-representation/m-p/406443#M173632</link>
      <description>&lt;P&gt;Hi @anisgupt ,&lt;/P&gt;

&lt;P&gt;Please try below query and let me know if it helps:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults 
| eval CN="cn1", Lev="1", ref1="1", ref2="2", ref3="3", ref4="4", ref5="", ref6="" 
| append 
    [| makeresults 
    | eval CN="cn2", Lev="2", ref1="", ref2="", ref3="", ref4="", ref5="5", ref6="6" ] 
| eval cr=mvzip(CN,Lev,"-") 
| fields - _time Lev CN 
| untable cr Ref Count 
| rex field=cr "(?P&amp;lt;CN&amp;gt;[^\,].+)-(?P&amp;lt;Lev&amp;gt;.+)" 
| table CN Lev Ref Count| where Count&amp;gt;0
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 17 Jan 2019 09:46:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Change-table-representation/m-p/406443#M173632</guid>
      <dc:creator>ashajambagi</dc:creator>
      <dc:date>2019-01-17T09:46:34Z</dc:date>
    </item>
    <item>
      <title>Re: Change table representation</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Change-table-representation/m-p/406444#M173633</link>
      <description>&lt;P&gt;@anisgupt  Can you please accept the answer if it helped with your issue!&lt;/P&gt;</description>
      <pubDate>Fri, 01 Feb 2019 06:11:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Change-table-representation/m-p/406444#M173633</guid>
      <dc:creator>ashajambagi</dc:creator>
      <dc:date>2019-02-01T06:11:04Z</dc:date>
    </item>
  </channel>
</rss>

