<?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 do you display AVG, MIN, and MAX as row headers by Service? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-display-AVG-MIN-and-MAX-as-row-headers-by-Service/m-p/458018#M129350</link>
    <description>&lt;P&gt;@cmcdole try the following with &lt;CODE&gt;transpose&lt;/CODE&gt; command with limit=0 to invert all rows as columns and columns as rows:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;{basesearch} 
| stats avg(transTime) as "Avg", min(transTime) as "Min", max(transTime) as "Max" by JBossService
| transpose 0 header_field=JBossService column_name=JBossService
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Following is a run anywhere search based on Splunk's _internal index:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal sourcetype=splunkd log_level!=INFO
| stats avg(date_second) as Avg min(date_second) as Min max(date_second) as Max by component
| transpose 0 header_field=component column_name=component
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 28 Mar 2019 18:46:12 GMT</pubDate>
    <dc:creator>niketn</dc:creator>
    <dc:date>2019-03-28T18:46:12Z</dc:date>
    <item>
      <title>How do you display AVG, MIN, and MAX as row headers by Service?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-display-AVG-MIN-and-MAX-as-row-headers-by-Service/m-p/458016#M129348</link>
      <description>&lt;P&gt;I have several services that I need to calculate Avg/min/max for.  &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;{basesearch} | stats avg(transTime) as "Avg", min(transTime) as "Min", max(transTime) as "Max", values(JBossService) as JBoss_Service by JBossService
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I need the display to look something like this.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;         Service1|Service2|Service3|Service4
Avg  ____###__|__###__|__##____|__##____
Min  ____###__|__###__|__##____|__##____
Max  ____###__|__###__|__##____|__##____
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Please help!!  Thanks &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Mar 2019 15:59:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-display-AVG-MIN-and-MAX-as-row-headers-by-Service/m-p/458016#M129348</guid>
      <dc:creator>cmcdole</dc:creator>
      <dc:date>2019-03-28T15:59:54Z</dc:date>
    </item>
    <item>
      <title>Re: How do you display AVG, MIN, and MAX as row headers by Service?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-display-AVG-MIN-and-MAX-as-row-headers-by-Service/m-p/458017#M129349</link>
      <description>&lt;P&gt;Try using the chart function:&lt;/P&gt;

&lt;P&gt;You can specify which field is tracked on the x-axis of the chart. The x-axis variable is specified with a by field and is discretized if necessary. Charted fields are converted to numerical quantities if necessary. &lt;BR /&gt;
(&lt;A href="https://docs.splunk.com/Documentation/Splunk/7.2.4/SearchReference/Chart"&gt;https://docs.splunk.com/Documentation/Splunk/7.2.4/SearchReference/Chart&lt;/A&gt;)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | chart avg(transTime) as "Avg", min(transTime) as "Min", max(transTime) as "Max", values(JBossService) as JBoss_Service by JBossService
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 28 Mar 2019 16:46:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-display-AVG-MIN-and-MAX-as-row-headers-by-Service/m-p/458017#M129349</guid>
      <dc:creator>solarboyz1</dc:creator>
      <dc:date>2019-03-28T16:46:57Z</dc:date>
    </item>
    <item>
      <title>Re: How do you display AVG, MIN, and MAX as row headers by Service?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-display-AVG-MIN-and-MAX-as-row-headers-by-Service/m-p/458018#M129350</link>
      <description>&lt;P&gt;@cmcdole try the following with &lt;CODE&gt;transpose&lt;/CODE&gt; command with limit=0 to invert all rows as columns and columns as rows:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;{basesearch} 
| stats avg(transTime) as "Avg", min(transTime) as "Min", max(transTime) as "Max" by JBossService
| transpose 0 header_field=JBossService column_name=JBossService
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Following is a run anywhere search based on Splunk's _internal index:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal sourcetype=splunkd log_level!=INFO
| stats avg(date_second) as Avg min(date_second) as Min max(date_second) as Max by component
| transpose 0 header_field=component column_name=component
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 28 Mar 2019 18:46:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-display-AVG-MIN-and-MAX-as-row-headers-by-Service/m-p/458018#M129350</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2019-03-28T18:46:12Z</dc:date>
    </item>
    <item>
      <title>Re: How do you display AVG, MIN, and MAX as row headers by Service?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-display-AVG-MIN-and-MAX-as-row-headers-by-Service/m-p/458019#M129351</link>
      <description>&lt;P&gt;Have a look to the &lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Untable"&gt;untable&lt;/A&gt; command. That might be a good solution.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Mar 2019 19:45:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-display-AVG-MIN-and-MAX-as-row-headers-by-Service/m-p/458019#M129351</guid>
      <dc:creator>isachse</dc:creator>
      <dc:date>2019-03-28T19:45:28Z</dc:date>
    </item>
    <item>
      <title>Re: How do you display AVG, MIN, and MAX as row headers by Service?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-display-AVG-MIN-and-MAX-as-row-headers-by-Service/m-p/458020#M129352</link>
      <description>&lt;P&gt;This worked perfectly!!  Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 29 Mar 2019 13:35:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-display-AVG-MIN-and-MAX-as-row-headers-by-Service/m-p/458020#M129352</guid>
      <dc:creator>cmcdole</dc:creator>
      <dc:date>2019-03-29T13:35:30Z</dc:date>
    </item>
  </channel>
</rss>

