<?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 include date in request - stats count in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/include-date-in-request-stats-count/m-p/492381#M137346</link>
    <description>&lt;P&gt;Hello, &lt;BR /&gt;
I have a problem. &lt;BR /&gt;
This is my request, it works well. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    index=wineventlog EventID=4624 host=wipr625a OR host=wipr625b OR host=wipr626a OR host=wipr626b user!="DWM*"
   | stats count as "nombre de connexions" by user, host, name
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I would like to include the date in my results and that's how I modified my request, only with that request  my results are wrong, did I forget something?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index=wineventlog EventID=4624 host=wipr625a OR host=wipr625b OR host=wipr626a OR host=wipr626b user!="DWM*"
| eval date=strftime(_time, "%d/%m/%Y %H:%M")
| stats count as "nombre de connexions" by user, date, host, name
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;thanks !&lt;/P&gt;</description>
    <pubDate>Thu, 21 Nov 2019 18:08:11 GMT</pubDate>
    <dc:creator>numeroinconnu12</dc:creator>
    <dc:date>2019-11-21T18:08:11Z</dc:date>
    <item>
      <title>include date in request - stats count</title>
      <link>https://community.splunk.com/t5/Splunk-Search/include-date-in-request-stats-count/m-p/492381#M137346</link>
      <description>&lt;P&gt;Hello, &lt;BR /&gt;
I have a problem. &lt;BR /&gt;
This is my request, it works well. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    index=wineventlog EventID=4624 host=wipr625a OR host=wipr625b OR host=wipr626a OR host=wipr626b user!="DWM*"
   | stats count as "nombre de connexions" by user, host, name
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I would like to include the date in my results and that's how I modified my request, only with that request  my results are wrong, did I forget something?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index=wineventlog EventID=4624 host=wipr625a OR host=wipr625b OR host=wipr626a OR host=wipr626b user!="DWM*"
| eval date=strftime(_time, "%d/%m/%Y %H:%M")
| stats count as "nombre de connexions" by user, date, host, name
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;thanks !&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2019 18:08:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/include-date-in-request-stats-count/m-p/492381#M137346</guid>
      <dc:creator>numeroinconnu12</dc:creator>
      <dc:date>2019-11-21T18:08:11Z</dc:date>
    </item>
    <item>
      <title>Re: include date in request - stats count</title>
      <link>https://community.splunk.com/t5/Splunk-Search/include-date-in-request-stats-count/m-p/492382#M137347</link>
      <description>&lt;P&gt;The search statement is correct. Please tell us specifically about the problem.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Nov 2019 05:20:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/include-date-in-request-stats-count/m-p/492382#M137347</guid>
      <dc:creator>HiroshiSatoh</dc:creator>
      <dc:date>2019-11-22T05:20:08Z</dc:date>
    </item>
    <item>
      <title>Re: include date in request - stats count</title>
      <link>https://community.splunk.com/t5/Splunk-Search/include-date-in-request-stats-count/m-p/492383#M137348</link>
      <description>&lt;P&gt;Hello @HiroshiSatoh ,&lt;/P&gt;

&lt;P&gt;see my results without date :  &lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/8001i1305986032087292/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;and my results when i include date : &lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/8002i2A49C1E9197B7687/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt; &lt;/P&gt;

&lt;P&gt;Do you see the difference? &lt;/P&gt;</description>
      <pubDate>Fri, 22 Nov 2019 08:54:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/include-date-in-request-stats-count/m-p/492383#M137348</guid>
      <dc:creator>numeroinconnu12</dc:creator>
      <dc:date>2019-11-22T08:54:45Z</dc:date>
    </item>
    <item>
      <title>Re: include date in request - stats count</title>
      <link>https://community.splunk.com/t5/Splunk-Search/include-date-in-request-stats-count/m-p/492384#M137349</link>
      <description>&lt;P&gt;Is the problem that the number of results is different?&lt;BR /&gt;
Did you check the displayed error?&lt;/P&gt;

&lt;P&gt;&lt;A href="https://answers.splunk.com/answers/506621/unknown-error-for-peer-xxx-search-results-might-be.html"&gt;https://answers.splunk.com/answers/506621/unknown-error-for-peer-xxx-search-results-might-be.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;How about the following search statement?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| bin span=1m _time
| stats count as "nombre de connexions" by user, _time, host, name
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 22 Nov 2019 09:24:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/include-date-in-request-stats-count/m-p/492384#M137349</guid>
      <dc:creator>HiroshiSatoh</dc:creator>
      <dc:date>2019-11-22T09:24:21Z</dc:date>
    </item>
  </channel>
</rss>

