<?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 How to build a Browsing Report per User? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-build-a-Browsing-Report-per-User/m-p/16050#M2097</link>
    <description>&lt;P&gt;Hi All, &lt;/P&gt;

&lt;P&gt;I'm trying to build a weekly report showing all the URLs every user has been to over that past week. I'm getting syslog from a Palo Alto Firewall, so every event contains the info I need.&lt;/P&gt;

&lt;P&gt;Here's a sample event:&lt;/P&gt;

&lt;P&gt;Jun 23 12:15:19 10.10.10.180 Jun 23 14:15:20 1,2010/06/23 14:15:20,0002C100679,THREAT,url,16,2010/06/23 14:15:20,10.40.10.65,72.14.204.99,0.0.0.0,0.0.0.0,Network and Systems Admin Dept,DOMAIN\USER,,web-browsing,vsys1,inside-trust,inside-untrust,ethernet1/20,ethernet1/19,Andrew - Splunk,2010/06/23 14:15:19,283986,1,50677,80,0,0,0x0,tcp,alert,"www.google.com/ig/feedjson",(9999),search-engines,informational,0&lt;/P&gt;

&lt;P&gt;If I use the following search, I'll get returned the URLs and the number of times each were hit:&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;sourcetype="pan_threat" srcuser="DOMAIN\USER" | top category misc&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;The category field extracts: web-browsing &lt;BR /&gt;
The misc field extracts: &lt;A href="https://community.splunk.com/www.google.com/ig/feedjson" target="test_blank"&gt;www.google.com/ig/feedjson&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;There are two steps that I can't figure out:&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;&lt;P&gt;I'd like to filter down to just the domain name, I've seen a couple of posts on custom extracts for this, but haven't figured out how to apply that to a search.&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;There are 100s of users and we'd like a separate report per user (reports will be sent to managers) Is there a way to put an expression/wildcard in for the username so that it will create a report for every username found?&lt;/P&gt;&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;Any suggestions would be very much appreciated!&lt;/P&gt;

&lt;P&gt;Thank you, 
Andrew&lt;/P&gt;</description>
    <pubDate>Thu, 24 Jun 2010 03:19:41 GMT</pubDate>
    <dc:creator>abarnett</dc:creator>
    <dc:date>2010-06-24T03:19:41Z</dc:date>
    <item>
      <title>How to build a Browsing Report per User?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-build-a-Browsing-Report-per-User/m-p/16050#M2097</link>
      <description>&lt;P&gt;Hi All, &lt;/P&gt;

&lt;P&gt;I'm trying to build a weekly report showing all the URLs every user has been to over that past week. I'm getting syslog from a Palo Alto Firewall, so every event contains the info I need.&lt;/P&gt;

&lt;P&gt;Here's a sample event:&lt;/P&gt;

&lt;P&gt;Jun 23 12:15:19 10.10.10.180 Jun 23 14:15:20 1,2010/06/23 14:15:20,0002C100679,THREAT,url,16,2010/06/23 14:15:20,10.40.10.65,72.14.204.99,0.0.0.0,0.0.0.0,Network and Systems Admin Dept,DOMAIN\USER,,web-browsing,vsys1,inside-trust,inside-untrust,ethernet1/20,ethernet1/19,Andrew - Splunk,2010/06/23 14:15:19,283986,1,50677,80,0,0,0x0,tcp,alert,"www.google.com/ig/feedjson",(9999),search-engines,informational,0&lt;/P&gt;

&lt;P&gt;If I use the following search, I'll get returned the URLs and the number of times each were hit:&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;sourcetype="pan_threat" srcuser="DOMAIN\USER" | top category misc&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;The category field extracts: web-browsing &lt;BR /&gt;
The misc field extracts: &lt;A href="https://community.splunk.com/www.google.com/ig/feedjson" target="test_blank"&gt;www.google.com/ig/feedjson&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;There are two steps that I can't figure out:&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;&lt;P&gt;I'd like to filter down to just the domain name, I've seen a couple of posts on custom extracts for this, but haven't figured out how to apply that to a search.&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;There are 100s of users and we'd like a separate report per user (reports will be sent to managers) Is there a way to put an expression/wildcard in for the username so that it will create a report for every username found?&lt;/P&gt;&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;Any suggestions would be very much appreciated!&lt;/P&gt;

&lt;P&gt;Thank you, 
Andrew&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jun 2010 03:19:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-build-a-Browsing-Report-per-User/m-p/16050#M2097</guid>
      <dc:creator>abarnett</dc:creator>
      <dc:date>2010-06-24T03:19:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to build a Browsing Report per User?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-build-a-Browsing-Report-per-User/m-p/16051#M2098</link>
      <description>&lt;OL&gt;
&lt;LI&gt;You can either use the &lt;CODE&gt;rex&lt;/CODE&gt; search command to specific a regular expression to extract the domain, or configure it as an automatic/permanent extraction that occurs on that sourcetype in props.conf, in the Splunk Manager UI, or using the interactive field extractor.&lt;/LI&gt;
&lt;LI&gt;You could use &lt;CODE&gt;... | top category misc by user&lt;/CODE&gt;, but that will give you a single report broken up by user. I'm not sure if that's what you want, or if you actually need to run it as separate reports. If the latter, you &lt;EM&gt;could&lt;/EM&gt; consider the &lt;CODE&gt;map&lt;/CODE&gt; and &lt;CODE&gt;sendemail&lt;/CODE&gt; commands together.&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Thu, 24 Jun 2010 03:37:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-build-a-Browsing-Report-per-User/m-p/16051#M2098</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2010-06-24T03:37:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to build a Browsing Report per User?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-build-a-Browsing-Report-per-User/m-p/16052#M2099</link>
      <description>&lt;P&gt;Thanks for the quick reply, gkanapathy.&lt;/P&gt;

&lt;P&gt;the 'by user' definitely helps.  I'm still pretty new to Splunk, can I tack on the rex command at the end of my search string to parse the domain data from the 'misc' field?&lt;/P&gt;

&lt;P&gt;so ...| top category misc by user | rex field=misc ... ?&lt;/P&gt;

&lt;P&gt;Any recommendations on how to do that?&lt;/P&gt;

&lt;P&gt;thanks again!&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jun 2010 04:18:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-build-a-Browsing-Report-per-User/m-p/16052#M2099</guid>
      <dc:creator>abarnett</dc:creator>
      <dc:date>2010-06-24T04:18:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to build a Browsing Report per User?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-build-a-Browsing-Report-per-User/m-p/16053#M2100</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;I just realized that instead of having to parse the URL for the domain, I could just resolve the destination IP address.  Do you know if there is a way to have Splunk do an NSLookup?&lt;/P&gt;

&lt;P&gt;thanks again!&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jun 2010 21:37:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-build-a-Browsing-Report-per-User/m-p/16053#M2100</guid>
      <dc:creator>abarnett</dc:creator>
      <dc:date>2010-06-24T21:37:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to build a Browsing Report per User?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-build-a-Browsing-Report-per-User/m-p/16054#M2101</link>
      <description>&lt;P&gt;Just created an app for PAN data:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://splunkbase.splunk.com/apps/All/4.x/App/app:Splunk+for+Palo+Alto+Networks" rel="nofollow"&gt;http://splunkbase.splunk.com/apps/All/4.x/App/app:Splunk+for+Palo+Alto+Networks&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Feb 2011 07:18:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-build-a-Browsing-Report-per-User/m-p/16054#M2101</guid>
      <dc:creator>kbains</dc:creator>
      <dc:date>2011-02-17T07:18:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to build a Browsing Report per User?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-build-a-Browsing-Report-per-User/m-p/16055#M2102</link>
      <description>&lt;P&gt;I'm trying to achieve the "latter" with separate reports or at least separate email alerts.  Can you provide more explanation of how to combine the map and sendemail commands?&lt;/P&gt;</description>
      <pubDate>Thu, 20 Dec 2018 20:04:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-build-a-Browsing-Report-per-User/m-p/16055#M2102</guid>
      <dc:creator>cblanton</dc:creator>
      <dc:date>2018-12-20T20:04:14Z</dc:date>
    </item>
  </channel>
</rss>

