<?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 reformat the table output? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-reformat-the-table-output/m-p/447951#M126953</link>
    <description>&lt;P&gt;are a_snake a_cat, etc field names or values? I feel like you may be generalizing too much and something is getting lost.  Your table command treats them like fields but then your example table has them like values.&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 19:51:02 GMT</pubDate>
    <dc:creator>kmaron</dc:creator>
    <dc:date>2020-09-29T19:51:02Z</dc:date>
    <item>
      <title>How to reformat the table output?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-reformat-the-table-output/m-p/447948#M126950</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;| base query with some eval commands 
| table a_snake, a_cat, a_dog, b_snake, b_cat, b_dog, c_snake, c_cat, c_dog
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;However, I want the values to be arranged like this with the column header as SNAKE, CAT, DOG&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;SNAKE    CAT    DOG
a_snake  a_cat  a_dog
b_snake  b_cat  b_dog
c_snake   c_cat  c_dog
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 06 Jun 2018 13:15:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-reformat-the-table-output/m-p/447948#M126950</guid>
      <dc:creator>zacksoft</dc:creator>
      <dc:date>2018-06-06T13:15:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to reformat the table output?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-reformat-the-table-output/m-p/447949#M126951</link>
      <description>&lt;P&gt;What do your events actually look like?&lt;/P&gt;

&lt;P&gt;And what output does your existing &lt;CODE&gt;table&lt;/CODE&gt; command show?&lt;/P&gt;

&lt;P&gt;(It might actually be useful to know what those eval commands are, but they may not be important)&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jun 2018 14:02:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-reformat-the-table-output/m-p/447949#M126951</guid>
      <dc:creator>Richfez</dc:creator>
      <dc:date>2018-06-06T14:02:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to reformat the table output?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-reformat-the-table-output/m-p/447950#M126952</link>
      <description>&lt;P&gt;The existing output is,&lt;BR /&gt;
There is One row and Nine columns&lt;BR /&gt;
And the column headers are left to right specified as a_snake a_cat a_dog b_snake b_cat b_dog .....&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 19:55:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-reformat-the-table-output/m-p/447950#M126952</guid>
      <dc:creator>zacksoft</dc:creator>
      <dc:date>2020-09-29T19:55:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to reformat the table output?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-reformat-the-table-output/m-p/447951#M126953</link>
      <description>&lt;P&gt;are a_snake a_cat, etc field names or values? I feel like you may be generalizing too much and something is getting lost.  Your table command treats them like fields but then your example table has them like values.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 19:51:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-reformat-the-table-output/m-p/447951#M126953</guid>
      <dc:creator>kmaron</dc:creator>
      <dc:date>2020-09-29T19:51:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to reformat the table output?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-reformat-the-table-output/m-p/447952#M126954</link>
      <description>&lt;P&gt;Using what you provided this is what I have&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults 
 | eval animal = "a_cat a_snake a_dog b_cat b_snake b_dog c_cat c_snake c_dog" 
 | makemv animal
 | mvexpand animal
 | rex field=animal "^(?&amp;lt;Letter&amp;gt;.*?)_(?&amp;lt;Type&amp;gt;.*?)$"
 | eval Type = upper(Type)
 | chart values(animal) over Letter by Type
 | fields - Letter
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 06 Jun 2018 16:58:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-reformat-the-table-output/m-p/447952#M126954</guid>
      <dc:creator>kmaron</dc:creator>
      <dc:date>2018-06-06T16:58:55Z</dc:date>
    </item>
  </channel>
</rss>

