<?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: browsing time by day in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/browsing-time-by-day/m-p/42892#M179100</link>
    <description>&lt;P&gt;It would be better if you open up a new question, with your sample events, preferably a mock output of what report you want. You can see this post is already clutterred and anyone else looking for same info may get lost searching for option they should adopt to.&lt;/P&gt;</description>
    <pubDate>Fri, 07 Apr 2017 18:53:41 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2017-04-07T18:53:41Z</dc:date>
    <item>
      <title>browsing time by day</title>
      <link>https://community.splunk.com/t5/Splunk-Search/browsing-time-by-day/m-p/42875#M179083</link>
      <description>&lt;P&gt;I am using the following to determine the amount of browsing time for a user.&lt;/P&gt;

&lt;P&gt;I would like to have a table that actually shows browsing time by day.  So if I run this command for the past 7 days, I would like to have a breakdown per day.&lt;/P&gt;

&lt;P&gt;index=webproxy user="test" Company="test" | transaction user maxpause=5m | stats sum(duration) as browsing_time by user | fieldformat browsing_time = tostring(browsing_time,"duration")&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 12:19:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/browsing-time-by-day/m-p/42875#M179083</guid>
      <dc:creator>mcbradford</dc:creator>
      <dc:date>2020-09-28T12:19:18Z</dc:date>
    </item>
    <item>
      <title>Re: browsing time by day</title>
      <link>https://community.splunk.com/t5/Splunk-Search/browsing-time-by-day/m-p/42876#M179084</link>
      <description>&lt;P&gt;Do you mean something like&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | stats sum(duration) as browsing_time by user, date_year, date_month, date_mday
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 23 Aug 2012 13:07:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/browsing-time-by-day/m-p/42876#M179084</guid>
      <dc:creator>kallu</dc:creator>
      <dc:date>2012-08-23T13:07:22Z</dc:date>
    </item>
    <item>
      <title>Re: browsing time by day</title>
      <link>https://community.splunk.com/t5/Splunk-Search/browsing-time-by-day/m-p/42877#M179085</link>
      <description>&lt;P&gt;This works great!!!, but....  the results are display (sorted) based on the count value, so the sequence to date is not correct.  How can I get the values sorted by year, month, day?&lt;/P&gt;</description>
      <pubDate>Thu, 23 Aug 2012 13:31:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/browsing-time-by-day/m-p/42877#M179085</guid>
      <dc:creator>mcbradford</dc:creator>
      <dc:date>2012-08-23T13:31:48Z</dc:date>
    </item>
    <item>
      <title>Re: browsing time by day</title>
      <link>https://community.splunk.com/t5/Splunk-Search/browsing-time-by-day/m-p/42878#M179086</link>
      <description>&lt;P&gt;sort date_year date_month date_mday&lt;/P&gt;

&lt;P&gt;Or, if you want descending order, add a leading "-", or trailing "DESC".&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 12:19:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/browsing-time-by-day/m-p/42878#M179086</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2020-09-28T12:19:21Z</dc:date>
    </item>
    <item>
      <title>Re: browsing time by day</title>
      <link>https://community.splunk.com/t5/Splunk-Search/browsing-time-by-day/m-p/42879#M179087</link>
      <description>&lt;P&gt;One last thing.&lt;/P&gt;

&lt;P&gt;index=webproxy user="test" Company="test" | transaction user maxpause=5m | stats sum(duration) as browsing_time by user | fieldformat browsing_time = tostring(browsing_time,"duration")&lt;/P&gt;

&lt;P&gt;If I want to list the top 10 users with the most time?&lt;/P&gt;

&lt;P&gt;I have tried top user.  top browsing_time.  This is not working?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 12:19:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/browsing-time-by-day/m-p/42879#M179087</guid>
      <dc:creator>mcbradford</dc:creator>
      <dc:date>2020-09-28T12:19:23Z</dc:date>
    </item>
    <item>
      <title>Re: browsing time by day</title>
      <link>https://community.splunk.com/t5/Splunk-Search/browsing-time-by-day/m-p/42880#M179088</link>
      <description>&lt;P&gt;&lt;CODE&gt;index=webproxy user="test" Company="test" | transaction user maxpause=5m | stats sum(duration) as browsing_time by user | sort -browsing_time | head 10 | fieldformat browsing_time = tostring(browsing_time,"duration")&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Aug 2012 17:22:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/browsing-time-by-day/m-p/42880#M179088</guid>
      <dc:creator>ziegfried</dc:creator>
      <dc:date>2012-08-23T17:22:16Z</dc:date>
    </item>
    <item>
      <title>Re: browsing time by day</title>
      <link>https://community.splunk.com/t5/Splunk-Search/browsing-time-by-day/m-p/42881#M179089</link>
      <description>&lt;P&gt;Based on the following search:&lt;/P&gt;

&lt;P&gt;index=webproxy NOT user="-" user="test" | transaction user maxpause=5m | stats sum(duration) as browsing_time by user | fieldformat browsing_time = tostring(browsing_time,"duration")&lt;/P&gt;

&lt;P&gt;I would love to use the radial gauge to show the value in hours.  I tried this, but I am sure the format of the "browsing_time" is preventing the gauge from populating.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 12:19:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/browsing-time-by-day/m-p/42881#M179089</guid>
      <dc:creator>mcbradford</dc:creator>
      <dc:date>2020-09-28T12:19:28Z</dc:date>
    </item>
    <item>
      <title>Re: browsing time by day</title>
      <link>https://community.splunk.com/t5/Splunk-Search/browsing-time-by-day/m-p/42882#M179090</link>
      <description>&lt;P&gt;I figured it out...&lt;/P&gt;

&lt;P&gt;| fields + browsing_time&lt;/P&gt;</description>
      <pubDate>Thu, 23 Aug 2012 21:01:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/browsing-time-by-day/m-p/42882#M179090</guid>
      <dc:creator>mcbradford</dc:creator>
      <dc:date>2012-08-23T21:01:45Z</dc:date>
    </item>
    <item>
      <title>Re: browsing time by day</title>
      <link>https://community.splunk.com/t5/Splunk-Search/browsing-time-by-day/m-p/42883#M179091</link>
      <description>&lt;P&gt;I just ran into a problem.  If the total count is greater than 24, it get converted???  Like    1+05:00:28&lt;/P&gt;</description>
      <pubDate>Thu, 23 Aug 2012 21:09:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/browsing-time-by-day/m-p/42883#M179091</guid>
      <dc:creator>mcbradford</dc:creator>
      <dc:date>2012-08-23T21:09:30Z</dc:date>
    </item>
    <item>
      <title>Re: browsing time by day</title>
      <link>https://community.splunk.com/t5/Splunk-Search/browsing-time-by-day/m-p/42884#M179092</link>
      <description>&lt;P&gt;I figured it out, | fieldformat browsing_time = (browsing_time/3600)&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 12:19:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/browsing-time-by-day/m-p/42884#M179092</guid>
      <dc:creator>mcbradford</dc:creator>
      <dc:date>2020-09-28T12:19:31Z</dc:date>
    </item>
    <item>
      <title>Re: browsing time by day</title>
      <link>https://community.splunk.com/t5/Splunk-Search/browsing-time-by-day/m-p/42885#M179093</link>
      <description>&lt;P&gt;This gave me a roll-up of browse time for my search windows of last 7 days, which is progress. But is there a way to have it show per day totals?&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Lee&lt;/P&gt;</description>
      <pubDate>Fri, 07 Apr 2017 16:28:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/browsing-time-by-day/m-p/42885#M179093</guid>
      <dc:creator>wellmore</dc:creator>
      <dc:date>2017-04-07T16:28:26Z</dc:date>
    </item>
    <item>
      <title>Re: browsing time by day</title>
      <link>https://community.splunk.com/t5/Splunk-Search/browsing-time-by-day/m-p/42886#M179094</link>
      <description>&lt;P&gt;Also, for one day it shows browse_time: 10:01:10. But 10 hours is not possible for this given users shift. Is it read mm:sec:ms ?&lt;/P&gt;</description>
      <pubDate>Fri, 07 Apr 2017 16:33:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/browsing-time-by-day/m-p/42886#M179094</guid>
      <dc:creator>wellmore</dc:creator>
      <dc:date>2017-04-07T16:33:14Z</dc:date>
    </item>
    <item>
      <title>Re: browsing time by day</title>
      <link>https://community.splunk.com/t5/Splunk-Search/browsing-time-by-day/m-p/42887#M179095</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=webproxy user="test" Company="test" | transaction user maxpause=5m | eval Date=strftime(_time,"%m/%d/%Y")
| chart sum(duration) as browsing_time by user Date
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Regarding your other comment, tostring(X,"duration") converts seconds X to readable time format HH:MM:SS.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Apr 2017 16:44:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/browsing-time-by-day/m-p/42887#M179095</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-04-07T16:44:02Z</dc:date>
    </item>
    <item>
      <title>Re: browsing time by day</title>
      <link>https://community.splunk.com/t5/Splunk-Search/browsing-time-by-day/m-p/42888#M179096</link>
      <description>&lt;P&gt;This is not providing accurate results for us. I narrowed my search to current day and one user = 13:57:59 and another user 05:27:38. How can I interpret these results?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;usernamehere&amp;gt; | transaction user maxpause=5m | stats sum(duration) as browsing_time by user | sort -browsing_time | head 10 | fieldformat browsing_time = tostring(browsing_time,"duration")
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 07 Apr 2017 18:08:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/browsing-time-by-day/m-p/42888#M179096</guid>
      <dc:creator>wellmore</dc:creator>
      <dc:date>2017-04-07T18:08:07Z</dc:date>
    </item>
    <item>
      <title>Re: browsing time by day</title>
      <link>https://community.splunk.com/t5/Splunk-Search/browsing-time-by-day/m-p/42889#M179097</link>
      <description>&lt;P&gt;It appears that most of my users show browse_time to be right around the total time they are in the office, which is 8 hours. Is my FSSO agent not configured correctly?&lt;/P&gt;</description>
      <pubDate>Fri, 07 Apr 2017 18:21:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/browsing-time-by-day/m-p/42889#M179097</guid>
      <dc:creator>wellmore</dc:creator>
      <dc:date>2017-04-07T18:21:53Z</dc:date>
    </item>
    <item>
      <title>Re: browsing time by day</title>
      <link>https://community.splunk.com/t5/Splunk-Search/browsing-time-by-day/m-p/42890#M179098</link>
      <description>&lt;P&gt;IMO, it gives the total duration between first and last browsing event, for a set which are more that 5m apart. If you've a better rule to define browsing session, you should add it to transaction command. The transaction command provides a lot of good options for that (&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.5.2/SearchReference/Transaction"&gt;see here&lt;/A&gt;).  &lt;/P&gt;

&lt;P&gt;Please note that transaction is not the most optimal command and may be replaced with other alternative commands. See this &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.5.2/Knowledge/Abouttransactions#When_to_use_stats_instead_of_transactions"&gt;http://docs.splunk.com/Documentation/Splunk/6.5.2/Knowledge/Abouttransactions#When_to_use_stats_instead_of_transactions&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Apr 2017 18:24:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/browsing-time-by-day/m-p/42890#M179098</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-04-07T18:24:48Z</dc:date>
    </item>
    <item>
      <title>Re: browsing time by day</title>
      <link>https://community.splunk.com/t5/Splunk-Search/browsing-time-by-day/m-p/42891#M179099</link>
      <description>&lt;P&gt;I am looking for a better rule, or one that can give me a report on total browse time for a user in a given day. The results from this one are not even close.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Apr 2017 18:34:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/browsing-time-by-day/m-p/42891#M179099</guid>
      <dc:creator>wellmore</dc:creator>
      <dc:date>2017-04-07T18:34:10Z</dc:date>
    </item>
    <item>
      <title>Re: browsing time by day</title>
      <link>https://community.splunk.com/t5/Splunk-Search/browsing-time-by-day/m-p/42892#M179100</link>
      <description>&lt;P&gt;It would be better if you open up a new question, with your sample events, preferably a mock output of what report you want. You can see this post is already clutterred and anyone else looking for same info may get lost searching for option they should adopt to.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Apr 2017 18:53:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/browsing-time-by-day/m-p/42892#M179100</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-04-07T18:53:41Z</dc:date>
    </item>
    <item>
      <title>Re: browsing time by day</title>
      <link>https://community.splunk.com/t5/Splunk-Search/browsing-time-by-day/m-p/42893#M179101</link>
      <description>&lt;P&gt;The browsing time by user from the Fortinet FortiAnalyzer, which my vendor ran for me does not even come close to the Splunk browse time results I am getting.&lt;/P&gt;

&lt;P&gt;Fortinet FortiAnalyzer Report:&lt;BR /&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/30iF7B1DD8BEEC35CB5/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;Splunk browse time results for same user and same day:&lt;BR /&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/31i81F6EF10CAD6F9CF/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;Is there a way to get this corrected in Splunk?&lt;/P&gt;</description>
      <pubDate>Tue, 11 Apr 2017 16:44:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/browsing-time-by-day/m-p/42893#M179101</guid>
      <dc:creator>wellmore</dc:creator>
      <dc:date>2017-04-11T16:44:29Z</dc:date>
    </item>
  </channel>
</rss>

