<?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 make a table with key and value columns and change a field's name? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-make-a-table-with-key-and-value-columns-and-change-a-field-s/m-p/176694#M50758</link>
    <description>&lt;P&gt;If you want to add a line with a fake events do&lt;BR /&gt;
`&lt;MYSEACH&gt; | table key value | append [ |stats count | eval key="someName" | eval value="someValue" | table key value ] | sort -key&lt;/MYSEACH&gt;&lt;/P&gt;

&lt;P&gt;if this is just a presentation request.&lt;BR /&gt;
try&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;&amp;lt;mysearch&amp;gt; | stats values(myfield) by myotherfield&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;or it you already have your data , try to rotate it.&lt;BR /&gt;
&lt;CODE&gt;&amp;lt;mysearch&amp;gt; | table key value | transpose&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.1.3/SearchReference/Transpose"&gt;http://docs.splunk.com/Documentation/Splunk/6.1.3/SearchReference/Transpose&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 09 Aug 2014 00:20:28 GMT</pubDate>
    <dc:creator>mataharry</dc:creator>
    <dc:date>2014-08-09T00:20:28Z</dc:date>
    <item>
      <title>How make a table with key and value columns and change a field's name?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-make-a-table-with-key-and-value-columns-and-change-a-field-s/m-p/176693#M50757</link>
      <description>&lt;P&gt;The table we want to make looks something like this:&lt;/P&gt;

&lt;P&gt;----------   key       |  value --------&lt;/P&gt;

&lt;P&gt;someName | someValue&lt;/P&gt;

&lt;P&gt;someName1 | someValue1&lt;/P&gt;

&lt;P&gt;where someName is a field name and someValue is a value of the field we got from our log file. &lt;BR /&gt;
We're not sure if there is a way to insert a someName text into the table to display. Is this possible?&lt;/P&gt;</description>
      <pubDate>Fri, 08 Aug 2014 23:30:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-make-a-table-with-key-and-value-columns-and-change-a-field-s/m-p/176693#M50757</guid>
      <dc:creator>momori</dc:creator>
      <dc:date>2014-08-08T23:30:30Z</dc:date>
    </item>
    <item>
      <title>Re: How make a table with key and value columns and change a field's name?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-make-a-table-with-key-and-value-columns-and-change-a-field-s/m-p/176694#M50758</link>
      <description>&lt;P&gt;If you want to add a line with a fake events do&lt;BR /&gt;
`&lt;MYSEACH&gt; | table key value | append [ |stats count | eval key="someName" | eval value="someValue" | table key value ] | sort -key&lt;/MYSEACH&gt;&lt;/P&gt;

&lt;P&gt;if this is just a presentation request.&lt;BR /&gt;
try&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;&amp;lt;mysearch&amp;gt; | stats values(myfield) by myotherfield&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;or it you already have your data , try to rotate it.&lt;BR /&gt;
&lt;CODE&gt;&amp;lt;mysearch&amp;gt; | table key value | transpose&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.1.3/SearchReference/Transpose"&gt;http://docs.splunk.com/Documentation/Splunk/6.1.3/SearchReference/Transpose&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 09 Aug 2014 00:20:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-make-a-table-with-key-and-value-columns-and-change-a-field-s/m-p/176694#M50758</guid>
      <dc:creator>mataharry</dc:creator>
      <dc:date>2014-08-09T00:20:28Z</dc:date>
    </item>
    <item>
      <title>Re: How make a table with key and value columns and change a field's name?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-make-a-table-with-key-and-value-columns-and-change-a-field-s/m-p/176695#M50759</link>
      <description>&lt;P&gt;Hi @momori&lt;/P&gt;

&lt;P&gt;If someName is already a field name in your events from your search, you might find the rename command useful. Have you tried this option yet?&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.1.3/SearchReference/Rename"&gt;http://docs.splunk.com/Documentation/Splunk/6.1.3/SearchReference/Rename&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Aug 2014 17:57:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-make-a-table-with-key-and-value-columns-and-change-a-field-s/m-p/176695#M50759</guid>
      <dc:creator>ppablo</dc:creator>
      <dc:date>2014-08-11T17:57:57Z</dc:date>
    </item>
    <item>
      <title>Re: How make a table with key and value columns and change a field's name?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-make-a-table-with-key-and-value-columns-and-change-a-field-s/m-p/176696#M50760</link>
      <description>&lt;P&gt;If my understanding is correct, are you trying to get all the field names and corresponding value(s) from your log? If yes, you can use command called "fieldsummary" which will give you list of fields in your log. Check this out&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.0/SearchReference/Fieldsummary"&gt;http://docs.splunk.com/Documentation/Splunk/6.0/SearchReference/Fieldsummary&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Aug 2014 18:21:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-make-a-table-with-key-and-value-columns-and-change-a-field-s/m-p/176696#M50760</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-08-11T18:21:46Z</dc:date>
    </item>
    <item>
      <title>Re: How make a table with key and value columns and change a field's name?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-make-a-table-with-key-and-value-columns-and-change-a-field-s/m-p/176697#M50761</link>
      <description>&lt;P&gt;transpose worked. thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 11 Aug 2014 20:42:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-make-a-table-with-key-and-value-columns-and-change-a-field-s/m-p/176697#M50761</guid>
      <dc:creator>momori</dc:creator>
      <dc:date>2014-08-11T20:42:52Z</dc:date>
    </item>
    <item>
      <title>Re: How make a table with key and value columns and change a field's name?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-make-a-table-with-key-and-value-columns-and-change-a-field-s/m-p/176698#M50762</link>
      <description>&lt;P&gt;using rename in conjunction with the tranpose from the above answer worked well. Thank you for your help&lt;/P&gt;</description>
      <pubDate>Mon, 11 Aug 2014 22:31:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-make-a-table-with-key-and-value-columns-and-change-a-field-s/m-p/176698#M50762</guid>
      <dc:creator>momori</dc:creator>
      <dc:date>2014-08-11T22:31:23Z</dc:date>
    </item>
    <item>
      <title>Re: How make a table with key and value columns and change a field's name?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-make-a-table-with-key-and-value-columns-and-change-a-field-s/m-p/176699#M50763</link>
      <description>&lt;P&gt;No problem @momori &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; glad our combined responses helped solve your issue!&lt;/P&gt;

&lt;P&gt;Patrick&lt;/P&gt;</description>
      <pubDate>Mon, 11 Aug 2014 22:35:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-make-a-table-with-key-and-value-columns-and-change-a-field-s/m-p/176699#M50763</guid>
      <dc:creator>ppablo</dc:creator>
      <dc:date>2014-08-11T22:35:56Z</dc:date>
    </item>
  </channel>
</rss>

