<?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: Issue with the AVG however min and max work fine. in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Issue-with-the-AVG-however-min-and-max-work-fine/m-p/510079#M142596</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;ensure that this field is numeric. You check if from left side panel, interesting fields and check if there is “#” or “a” before it. # means numeric and a means character. If it’s character then there could be a space before or after the number. This can solve e.g.&lt;/P&gt;&lt;P&gt;eval timetaken = tonumber(trim(timetaken))&lt;/P&gt;&lt;P&gt;r. Ismo&lt;/P&gt;</description>
    <pubDate>Mon, 20 Jul 2020 17:39:52 GMT</pubDate>
    <dc:creator>isoutamo</dc:creator>
    <dc:date>2020-07-20T17:39:52Z</dc:date>
    <item>
      <title>Issue with the AVG however min and max work fine.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Issue-with-the-AVG-however-min-and-max-work-fine/m-p/510077#M142595</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using the stats command however the AVG shows as being blank yet min and max works fine:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Index=index_ test source= “Test” host= “Testhost” |stats AVG(timetaken) as AVG&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;any help would be greatly appreciated &lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;.&lt;/P&gt;&lt;P&gt;thanks&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jul 2020 17:22:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Issue-with-the-AVG-however-min-and-max-work-fine/m-p/510077#M142595</guid>
      <dc:creator>joe06031990</dc:creator>
      <dc:date>2020-07-20T17:22:46Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with the AVG however min and max work fine.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Issue-with-the-AVG-however-min-and-max-work-fine/m-p/510079#M142596</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;ensure that this field is numeric. You check if from left side panel, interesting fields and check if there is “#” or “a” before it. # means numeric and a means character. If it’s character then there could be a space before or after the number. This can solve e.g.&lt;/P&gt;&lt;P&gt;eval timetaken = tonumber(trim(timetaken))&lt;/P&gt;&lt;P&gt;r. Ismo&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jul 2020 17:39:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Issue-with-the-AVG-however-min-and-max-work-fine/m-p/510079#M142596</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2020-07-20T17:39:52Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with the AVG however min and max work fine.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Issue-with-the-AVG-however-min-and-max-work-fine/m-p/510090#M142620</link>
      <description>&lt;P&gt;Hi, the field is a character and has hours,minutes, seconds and milliseconds. I have tried your eval however still get the same results.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jul 2020 18:31:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Issue-with-the-AVG-however-min-and-max-work-fine/m-p/510090#M142620</guid>
      <dc:creator>joe06031990</dc:creator>
      <dc:date>2020-07-20T18:31:52Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with the AVG however min and max work fine.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Issue-with-the-AVG-however-min-and-max-work-fine/m-p/510117#M142667</link>
      <description>&lt;P&gt;As the avg works only for numbers you must first convert your time field to numeric. You should use strptime with correct format string to numeric then calculate avg for it and in the last step you could convert it back to the time string with strftime function with correct format string. More about those functions&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.0.5/SearchReference/DateandTimeFunctions" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/8.0.5/SearchReference/DateandTimeFunctions&lt;/A&gt;&lt;/P&gt;&lt;P&gt;r. Ismo&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jul 2020 20:38:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Issue-with-the-AVG-however-min-and-max-work-fine/m-p/510117#M142667</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2020-07-20T20:38:26Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with the AVG however min and max work fine.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Issue-with-the-AVG-however-min-and-max-work-fine/m-p/510187#M142761</link>
      <description>&lt;P&gt;Still having a bit of trouble with this the format is 00:00:00:000000?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jul 2020 09:01:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Issue-with-the-AVG-however-min-and-max-work-fine/m-p/510187#M142761</guid>
      <dc:creator>joe06031990</dc:creator>
      <dc:date>2020-07-21T09:01:07Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with the AVG however min and max work fine.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Issue-with-the-AVG-however-min-and-max-work-fine/m-p/510205#M142769</link>
      <description>&lt;P&gt;Can you give some sample events?&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jul 2020 11:33:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Issue-with-the-AVG-however-min-and-max-work-fine/m-p/510205#M142769</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2020-07-21T11:33:54Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with the AVG however min and max work fine.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Issue-with-the-AVG-however-min-and-max-work-fine/m-p/510212#M142773</link>
      <description>&lt;P&gt;You could convert this to epoch with next example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="java"&gt;| makeresults
| eval foo = "00:00:00:0000000"
| eval bar = strptime (foo, "%H:%M:%S:%7Q")
| eval foobar = strftime (bar, "%H:%M:%S:%7Q")
| table foo bar foobar&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jul 2020 13:00:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Issue-with-the-AVG-however-min-and-max-work-fine/m-p/510212#M142773</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2020-07-21T13:00:25Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with the AVG however min and max work fine.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Issue-with-the-AVG-however-min-and-max-work-fine/m-p/510225#M142778</link>
      <description>&lt;P&gt;The field I need to find the adverge for is TimeTaken=00:00:00:0000000.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jul 2020 12:57:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Issue-with-the-AVG-however-min-and-max-work-fine/m-p/510225#M142778</guid>
      <dc:creator>joe06031990</dc:creator>
      <dc:date>2020-07-21T12:57:00Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with the AVG however min and max work fine.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Issue-with-the-AVG-however-min-and-max-work-fine/m-p/510226#M142779</link>
      <description>&lt;P&gt;Updated my previous example with change . -&amp;gt; : Did it work now?&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jul 2020 13:01:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Issue-with-the-AVG-however-min-and-max-work-fine/m-p/510226#M142779</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2020-07-21T13:01:35Z</dc:date>
    </item>
  </channel>
</rss>

