<?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 get Stats from Search and Average? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-Stats-from-Search-and-Average/m-p/453731#M128391</link>
    <description>&lt;P&gt;This is probably quite simple and I am missing something..&lt;BR /&gt;
i am using this search. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=sxxx sourcetype=sxxx host=xyz  source="C:\\mydata" |Dedup _time|table _time, host, username, SimulatorProcess, ProcessTime
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I have the following search result&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;08/19/2019 16:44:34,136Z INFO  user[XXXX] tid[ 1] [(null)]: ProcessSimulationResults took: 1.1204099 seconds
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;i did a field extraction to get the username, what the process is and the time.  I would like to put these in a table and average them out.  Search has 4 results but when i put into a table i get many null results. &lt;BR /&gt;
what is the best way to display and average these out. Would also like to have a single display of the averages over day/week/month.&lt;/P&gt;

&lt;P&gt;thanks!&lt;/P&gt;</description>
    <pubDate>Mon, 19 Aug 2019 19:14:51 GMT</pubDate>
    <dc:creator>jpsquires</dc:creator>
    <dc:date>2019-08-19T19:14:51Z</dc:date>
    <item>
      <title>How to get Stats from Search and Average?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-Stats-from-Search-and-Average/m-p/453731#M128391</link>
      <description>&lt;P&gt;This is probably quite simple and I am missing something..&lt;BR /&gt;
i am using this search. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=sxxx sourcetype=sxxx host=xyz  source="C:\\mydata" |Dedup _time|table _time, host, username, SimulatorProcess, ProcessTime
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I have the following search result&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;08/19/2019 16:44:34,136Z INFO  user[XXXX] tid[ 1] [(null)]: ProcessSimulationResults took: 1.1204099 seconds
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;i did a field extraction to get the username, what the process is and the time.  I would like to put these in a table and average them out.  Search has 4 results but when i put into a table i get many null results. &lt;BR /&gt;
what is the best way to display and average these out. Would also like to have a single display of the averages over day/week/month.&lt;/P&gt;

&lt;P&gt;thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2019 19:14:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-Stats-from-Search-and-Average/m-p/453731#M128391</guid>
      <dc:creator>jpsquires</dc:creator>
      <dc:date>2019-08-19T19:14:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Stats from Search and Average?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-Stats-from-Search-and-Average/m-p/453732#M128392</link>
      <description>&lt;P&gt;Stats count by _Time, host, username, SimulatorProcess, ProcessTime gives me a good chart. Now to average&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2019 19:19:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-Stats-from-Search-and-Average/m-p/453732#M128392</guid>
      <dc:creator>jpsquires</dc:creator>
      <dc:date>2019-08-19T19:19:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Stats from Search and Average?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-Stats-from-Search-and-Average/m-p/453733#M128393</link>
      <description>&lt;P&gt;Here's how to get the average processTime by user, host, and SimulatorProcess:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=ixxx sourcetype=sxxx host=xyz source=xxx 
|  stats  avg(ProcessTime) as avgProcessTime  by host, username, SimulatorProcess
| table host, username, SimulatorProcess, avgProcessTime
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You can also do this over time:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=ixxx sourcetype=sxxx host=xyz source=xxx 
|  timechart avg(ProcessTime) as avgProcessTime, values(username) as users, values(host) as hosts  by SimulatorProcess
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 19 Aug 2019 19:43:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-Stats-from-Search-and-Average/m-p/453733#M128393</guid>
      <dc:creator>solarboyz1</dc:creator>
      <dc:date>2019-08-19T19:43:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Stats from Search and Average?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-Stats-from-Search-and-Average/m-p/453734#M128394</link>
      <description>&lt;P&gt;Excellent.. Thank you for the assist.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2019 14:23:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-Stats-from-Search-and-Average/m-p/453734#M128394</guid>
      <dc:creator>jpsquires</dc:creator>
      <dc:date>2019-08-20T14:23:02Z</dc:date>
    </item>
  </channel>
</rss>

