<?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 Display query result in text format,rather that a graph(chart or timechart)?) in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-Display-query-result-in-text-format-rather-that-a-graph/m-p/21230#M3464</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;Thanks in advance.&lt;/P&gt;

&lt;P&gt;I have one pie chart graph in a view having sum of power usage as per host.I want to display total power usage just below the pie chart. I want to display in text format. As of now, i am displaying in table format with following query :&lt;/P&gt;

&lt;P&gt;index="test" sourcetype="test_usage" | chart sum(Power_consumption) as Total(W) &lt;/P&gt;

&lt;P&gt;How could i display the result of this query in text format?&lt;/P&gt;

&lt;P&gt;Geetanjali&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 09:38:20 GMT</pubDate>
    <dc:creator>geetanjali</dc:creator>
    <dc:date>2020-09-28T09:38:20Z</dc:date>
    <item>
      <title>How to Display query result in text format,rather that a graph(chart or timechart)?)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-Display-query-result-in-text-format-rather-that-a-graph/m-p/21230#M3464</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;Thanks in advance.&lt;/P&gt;

&lt;P&gt;I have one pie chart graph in a view having sum of power usage as per host.I want to display total power usage just below the pie chart. I want to display in text format. As of now, i am displaying in table format with following query :&lt;/P&gt;

&lt;P&gt;index="test" sourcetype="test_usage" | chart sum(Power_consumption) as Total(W) &lt;/P&gt;

&lt;P&gt;How could i display the result of this query in text format?&lt;/P&gt;

&lt;P&gt;Geetanjali&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 09:38:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-Display-query-result-in-text-format-rather-that-a-graph/m-p/21230#M3464</guid>
      <dc:creator>geetanjali</dc:creator>
      <dc:date>2020-09-28T09:38:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to Display query result in text format,rather that a graph(chart or timechart)?)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-Display-query-result-in-text-format-rather-that-a-graph/m-p/21231#M3465</link>
      <description>&lt;P&gt;How about using a Single Value element?  You could, for extra credit :), also sprinkle in the rangemap command to have the Single Value show a green/yellow/red state based on the total consumption, if desired:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="test" sourcetype="test_usage" | stats sum(Power_consumption) as total_pc | rangemap field=total_pc low=0-20 elevated=21-100 default=severe
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Outside of that, I think you'd be hacking advanced xml to put a straight text value in there (but I'm not completely confident of that either).&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jun 2011 12:47:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-Display-query-result-in-text-format-rather-that-a-graph/m-p/21231#M3465</guid>
      <dc:creator>mw</dc:creator>
      <dc:date>2011-06-02T12:47:00Z</dc:date>
    </item>
  </channel>
</rss>

