<?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 Search for total browsing time by user in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Search-for-total-browsing-time-by-user/m-p/344131#M164366</link>
    <description>&lt;P&gt;Hi Splunkers,&lt;/P&gt;

&lt;P&gt;I need a search query for browsing time by user. I have one query :&lt;/P&gt;

&lt;P&gt;| stats sum(duration) AS session_time sum(sentbyte) as sent sum(rcvdbyte) as received sum(bytes) as total by user&lt;BR /&gt;
    | eval browsing-time=tostring(session_time, "duration")&lt;BR /&gt;
    | table user,browsing-time,total&lt;/P&gt;

&lt;P&gt;Here we cannot take duration. Its duration of all the sessions. I want it for only http/https session(means session spent on browsers/websites). Please help me on this.&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 17:16:48 GMT</pubDate>
    <dc:creator>jibin1988</dc:creator>
    <dc:date>2020-09-29T17:16:48Z</dc:date>
    <item>
      <title>Search for total browsing time by user</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-for-total-browsing-time-by-user/m-p/344131#M164366</link>
      <description>&lt;P&gt;Hi Splunkers,&lt;/P&gt;

&lt;P&gt;I need a search query for browsing time by user. I have one query :&lt;/P&gt;

&lt;P&gt;| stats sum(duration) AS session_time sum(sentbyte) as sent sum(rcvdbyte) as received sum(bytes) as total by user&lt;BR /&gt;
    | eval browsing-time=tostring(session_time, "duration")&lt;BR /&gt;
    | table user,browsing-time,total&lt;/P&gt;

&lt;P&gt;Here we cannot take duration. Its duration of all the sessions. I want it for only http/https session(means session spent on browsers/websites). Please help me on this.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 17:16:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-for-total-browsing-time-by-user/m-p/344131#M164366</guid>
      <dc:creator>jibin1988</dc:creator>
      <dc:date>2020-09-29T17:16:48Z</dc:date>
    </item>
    <item>
      <title>Re: Search for total browsing time by user</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-for-total-browsing-time-by-user/m-p/344132#M164367</link>
      <description>&lt;P&gt;hey @jibin1988,&lt;BR /&gt;
you can try something like this!&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;you_need_to_add_something_which_will_filter_out_http/https_session&amp;gt; | stats sum(duration) AS session_time sum(sentbyte) as sent sum(rcvdbyte) as received sum(bytes) as total by user
| eval browsing_time=tostring(session_time, "duration")
| stats values(browsing_time) as browsing_time values(total) as total by user
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Your base search should filter events for http/https websites/browers..if you have a field that contains these type of events then you can use that field to filter in your base search.If the field is not present then you can extract such events and then apply filter! if you provite some sample event then I can tell you more about it.&lt;BR /&gt;
Let me know if it helps you!&lt;/P&gt;</description>
      <pubDate>Wed, 13 Dec 2017 06:28:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-for-total-browsing-time-by-user/m-p/344132#M164367</guid>
      <dc:creator>mayurr98</dc:creator>
      <dc:date>2017-12-13T06:28:14Z</dc:date>
    </item>
    <item>
      <title>Re: Search for total browsing time by user</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-for-total-browsing-time-by-user/m-p/344133#M164368</link>
      <description>&lt;P&gt;I have field with service=HTTP service=HTTPS. I want to get both http and https.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Dec 2017 06:44:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-for-total-browsing-time-by-user/m-p/344133#M164368</guid>
      <dc:creator>jibin1988</dc:creator>
      <dc:date>2017-12-13T06:44:43Z</dc:date>
    </item>
    <item>
      <title>Re: Search for total browsing time by user</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-for-total-browsing-time-by-user/m-p/344134#M164369</link>
      <description>&lt;P&gt;yeah so in your base query you can write.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=your_index service=HTTP OR service=HTTPS | stats sum(duration) AS session_time sum(sentbyte) as sent sum(rcvdbyte) as received sum(bytes) as total by user
 | eval browsing_time=tostring(session_time, "duration")
 | stats values(browsing_time) as browsing_time values(total) as total by user
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 13 Dec 2017 06:47:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-for-total-browsing-time-by-user/m-p/344134#M164369</guid>
      <dc:creator>mayurr98</dc:creator>
      <dc:date>2017-12-13T06:47:49Z</dc:date>
    </item>
    <item>
      <title>Re: Search for total browsing time by user</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-for-total-browsing-time-by-user/m-p/344135#M164370</link>
      <description>&lt;P&gt;Yes. Got it. Thank you. I have given service=HTTP* &lt;/P&gt;</description>
      <pubDate>Wed, 13 Dec 2017 06:52:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-for-total-browsing-time-by-user/m-p/344135#M164370</guid>
      <dc:creator>jibin1988</dc:creator>
      <dc:date>2017-12-13T06:52:12Z</dc:date>
    </item>
    <item>
      <title>Re: Search for total browsing time by user</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-for-total-browsing-time-by-user/m-p/344136#M164371</link>
      <description>&lt;P&gt;hey @jibin1988&lt;BR /&gt;
you are welcome &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;
Accept my answer if you feel it's satisfactory!&lt;/P&gt;</description>
      <pubDate>Wed, 13 Dec 2017 06:56:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-for-total-browsing-time-by-user/m-p/344136#M164371</guid>
      <dc:creator>mayurr98</dc:creator>
      <dc:date>2017-12-13T06:56:23Z</dc:date>
    </item>
  </channel>
</rss>

