<?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: Help with Search String for Ironport to aggregate destination sites and durations in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Help-with-Search-String-for-Ironport-to-aggregate-destination/m-p/149426#M185465</link>
    <description>&lt;P&gt;For your original question, this should work&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;search index=summary user_id=** | search x_webcat_code_full!=Advertisements | stats sum(duration) as browsing_time by dest_domain _time user_id x_webcat_code_full duration | fieldformat browsing_time = tostring(browsing_time,"duration") | table _time, dest_domain, x_webcat_code_full, user_id, browsing_time | stats sum(browing_time) as total_browing_time count by dest_domain_time
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Can you give more details about what you need as part of 2nd question?&lt;/P&gt;</description>
    <pubDate>Mon, 05 May 2014 19:33:09 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2014-05-05T19:33:09Z</dc:date>
    <item>
      <title>Help with Search String for Ironport to aggregate destination sites and durations</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-Search-String-for-Ironport-to-aggregate-destination/m-p/149424#M185463</link>
      <description>&lt;P&gt;I am using this Search String to return results for specific user accounts:&lt;/P&gt;

&lt;P&gt;search index=summary user_id=****** | search x_webcat_code_full!=Advertisements | stats sum(duration) as browsing_time by dest_domain _time user_id x_webcat_code_full duration | fieldformat browsing_time = tostring(browsing_time,"duration") | table _time, dest_domain,  x_webcat_code_full, user_id, browsing_time&lt;/P&gt;

&lt;P&gt;I am looking to aggregate the results by destination domain, and show an aggregate number for each domain by browsing_time and show a count.  So instead of showing:&lt;/P&gt;

&lt;P&gt;google.com     2mins&lt;BR /&gt;
google.com     1min&lt;BR /&gt;
google.com     5min&lt;/P&gt;

&lt;P&gt;It would show only&lt;BR /&gt;
google.com     8mins     Count 3&lt;/P&gt;

&lt;P&gt;Thanks for any help...&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 16:30:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-Search-String-for-Ironport-to-aggregate-destination/m-p/149424#M185463</guid>
      <dc:creator>sinescorey</dc:creator>
      <dc:date>2020-09-28T16:30:59Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Search String for Ironport to aggregate destination sites and durations</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-Search-String-for-Ironport-to-aggregate-destination/m-p/149425#M185464</link>
      <description>&lt;P&gt;"search sourcetype=wsa_accesslogs" vs search index=summary gives you a break down of the actual site visit times.  Anyone else have an answer on how to aggregate the sites and times visited?&lt;/P&gt;</description>
      <pubDate>Mon, 05 May 2014 17:44:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-Search-String-for-Ironport-to-aggregate-destination/m-p/149425#M185464</guid>
      <dc:creator>sinescorey</dc:creator>
      <dc:date>2014-05-05T17:44:39Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Search String for Ironport to aggregate destination sites and durations</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-Search-String-for-Ironport-to-aggregate-destination/m-p/149426#M185465</link>
      <description>&lt;P&gt;For your original question, this should work&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;search index=summary user_id=** | search x_webcat_code_full!=Advertisements | stats sum(duration) as browsing_time by dest_domain _time user_id x_webcat_code_full duration | fieldformat browsing_time = tostring(browsing_time,"duration") | table _time, dest_domain, x_webcat_code_full, user_id, browsing_time | stats sum(browing_time) as total_browing_time count by dest_domain_time
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Can you give more details about what you need as part of 2nd question?&lt;/P&gt;</description>
      <pubDate>Mon, 05 May 2014 19:33:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-Search-String-for-Ironport-to-aggregate-destination/m-p/149426#M185465</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-05-05T19:33:09Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Search String for Ironport to aggregate destination sites and durations</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-Search-String-for-Ironport-to-aggregate-destination/m-p/149427#M185466</link>
      <description>&lt;P&gt;Hey your right,&lt;/P&gt;

&lt;P&gt;search sourcetype=wsa_accesslogs user_id=* | search x_webcat_code_full!=Advertisements | transaction user_id maxpause=5m  | search dest_domain=*| stats sum(duration) as browsing_time by dest_domain | fieldformat browsing_time = tostring(browsing_time,"duration")&lt;/P&gt;

&lt;P&gt;This gives me what I am looking for thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 16:32:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-Search-String-for-Ironport-to-aggregate-destination/m-p/149427#M185466</guid>
      <dc:creator>sinescorey</dc:creator>
      <dc:date>2020-09-28T16:32:15Z</dc:date>
    </item>
  </channel>
</rss>

