<?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 cohorting with fixed first event dates in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/cohorting-with-fixed-first-event-dates/m-p/484319#M193415</link>
    <description>&lt;P&gt;morning all, &lt;/P&gt;

&lt;P&gt;I am struggling with the logic around doing this.&lt;/P&gt;

&lt;P&gt;I am trying to run a report from 01/01/2018 to today looking at how many times (ideally in a range), that users are using the service. (what they do is almost irrelevant, just that they are on it is enough.&lt;/P&gt;

&lt;P&gt;The challenge is 1 want 2 years of behaviour and not anyone using it within 2 years...&lt;/P&gt;

&lt;P&gt;so ideally i need to isolate all users who entered in say 01/01/2018 to 01/02/2018 and then what their behaviour has been over the 2 years since.&lt;/P&gt;

&lt;P&gt;What i have so far is:&lt;/P&gt;

&lt;P&gt;sourcetype=mymainsourcetype &lt;BR /&gt;
| stats values(_time) as source by clientIP   &lt;/P&gt;

&lt;P&gt;(this is ideal as i get to see ALL the users and their entries (however i now need to isolate just where the first entry is between 1st jan 18 and 1st feb 18.  &lt;/P&gt;

&lt;P&gt;any ideas would be great&lt;/P&gt;</description>
    <pubDate>Fri, 17 Jan 2020 08:29:54 GMT</pubDate>
    <dc:creator>stephenreece</dc:creator>
    <dc:date>2020-01-17T08:29:54Z</dc:date>
    <item>
      <title>cohorting with fixed first event dates</title>
      <link>https://community.splunk.com/t5/Splunk-Search/cohorting-with-fixed-first-event-dates/m-p/484319#M193415</link>
      <description>&lt;P&gt;morning all, &lt;/P&gt;

&lt;P&gt;I am struggling with the logic around doing this.&lt;/P&gt;

&lt;P&gt;I am trying to run a report from 01/01/2018 to today looking at how many times (ideally in a range), that users are using the service. (what they do is almost irrelevant, just that they are on it is enough.&lt;/P&gt;

&lt;P&gt;The challenge is 1 want 2 years of behaviour and not anyone using it within 2 years...&lt;/P&gt;

&lt;P&gt;so ideally i need to isolate all users who entered in say 01/01/2018 to 01/02/2018 and then what their behaviour has been over the 2 years since.&lt;/P&gt;

&lt;P&gt;What i have so far is:&lt;/P&gt;

&lt;P&gt;sourcetype=mymainsourcetype &lt;BR /&gt;
| stats values(_time) as source by clientIP   &lt;/P&gt;

&lt;P&gt;(this is ideal as i get to see ALL the users and their entries (however i now need to isolate just where the first entry is between 1st jan 18 and 1st feb 18.  &lt;/P&gt;

&lt;P&gt;any ideas would be great&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jan 2020 08:29:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/cohorting-with-fixed-first-event-dates/m-p/484319#M193415</guid>
      <dc:creator>stephenreece</dc:creator>
      <dc:date>2020-01-17T08:29:54Z</dc:date>
    </item>
    <item>
      <title>Re: cohorting with fixed first event dates</title>
      <link>https://community.splunk.com/t5/Splunk-Search/cohorting-with-fixed-first-event-dates/m-p/484320#M193416</link>
      <description>&lt;P&gt;i've found starttime=01/01/2018:00:00:00  endtime=02/01/2018:00:00:00  which is one step close&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jan 2020 08:40:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/cohorting-with-fixed-first-event-dates/m-p/484320#M193416</guid>
      <dc:creator>stephenreece</dc:creator>
      <dc:date>2020-01-17T08:40:42Z</dc:date>
    </item>
    <item>
      <title>Re: cohorting with fixed first event dates</title>
      <link>https://community.splunk.com/t5/Splunk-Search/cohorting-with-fixed-first-event-dates/m-p/484321#M193417</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;index=mymainindex sourcetype=mymainsourcetype starttime=01/01/2018:00:00:00 endtime=02/01/2018:00:00:00 clientIP=*
| stats count(_time) as appear_count min(_time) as first_appear max(_time) as last_appear range(_time) as duration list(_time) as time_list by clientIP
| foreach *_appear  [ fieldformat &amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;=strftime(&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;,"%c")]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You should check the status of &lt;CODE&gt;clientIP&lt;/CODE&gt; with this search and then consider the next search method.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jan 2020 14:12:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/cohorting-with-fixed-first-event-dates/m-p/484321#M193417</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-01-17T14:12:12Z</dc:date>
    </item>
  </channel>
</rss>

