<?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: Event count from 2 dates in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Event-count-from-2-dates/m-p/384164#M112202</link>
    <description>&lt;P&gt;You have not shown us what the events look like (where &lt;CODE&gt;abctime&lt;/CODE&gt; is).&lt;/P&gt;</description>
    <pubDate>Sun, 31 Mar 2019 17:22:07 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2019-03-31T17:22:07Z</dc:date>
    <item>
      <title>Event count from 2 dates</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Event-count-from-2-dates/m-p/384162#M112200</link>
      <description>&lt;P&gt;How do we get event count from 2 dates. Something like this -&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;              2/11/18            3/11/18           4/11/18
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Event1         12                      15                    10&lt;BR /&gt;
Event2         50                       60                   78&lt;/P&gt;

&lt;P&gt;index =ind_prod...|eval abctime=strptime(abctime, "%Y-%m-%d") | search abctime&amp;gt;=$t.earliest$ AND abctime=$t.latest$&lt;/P&gt;

&lt;P&gt;I tried above query, but it is not working&lt;/P&gt;</description>
      <pubDate>Fri, 29 Mar 2019 03:33:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Event-count-from-2-dates/m-p/384162#M112200</guid>
      <dc:creator>ataunk</dc:creator>
      <dc:date>2019-03-29T03:33:31Z</dc:date>
    </item>
    <item>
      <title>Re: Event count from 2 dates</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Event-count-from-2-dates/m-p/384163#M112201</link>
      <description>&lt;P&gt;@ataunk ,&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index =ind_prod|eval date=strftime(_time,"%Y-%m-%d")|chart count over event_name by date
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;where &lt;CODE&gt;event_name&lt;/CODE&gt; is field name of your events&lt;/P&gt;</description>
      <pubDate>Sat, 30 Mar 2019 09:16:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Event-count-from-2-dates/m-p/384163#M112201</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2019-03-30T09:16:18Z</dc:date>
    </item>
    <item>
      <title>Re: Event count from 2 dates</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Event-count-from-2-dates/m-p/384164#M112202</link>
      <description>&lt;P&gt;You have not shown us what the events look like (where &lt;CODE&gt;abctime&lt;/CODE&gt; is).&lt;/P&gt;</description>
      <pubDate>Sun, 31 Mar 2019 17:22:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Event-count-from-2-dates/m-p/384164#M112202</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-03-31T17:22:07Z</dc:date>
    </item>
    <item>
      <title>Re: Event count from 2 dates</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Event-count-from-2-dates/m-p/384165#M112203</link>
      <description>&lt;P&gt;Assuming that your conversion of &lt;CODE&gt;abctime&lt;/CODE&gt; is correct (A BIG ASSUMPTION) and your other field is called &lt;CODE&gt;Event&lt;/CODE&gt; (a guess),  try this (you were missing a &lt;CODE&gt;&amp;lt;&lt;/CODE&gt; for one thing):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index =ind_prod...
| eval abctime=strptime(abctime, "%Y-%m-%d")
| search abctime&amp;gt;=$t.earliest$ AND abctime&amp;lt;=$t.latest$
| bin _time span=1d
| eval _time = strftime(_time, "%m/%d/%Y")
| chart count BY event _time
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 31 Mar 2019 17:28:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Event-count-from-2-dates/m-p/384165#M112203</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-03-31T17:28:00Z</dc:date>
    </item>
    <item>
      <title>Re: Event count from 2 dates</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Event-count-from-2-dates/m-p/384166#M112204</link>
      <description>&lt;P&gt;instead of abctime we can take _time&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2019 18:13:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Event-count-from-2-dates/m-p/384166#M112204</guid>
      <dc:creator>ataunk</dc:creator>
      <dc:date>2019-07-31T18:13:11Z</dc:date>
    </item>
    <item>
      <title>Re: Event count from 2 dates</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Event-count-from-2-dates/m-p/384167#M112205</link>
      <description>&lt;P&gt;This will give for all the days selected in time range, I want for specific 2 date, something like this&lt;/P&gt;

&lt;P&gt;&amp;nbsp;                           31-Jul 24-Jul&lt;BR /&gt;&lt;BR /&gt;
SessionCount    100000  150000&lt;BR /&gt;&lt;BR /&gt;
X Count                   2000  2200&lt;BR /&gt;&lt;BR /&gt;
Y Count             100         200         &lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2019 18:15:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Event-count-from-2-dates/m-p/384167#M112205</guid>
      <dc:creator>ataunk</dc:creator>
      <dc:date>2019-07-31T18:15:25Z</dc:date>
    </item>
    <item>
      <title>Re: Event count from 2 dates</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Event-count-from-2-dates/m-p/384168#M112206</link>
      <description>&lt;P&gt;I want count for 2 specific date, something like this :&lt;BR /&gt;
  31-Jul 24-Jul &lt;BR /&gt;
SessionCount 100000 150000 &lt;BR /&gt;
X Count 2000 2200 &lt;BR /&gt;
Y Count 100 200 &lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2019 18:16:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Event-count-from-2-dates/m-p/384168#M112206</guid>
      <dc:creator>ataunk</dc:creator>
      <dc:date>2019-07-31T18:16:11Z</dc:date>
    </item>
    <item>
      <title>Re: Event count from 2 dates</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Event-count-from-2-dates/m-p/384169#M112207</link>
      <description>&lt;P&gt;You have said that several times.  Show us a few RAW EVENTS, note what fields are where inside of tohse events, and then show us a mockup of the final output that would be generated from JUST those events.&lt;/P&gt;</description>
      <pubDate>Sat, 23 Nov 2019 20:49:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Event-count-from-2-dates/m-p/384169#M112207</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-11-23T20:49:08Z</dc:date>
    </item>
    <item>
      <title>Re: Event count from 2 dates</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Event-count-from-2-dates/m-p/384170#M112208</link>
      <description>&lt;P&gt;If you need 2 specific dates, then just set your &lt;CODE&gt;Time picker&lt;/CODE&gt; to cover that timespan.&lt;/P&gt;</description>
      <pubDate>Sat, 23 Nov 2019 20:52:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Event-count-from-2-dates/m-p/384170#M112208</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-11-23T20:52:10Z</dc:date>
    </item>
  </channel>
</rss>

