<?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: Enriching Proxy Log data containing userid and IP address with DNS &amp; Active Directory attributes, how do we handle subsearch result limits? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Enriching-Proxy-Log-data-containing-userid-and-IP-address-with/m-p/180093#M51856</link>
    <description>&lt;P&gt;That works awesome!  Thanks!&lt;/P&gt;</description>
    <pubDate>Fri, 21 Aug 2015 15:28:20 GMT</pubDate>
    <dc:creator>ltrand</dc:creator>
    <dc:date>2015-08-21T15:28:20Z</dc:date>
    <item>
      <title>Enriching Proxy Log data containing userid and IP address with DNS &amp; Active Directory attributes, how do we handle subsearch result limits?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Enriching-Proxy-Log-data-containing-userid-and-IP-address-with/m-p/180091#M51854</link>
      <description>&lt;P&gt;So, fun problem:&lt;/P&gt;

&lt;P&gt;We're wanting to do some data enrichment so that we can build good reports.  What we want to do is take proxy logs which contain a userid and an IP address and resolve the userid against AD to get the business group and resolve the IP against DNS to get the proper hostname.&lt;/P&gt;

&lt;P&gt;Issue:&lt;BR /&gt;&lt;BR /&gt;
1: Millions of proxy events per hour.&lt;BR /&gt;
2: over 300k accounts&lt;BR /&gt;
3: over 200k endpoints&lt;/P&gt;

&lt;P&gt;Because of this, subsearches are failing (limits reached), an inline ldapsearch fails, and inline dnslookup fails because of max events.  I've thought of chunking it, but I still get back to the fact that the sub data is too large for the limits.  I almost would like to just append this data to the events in the proxy logs index, but I don't know if that is possible.&lt;/P&gt;

&lt;P&gt;Current search logic:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=proxy_logs user!="" 
| fields user category, src, dest, http_referrer, url
| join user [search sourcetype="ActiveDirectory" | fields sAMAccountName, displayName, company, department | rename sAMAccountName AS user ]
| stats values(displayName) AS "Display Name" values(company) AS Company values(department) AS Dept values(category) AS Category values(src) AS Source values(dest) AS DEST count(_raw) AS "URL Count" values(http_referrer) AS Referrer values(url) AS URL by user
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I've thought about doing the proxy search as the subsearch, but the logs can get just as large and fail on max returns.  I figure if I solve the AD problem then the DNS enrichment will use the same logic.&lt;/P&gt;

&lt;P&gt;So, anyone have thoughts on how to solve this gordian knot?  Do I just need to live with increasing the limits?  Or am I thinking about the problem wrong?  I figure whatever it is I'll have to chunk it and write it to a summary index to actually do any kind of reporting, but I need to get the fields in there first.&lt;/P&gt;

&lt;P&gt;Thanks everyone!&lt;/P&gt;</description>
      <pubDate>Tue, 18 Aug 2015 21:00:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Enriching-Proxy-Log-data-containing-userid-and-IP-address-with/m-p/180091#M51854</guid>
      <dc:creator>ltrand</dc:creator>
      <dc:date>2015-08-18T21:00:50Z</dc:date>
    </item>
    <item>
      <title>Re: Enriching Proxy Log data containing userid and IP address with DNS &amp; Active Directory attributes, how do we handle subsearch result limits?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Enriching-Proxy-Log-data-containing-userid-and-IP-address-with/m-p/180092#M51855</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(sourcetype=proxy_logs user!="" ) OR (sourcetype="ActiveDirectory") | eval user=coalesce(user, sAMAccountName) | fields user category src, dest http_referrer url displayName company department | stats values(displayName) AS "Display Name" values(company) AS Company values(department) AS Dept values(category) AS Category values(src) AS Source values(dest) AS DEST count(_raw) AS "URL Count" values(http_referrer) AS Referrer values(url) AS URL by user
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 20 Aug 2015 19:49:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Enriching-Proxy-Log-data-containing-userid-and-IP-address-with/m-p/180092#M51855</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-08-20T19:49:18Z</dc:date>
    </item>
    <item>
      <title>Re: Enriching Proxy Log data containing userid and IP address with DNS &amp; Active Directory attributes, how do we handle subsearch result limits?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Enriching-Proxy-Log-data-containing-userid-and-IP-address-with/m-p/180093#M51856</link>
      <description>&lt;P&gt;That works awesome!  Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 21 Aug 2015 15:28:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Enriching-Proxy-Log-data-containing-userid-and-IP-address-with/m-p/180093#M51856</guid>
      <dc:creator>ltrand</dc:creator>
      <dc:date>2015-08-21T15:28:20Z</dc:date>
    </item>
  </channel>
</rss>

