<?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 Internet usage report by Active Directory Group in Reporting</title>
    <link>https://community.splunk.com/t5/Reporting/Internet-usage-report-by-Active-Directory-Group/m-p/41431#M864</link>
    <description>&lt;P&gt;We are getting syslog data from our web proxy/firewall (Palo Alto) we would like to be able to generate internet usage reports based on users who are members of specific active directory groups or OUs.&lt;/P&gt;

&lt;P&gt;For exmaple we would like our marketing manager to able to view an internet usage summary of the marketing department users.&lt;/P&gt;

&lt;P&gt;Would this require an external lookup script to query AD for a list of all members of a group/OU and then load in as an array for a custom search? or is there some native syntax or plugin for Splunk which can achieve this?&lt;/P&gt;

&lt;P&gt;Note.
Username information is included in the syslog data recieved from the proxy/firewall we have no problems running general reports filtered on specific subnets or individual users.. its just generating reports which filter down to only inlcude the users of a specific AD group...&lt;/P&gt;

&lt;P&gt;Any suggestions.. or pointers to the best/most efficient method would be appreciated.&lt;/P&gt;</description>
    <pubDate>Wed, 09 Feb 2011 17:14:45 GMT</pubDate>
    <dc:creator>ucteam</dc:creator>
    <dc:date>2011-02-09T17:14:45Z</dc:date>
    <item>
      <title>Internet usage report by Active Directory Group</title>
      <link>https://community.splunk.com/t5/Reporting/Internet-usage-report-by-Active-Directory-Group/m-p/41431#M864</link>
      <description>&lt;P&gt;We are getting syslog data from our web proxy/firewall (Palo Alto) we would like to be able to generate internet usage reports based on users who are members of specific active directory groups or OUs.&lt;/P&gt;

&lt;P&gt;For exmaple we would like our marketing manager to able to view an internet usage summary of the marketing department users.&lt;/P&gt;

&lt;P&gt;Would this require an external lookup script to query AD for a list of all members of a group/OU and then load in as an array for a custom search? or is there some native syntax or plugin for Splunk which can achieve this?&lt;/P&gt;

&lt;P&gt;Note.
Username information is included in the syslog data recieved from the proxy/firewall we have no problems running general reports filtered on specific subnets or individual users.. its just generating reports which filter down to only inlcude the users of a specific AD group...&lt;/P&gt;

&lt;P&gt;Any suggestions.. or pointers to the best/most efficient method would be appreciated.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Feb 2011 17:14:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Internet-usage-report-by-Active-Directory-Group/m-p/41431#M864</guid>
      <dc:creator>ucteam</dc:creator>
      <dc:date>2011-02-09T17:14:45Z</dc:date>
    </item>
    <item>
      <title>Re: Internet usage report by Active Directory Group</title>
      <link>https://community.splunk.com/t5/Reporting/Internet-usage-report-by-Active-Directory-Group/m-p/41432#M865</link>
      <description>&lt;P&gt;I would do this by leveraging &lt;A href="http://www.splunk.com/base/Documentation/latest/Knowledge/Addfieldsfromexternaldatasources" rel="nofollow"&gt;lookups&lt;/A&gt;. Specifically I would create a script that on a certain interval queries AD and outputs a CSV file mapping usernames to OU and/or department. This could be quite easily achieved either with VB Script or PowerShell. &lt;/P&gt;

&lt;P&gt;After you have that script ready, just make sure it outputs to the appropriate lookup directory in your Splunk directory tree. You can then test it with a search like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=my_firewall | lookup mylookup.csv username OUTPUTNEW department | where department="Marketing" | top URI by username
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;or something similar; obviously you will have to tune this to your specific sourcetypes, fieldnames, etc.&lt;/P&gt;

&lt;P&gt;If this looks pretty good, define the lookup in props.conf and transforms.conf as per the &lt;A href="http://www.splunk.com/base/Documentation/latest/Knowledge/Addfieldsfromexternaldatasources" rel="nofollow"&gt;documentation&lt;/A&gt;. Now you should be able to do searches like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=my_firewall department="Marketing"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 10 Feb 2011 03:48:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Internet-usage-report-by-Active-Directory-Group/m-p/41432#M865</guid>
      <dc:creator>ftk</dc:creator>
      <dc:date>2011-02-10T03:48:10Z</dc:date>
    </item>
  </channel>
</rss>

