<?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: Sub Searching - tstats in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Sub-Searching-tstats/m-p/431071#M95845</link>
    <description>&lt;P&gt;Drop the sub search. Use a lookup running on indexers.&lt;/P&gt;

&lt;P&gt;Use fields instead of table.&lt;/P&gt;</description>
    <pubDate>Sat, 22 Dec 2018 00:37:28 GMT</pubDate>
    <dc:creator>valiquet</dc:creator>
    <dc:date>2018-12-22T00:37:28Z</dc:date>
    <item>
      <title>Sub Searching - tstats</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Sub-Searching-tstats/m-p/431070#M95844</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I have a query for returning blocked data from our firewall to Google's DNS Servers - I now want to correlate this with data from our proxy to attempt to identify the user logged onto the machine. What I have written is below:&lt;/P&gt;

&lt;P&gt;|  tstats summariesonly=t count as Count, dc(fw.rule) as dc_rules, values(fw.rule) as rules, max(_time) as LastSeen, values(fw.dest_ip) as Destination FROM datamodel=Firewall.fw WHERE fw.dest_ip = 8.8.4.4 OR fw.dest_ip = 8.8.8.8 AND fw.action = "blocked" BY fw.src_ip, fw.action | rename src_ip as src_host | join srch_host [ search index=proxy | fields src_host,UserName] | table src_host,Destination,action,UserName,Count&lt;/P&gt;

&lt;P&gt;The proxy index is quite data heavy so ideally I would like to set the search to have src_host as the src_host identified in the parent query. Could anyone help a.) Streamline the query to improve performance and b.) help me get it working!&lt;/P&gt;

&lt;P&gt;Many Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 22:22:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Sub-Searching-tstats/m-p/431070#M95844</guid>
      <dc:creator>griggsy</dc:creator>
      <dc:date>2020-09-29T22:22:07Z</dc:date>
    </item>
    <item>
      <title>Re: Sub Searching - tstats</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Sub-Searching-tstats/m-p/431071#M95845</link>
      <description>&lt;P&gt;Drop the sub search. Use a lookup running on indexers.&lt;/P&gt;

&lt;P&gt;Use fields instead of table.&lt;/P&gt;</description>
      <pubDate>Sat, 22 Dec 2018 00:37:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Sub-Searching-tstats/m-p/431071#M95845</guid>
      <dc:creator>valiquet</dc:creator>
      <dc:date>2018-12-22T00:37:28Z</dc:date>
    </item>
  </channel>
</rss>

