<?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 Timechart after Stats in Splunk ITSI</title>
    <link>https://community.splunk.com/t5/Splunk-ITSI/Timechart-after-Stats/m-p/510066#M2086</link>
    <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;I am trying to create a timechart showing distribution of accesses in last 24h filtered through stats command. More precisely I am sorting services with low accesses number but higher than 2 and considerating only 4 less accessed services using this:&lt;/P&gt;&lt;P&gt;index =&lt;BR /&gt;|bin _time span=1h&lt;BR /&gt;| stats count by Service _time&lt;BR /&gt;| where count&amp;gt;2&lt;BR /&gt;| sort 4 count&lt;BR /&gt;| rename count as "Access number"&lt;BR /&gt;| timechart span=1h count by Service&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Results would show services with number of accesses of 1 or 2 in a day despite the where clause. Thank you in advance for your help.&lt;/P&gt;</description>
    <pubDate>Mon, 20 Jul 2020 17:49:18 GMT</pubDate>
    <dc:creator>andy</dc:creator>
    <dc:date>2020-07-20T17:49:18Z</dc:date>
    <item>
      <title>Timechart after Stats</title>
      <link>https://community.splunk.com/t5/Splunk-ITSI/Timechart-after-Stats/m-p/510066#M2086</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;I am trying to create a timechart showing distribution of accesses in last 24h filtered through stats command. More precisely I am sorting services with low accesses number but higher than 2 and considerating only 4 less accessed services using this:&lt;/P&gt;&lt;P&gt;index =&lt;BR /&gt;|bin _time span=1h&lt;BR /&gt;| stats count by Service _time&lt;BR /&gt;| where count&amp;gt;2&lt;BR /&gt;| sort 4 count&lt;BR /&gt;| rename count as "Access number"&lt;BR /&gt;| timechart span=1h count by Service&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Results would show services with number of accesses of 1 or 2 in a day despite the where clause. Thank you in advance for your help.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jul 2020 17:49:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-ITSI/Timechart-after-Stats/m-p/510066#M2086</guid>
      <dc:creator>andy</dc:creator>
      <dc:date>2020-07-20T17:49:18Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart after Stats</title>
      <link>https://community.splunk.com/t5/Splunk-ITSI/Timechart-after-Stats/m-p/510073#M2087</link>
      <description>&lt;P&gt;The &lt;FONT face="courier new,courier"&gt;timechart&lt;/FONT&gt; command requires events to be in time order, but the query uses &lt;FONT face="courier new,courier"&gt;sort&lt;/FONT&gt; to put them in a different order.&amp;nbsp; Try removing the sort.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jul 2020 17:06:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-ITSI/Timechart-after-Stats/m-p/510073#M2087</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-07-20T17:06:03Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart after Stats</title>
      <link>https://community.splunk.com/t5/Splunk-ITSI/Timechart-after-Stats/m-p/510084#M2090</link>
      <description>&lt;P&gt;But if I remove the sort how can I choose the 4 less accessed services?&lt;/P&gt;&lt;P&gt;This search gives me a list of data :&lt;/P&gt;&lt;P&gt;| stats count by Service _time&lt;BR /&gt;| where count&amp;gt;2&lt;BR /&gt;| sort 4 count&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;for instance&amp;nbsp; in last 24h&lt;/P&gt;&lt;P&gt;Service&amp;nbsp; &amp;nbsp; &amp;nbsp;|&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Accesses&lt;BR /&gt;A&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 3&lt;/P&gt;&lt;P&gt;B&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 5&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I reproduce a chart that would show me how this services are distributed&amp;nbsp; hour per hour in last 24h?&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jul 2020 18:04:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-ITSI/Timechart-after-Stats/m-p/510084#M2090</guid>
      <dc:creator>andy</dc:creator>
      <dc:date>2020-07-20T18:04:16Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart after Stats</title>
      <link>https://community.splunk.com/t5/Splunk-ITSI/Timechart-after-Stats/m-p/510095#M2091</link>
      <description>&lt;P&gt;Re-sort the results by time.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index =
| bin _time span=1h
| stats count by Service _time
| where count&amp;gt;2
| sort 4 count
| sort _time
| timechart span=1h count by Service&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jul 2020 18:51:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-ITSI/Timechart-after-Stats/m-p/510095#M2091</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-07-20T18:51:49Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart after Stats</title>
      <link>https://community.splunk.com/t5/Splunk-ITSI/Timechart-after-Stats/m-p/510113#M2092</link>
      <description>&lt;P&gt;Don't know why but in this way it only shows 1 service which reached 4 accesses in 1 hour, instead&amp;nbsp;I would like to have a hour by hour timechart of the last 4 services by sum of daily events and having sum &amp;gt; 2 .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jul 2020 20:06:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-ITSI/Timechart-after-Stats/m-p/510113#M2092</guid>
      <dc:creator>andy</dc:creator>
      <dc:date>2020-07-20T20:06:17Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart after Stats</title>
      <link>https://community.splunk.com/t5/Splunk-ITSI/Timechart-after-Stats/m-p/510126#M2093</link>
      <description>&lt;P&gt;Something like this?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="richgalloway_0-1595280763615.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/9796iABFF374BC6DD7A28/image-size/medium?v=v2&amp;amp;px=400" role="button" title="richgalloway_0-1595280763615.png" alt="richgalloway_0-1595280763615.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Here's the search that produced it.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| gentimes start=07/19/2020 end=07/20/2020 increment=10m | eval Service="Service_".random()%10, _time=starttime
``` Above just sets up test data```
| bin _time span=1h
| stats count by Service _time
| where count&amp;gt;2
| sort 4 count
| timechart span=1h count by Service&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 20 Jul 2020 21:33:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-ITSI/Timechart-after-Stats/m-p/510126#M2093</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-07-20T21:33:26Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart after Stats</title>
      <link>https://community.splunk.com/t5/Splunk-ITSI/Timechart-after-Stats/m-p/510177#M2094</link>
      <description>&lt;P&gt;Yeah something like this is what I'm looking for, but first I need to consider only 4 services with lowest daily count&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="andy_0-1595317390378.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/9800iCBF7E385C95F7E32/image-size/medium?v=v2&amp;amp;px=400" role="button" title="andy_0-1595317390378.png" alt="andy_0-1595317390378.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jul 2020 07:46:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-ITSI/Timechart-after-Stats/m-p/510177#M2094</guid>
      <dc:creator>andy</dc:creator>
      <dc:date>2020-07-21T07:46:23Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart after Stats</title>
      <link>https://community.splunk.com/t5/Splunk-ITSI/Timechart-after-Stats/m-p/510220#M2095</link>
      <description>The query I gave you shows only 4 services.</description>
      <pubDate>Tue, 21 Jul 2020 12:44:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-ITSI/Timechart-after-Stats/m-p/510220#M2095</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-07-21T12:44:00Z</dc:date>
    </item>
  </channel>
</rss>

