<?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 eventcount - spanning over time in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/eventcount-spanning-over-time/m-p/408565#M117948</link>
    <description>&lt;P&gt;I'm attempting to write a search using eventcount command. I want to graph the number of events in my index/sourcetype per day over a span of 1 week. Can I use the eventcount for this? I'm not having much luck.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| eventcount summarize=false index=myindex sourcetype=mysourcetype 
| timechart span=1d count
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 23 May 2018 17:31:04 GMT</pubDate>
    <dc:creator>brdr</dc:creator>
    <dc:date>2018-05-23T17:31:04Z</dc:date>
    <item>
      <title>eventcount - spanning over time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/eventcount-spanning-over-time/m-p/408565#M117948</link>
      <description>&lt;P&gt;I'm attempting to write a search using eventcount command. I want to graph the number of events in my index/sourcetype per day over a span of 1 week. Can I use the eventcount for this? I'm not having much luck.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| eventcount summarize=false index=myindex sourcetype=mysourcetype 
| timechart span=1d count
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 23 May 2018 17:31:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/eventcount-spanning-over-time/m-p/408565#M117948</guid>
      <dc:creator>brdr</dc:creator>
      <dc:date>2018-05-23T17:31:04Z</dc:date>
    </item>
    <item>
      <title>Re: eventcount - spanning over time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/eventcount-spanning-over-time/m-p/408566#M117949</link>
      <description>&lt;P&gt;The eventcount command just gives the count of events in the specified index, without any timestamp information. Since your search includes only the metadata fields (index/sourcetype), you can use tstats commands like this, much faster than regular search that you'd normally do to chart something like that.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| tstats count WHERE index=myindex sourcetype=mysourcetype by _time span=1d 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You might have to add &lt;CODE&gt;| timechart span=1d sum(count) as count&lt;/CODE&gt; at the end if the chart doesn't look continuous.&lt;/P&gt;</description>
      <pubDate>Wed, 23 May 2018 18:22:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/eventcount-spanning-over-time/m-p/408566#M117949</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2018-05-23T18:22:29Z</dc:date>
    </item>
    <item>
      <title>Re: eventcount - spanning over time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/eventcount-spanning-over-time/m-p/408567#M117950</link>
      <description>&lt;P&gt;great. thank you.&lt;/P&gt;</description>
      <pubDate>Thu, 24 May 2018 17:12:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/eventcount-spanning-over-time/m-p/408567#M117950</guid>
      <dc:creator>brdr</dc:creator>
      <dc:date>2018-05-24T17:12:28Z</dc:date>
    </item>
  </channel>
</rss>

