<?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: Fast search for ratio of users who connect 3 days or more to all users within a week in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Fast-search-for-ratio-of-users-who-connect-3-days-or-more-to-all/m-p/74675#M18842</link>
    <description>&lt;P&gt;Are not considered dramatic improvement because it is processing "ALL-&amp;gt; Users" heavy&lt;BR /&gt;
(input-&amp;gt;output Number)&lt;BR /&gt;
| eval mydatemday = strftime......ALL-&amp;gt;ALL    &amp;lt;= unnecessary if you use the date_mday&lt;BR /&gt;
| stats dc(mydatemday) AS Da......ALL-&amp;gt;Users  &amp;lt;= Heavy&lt;BR /&gt;
| stats count(eval(DaysConne......Users-&amp;gt;1&lt;BR /&gt;
| eval UserLoyalty = Frequen......1-&amp;gt;1&lt;/P&gt;

&lt;P&gt;Summary Index is useful when you want to find a large amount of Data on a regular basis, you want to see results quickly.&lt;/P&gt;</description>
    <pubDate>Fri, 27 Sep 2013 03:58:04 GMT</pubDate>
    <dc:creator>HiroshiSatoh</dc:creator>
    <dc:date>2013-09-27T03:58:04Z</dc:date>
    <item>
      <title>Fast search for ratio of users who connect 3 days or more to all users within a week</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Fast-search-for-ratio-of-users-who-connect-3-days-or-more-to-all/m-p/74674#M18841</link>
      <description>&lt;P&gt;I want to generate ratio of Frequent Users / Total Users in a particular week. Frequent users are people who come into our system on 4 individual days or more (irrespective of the amount of activity). The idea is that I can trend the value over a few weeks. &lt;BR /&gt;
I have a search that works, but is very convoluted a somewhat slow. Hoping someone knows a more efficient way to do it. FYI I use __time because date_mday returns 8 values for a week, most likely because of how timezones are set up.&lt;/P&gt;

&lt;P&gt;The query I have is &lt;BR /&gt;
......| eval mydatemday = strftime(_time, "%d")| stats dc(mydatemday) AS DaysConnected by UserId | stats count(eval(DaysConnected&amp;lt;=4)) AS Occasionalusers  count(eval(DaysConnected&amp;gt;4)) AS FrequentUsers | eval UserLoyalty = FrequentUsers*100 /(FrequentUsers+Occasionalusers)&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 14:51:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Fast-search-for-ratio-of-users-who-connect-3-days-or-more-to-all/m-p/74674#M18841</guid>
      <dc:creator>fuzzy_rocks</dc:creator>
      <dc:date>2020-09-28T14:51:12Z</dc:date>
    </item>
    <item>
      <title>Re: Fast search for ratio of users who connect 3 days or more to all users within a week</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Fast-search-for-ratio-of-users-who-connect-3-days-or-more-to-all/m-p/74675#M18842</link>
      <description>&lt;P&gt;Are not considered dramatic improvement because it is processing "ALL-&amp;gt; Users" heavy&lt;BR /&gt;
(input-&amp;gt;output Number)&lt;BR /&gt;
| eval mydatemday = strftime......ALL-&amp;gt;ALL    &amp;lt;= unnecessary if you use the date_mday&lt;BR /&gt;
| stats dc(mydatemday) AS Da......ALL-&amp;gt;Users  &amp;lt;= Heavy&lt;BR /&gt;
| stats count(eval(DaysConne......Users-&amp;gt;1&lt;BR /&gt;
| eval UserLoyalty = Frequen......1-&amp;gt;1&lt;/P&gt;

&lt;P&gt;Summary Index is useful when you want to find a large amount of Data on a regular basis, you want to see results quickly.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Sep 2013 03:58:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Fast-search-for-ratio-of-users-who-connect-3-days-or-more-to-all/m-p/74675#M18842</guid>
      <dc:creator>HiroshiSatoh</dc:creator>
      <dc:date>2013-09-27T03:58:04Z</dc:date>
    </item>
    <item>
      <title>Re: Fast search for ratio of users who connect 3 days or more to all users within a week</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Fast-search-for-ratio-of-users-who-connect-3-days-or-more-to-all/m-p/74676#M18843</link>
      <description>&lt;P&gt;Thank you!. I couldn't use date_mday as it doesn't respond correctly - e.g. it will return data for 8 days when I ask for a week. I believe it has to do with time zones. &lt;/P&gt;

&lt;P&gt;Looks like indexes is way to go.....&lt;/P&gt;</description>
      <pubDate>Fri, 27 Sep 2013 22:39:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Fast-search-for-ratio-of-users-who-connect-3-days-or-more-to-all/m-p/74676#M18843</guid>
      <dc:creator>fuzzy_rocks</dc:creator>
      <dc:date>2013-09-27T22:39:02Z</dc:date>
    </item>
    <item>
      <title>Re: Fast search for ratio of users who connect 3 days or more to all users within a week</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Fast-search-for-ratio-of-users-who-connect-3-days-or-more-to-all/m-p/74677#M18844</link>
      <description>&lt;P&gt;Check the information in the search job inspector(i button).&lt;BR /&gt;
earliest?&lt;BR /&gt;
latest?&lt;/P&gt;

&lt;P&gt;[earliest=-7d@d latest=@d] will be 8 day?&lt;/P&gt;</description>
      <pubDate>Sat, 28 Sep 2013 15:45:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Fast-search-for-ratio-of-users-who-connect-3-days-or-more-to-all/m-p/74677#M18844</guid>
      <dc:creator>HiroshiSatoh</dc:creator>
      <dc:date>2013-09-28T15:45:06Z</dc:date>
    </item>
  </channel>
</rss>

