<?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 create a timechart with min, max, average and count values? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-timechart-with-min-max-average-and-count-values/m-p/681224#M232790</link>
    <description>&lt;P&gt;I have written this query:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=index_name (log.event=res OR (log.event=tracing AND log.operationName=query_name)) | timechart span=1m avg(log.responseTime) as AvgTimeTaken, min(log.responseTime) as MinTimeTaken, max(log.responseTime) as MaxTimeTaken count by log.operationName&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My results look like this:&lt;/P&gt;&lt;TABLE border="1" width="66.30812336471703%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="10%" height="47px"&gt;_time&amp;nbsp;&amp;nbsp;&lt;/TD&gt;&lt;TD width="10%" height="47px"&gt;AvgTimeTaken: NULL&lt;/TD&gt;&lt;TD width="10%" height="47px"&gt;MaxTimeTaken: NULL&lt;/TD&gt;&lt;TD width="10%" height="47px"&gt;MinTimeTaken: NULL&lt;/TD&gt;&lt;TD width="10%" height="47px"&gt;count:query_name&lt;/TD&gt;&lt;TD width="10%" height="47px"&gt;count: NULL&lt;/TD&gt;&lt;TD width="10%" height="47px"&gt;&amp;nbsp; count:query_name&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="25px"&gt;2024-03-18 13:00:00&lt;/TD&gt;&lt;TD height="25px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD height="25px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD height="25px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD height="25px"&gt;0&lt;/TD&gt;&lt;TD height="25px"&gt;0&lt;/TD&gt;&lt;TD height="25px"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to understand what the :NULL means, and also how I can get the query to display all values.&amp;nbsp; Secondly, the count is getting displayed for query_name that is similar to the query_name in my query string. I wanted to get an exact match on the query_name. Can someone please help me with this?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Tue, 19 Mar 2024 18:39:35 GMT</pubDate>
    <dc:creator>shasha97</dc:creator>
    <dc:date>2024-03-19T18:39:35Z</dc:date>
    <item>
      <title>How to create a timechart with min, max, average and count values?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-timechart-with-min-max-average-and-count-values/m-p/681224#M232790</link>
      <description>&lt;P&gt;I have written this query:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=index_name (log.event=res OR (log.event=tracing AND log.operationName=query_name)) | timechart span=1m avg(log.responseTime) as AvgTimeTaken, min(log.responseTime) as MinTimeTaken, max(log.responseTime) as MaxTimeTaken count by log.operationName&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My results look like this:&lt;/P&gt;&lt;TABLE border="1" width="66.30812336471703%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="10%" height="47px"&gt;_time&amp;nbsp;&amp;nbsp;&lt;/TD&gt;&lt;TD width="10%" height="47px"&gt;AvgTimeTaken: NULL&lt;/TD&gt;&lt;TD width="10%" height="47px"&gt;MaxTimeTaken: NULL&lt;/TD&gt;&lt;TD width="10%" height="47px"&gt;MinTimeTaken: NULL&lt;/TD&gt;&lt;TD width="10%" height="47px"&gt;count:query_name&lt;/TD&gt;&lt;TD width="10%" height="47px"&gt;count: NULL&lt;/TD&gt;&lt;TD width="10%" height="47px"&gt;&amp;nbsp; count:query_name&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="25px"&gt;2024-03-18 13:00:00&lt;/TD&gt;&lt;TD height="25px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD height="25px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD height="25px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD height="25px"&gt;0&lt;/TD&gt;&lt;TD height="25px"&gt;0&lt;/TD&gt;&lt;TD height="25px"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to understand what the :NULL means, and also how I can get the query to display all values.&amp;nbsp; Secondly, the count is getting displayed for query_name that is similar to the query_name in my query string. I wanted to get an exact match on the query_name. Can someone please help me with this?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 19 Mar 2024 18:39:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-timechart-with-min-max-average-and-count-values/m-p/681224#M232790</guid>
      <dc:creator>shasha97</dc:creator>
      <dc:date>2024-03-19T18:39:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a timechart with min, max, average and count values?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-timechart-with-min-max-average-and-count-values/m-p/681270#M232807</link>
      <description>&lt;P&gt;If you specify multiple aggregation functions for timechart by some field, it creates separate data series for each aggregation function and the field value. In the case of :NULL these are stats for events where the field value is empty (I suspect that for log.event=res there is no field log.operation).&lt;/P&gt;</description>
      <pubDate>Tue, 19 Mar 2024 21:43:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-timechart-with-min-max-average-and-count-values/m-p/681270#M232807</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2024-03-19T21:43:01Z</dc:date>
    </item>
  </channel>
</rss>

