<?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: Joined searches return minimal results in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/Why-do-joined-searches-return-minimal-results/m-p/585412#M13488</link>
    <description>&lt;P&gt;Great, appreciate the help. I'll read up on the affects of any changes to this parameter. I'm attempting to generate and use a .csv file for my AD information, which I could update occasionally, rather than the secondary search I posted.&lt;/P&gt;&lt;P&gt;Thanks again and I'll let you know what I end up using.&lt;/P&gt;</description>
    <pubDate>Wed, 16 Feb 2022 18:48:40 GMT</pubDate>
    <dc:creator>KDallman</dc:creator>
    <dc:date>2022-02-16T18:48:40Z</dc:date>
    <item>
      <title>Why do joined searches return minimal results?</title>
      <link>https://community.splunk.com/t5/Alerting/Why-do-joined-searches-return-minimal-results/m-p/585038#M13472</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I am trying to join two searches for our AoVPN remote login system that highlights a path from user, machine name, RAS server, to the IP assigned once inside our environment. I have one search that contains nearly all results I need, with the exception of a user ID and user name (from AD). The addition of user ID and name would be for convenience.&lt;/P&gt;
&lt;P&gt;I have done some field extractions to pull the desired items out for a better dash:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;index=windows sourcetype=rasl mail=* srcip!=WPDOTRASL0* machine!=null
| rename host as rasl_server
| table _time, mail, machine, Tunnel_Endpoint, rasl_server, srcip&lt;/LI-CODE&gt;
&lt;P&gt;From here, I join another sourcetype (same index) that contains the user ID and user name. Both sourcetypes have the email addresses, so I am attempting to join with "mail" as the focus. This search seems to work fine, but only returns a minimal number of results.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;index=windows sourcetype=rasl mail=* srcip!=WPDOTRASL0* machine!=null
| rename host as rasl_server
| table _time, mail, machine, Tunnel_Endpoint, rasl_server, srcip
| join mail
[| search index=windows sourcetype=ActiveDirectory mail=*
| rename sAMAccountName as User_ID
| table _time, User_ID, name, mail]&lt;/LI-CODE&gt;
&lt;P&gt;Both searches, when ran individually, return 2000+ results. However when I run the joined search, I only see twenty or so results. The results are reliable and seem accurate, just very few of them.&lt;/P&gt;
&lt;P&gt;I'm learning myself as I go, so may be missing something simple. Thanks for any help.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Feb 2022 15:16:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Why-do-joined-searches-return-minimal-results/m-p/585038#M13472</guid>
      <dc:creator>KDallman</dc:creator>
      <dc:date>2022-02-16T15:16:29Z</dc:date>
    </item>
    <item>
      <title>Re: Joined searches return minimal results</title>
      <link>https://community.splunk.com/t5/Alerting/Why-do-joined-searches-return-minimal-results/m-p/585042#M13475</link>
      <description>&lt;P&gt;Remember that there are memory, result set size and execution time limits for subsearch. So if it exceeds the limits the subsearch gets silently terminated.&lt;BR /&gt;That's one of the reasons to avoid subsearches if you can.&lt;BR /&gt;Your case can be rewritten using stats.&lt;/P&gt;&lt;PRE&gt;(index=windows sourcetype=rasl mail=* srcip!=WPDOTRASL0* machine!=null)&lt;BR /&gt;OR (index=windows sourcetype=ActiveDirectory mail=*)&lt;BR /&gt;| rename host as rasl_server&lt;BR /&gt;| rename sAMAccountName as User_ID&lt;BR /&gt;| fields mail machine Tunnel_Endpoint rasl_server srcip User_ID name&lt;BR /&gt;| stats values(*) as * by mail&lt;/PRE&gt;</description>
      <pubDate>Tue, 15 Feb 2022 00:08:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Why-do-joined-searches-return-minimal-results/m-p/585042#M13475</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2022-02-15T00:08:59Z</dc:date>
    </item>
    <item>
      <title>Re: Joined searches return minimal results</title>
      <link>https://community.splunk.com/t5/Alerting/Why-do-joined-searches-return-minimal-results/m-p/585185#M13482</link>
      <description>&lt;P&gt;PR - thanks for the help on this. I'm guessing that the result size and execution time limits are adjusted internally with files such as transforms, limits.conf, etc? I have minimal experience "under the hood" but am working to learn this area.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I appreciate the rewritten code using stats, however it doesn't seem to populate all fields (Tunnel_Endpoint, User_ID, and srcip not returning results). I'll look a bit deeper into it to be sure I didn't make an error with your code.&lt;/P&gt;&lt;P&gt;Thanks VERY much!&lt;/P&gt;</description>
      <pubDate>Tue, 15 Feb 2022 15:20:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Why-do-joined-searches-return-minimal-results/m-p/585185#M13482</guid>
      <dc:creator>KDallman</dc:creator>
      <dc:date>2022-02-15T15:20:57Z</dc:date>
    </item>
    <item>
      <title>Re: Joined searches return minimal results</title>
      <link>https://community.splunk.com/t5/Alerting/Why-do-joined-searches-return-minimal-results/m-p/585187#M13483</link>
      <description>&lt;P&gt;Yes, the limits are set in... surprise, surprise... limits.conf &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;But unless it's really really necessary, it's better not to touch that file really. OK, if you have a huge setup and much processing power to spare you might increase a bit maximum number of parallel runing searches but that's completely another story.&lt;/P&gt;&lt;P&gt;Often it's much better to try and rewrite your searches more efficiently - many searches can be written really effectively or really very inefficiently.&lt;/P&gt;&lt;P&gt;Anyway, if you're not getting the fields, that's strange. Of course I don't know your data, but your initial search included&lt;/P&gt;&lt;PRE&gt;index=windows sourcetype=rasl mail=* srcip!=WPDOTRASL0* machine!=null&lt;BR /&gt;| rename host as rasl_server&lt;BR /&gt;| table _time, mail, machine, Tunnel_Endpoint, rasl_server, srcip&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;I literarily do the very same thing in my example (ok, I don't use "table" but use "fields" instead; there is a difference but not where it matters in this case).&lt;/P&gt;</description>
      <pubDate>Tue, 15 Feb 2022 15:27:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Why-do-joined-searches-return-minimal-results/m-p/585187#M13483</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2022-02-15T15:27:05Z</dc:date>
    </item>
    <item>
      <title>Re: Joined searches return minimal results</title>
      <link>https://community.splunk.com/t5/Alerting/Why-do-joined-searches-return-minimal-results/m-p/585191#M13484</link>
      <description>&lt;P&gt;You're correct, the individual searches return plenty of results so not sure what happened. I'll try incorporating your search a piece at a time to verify I get results and work towards the final search you provided.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Feb 2022 15:56:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Why-do-joined-searches-return-minimal-results/m-p/585191#M13484</guid>
      <dc:creator>KDallman</dc:creator>
      <dc:date>2022-02-15T15:56:16Z</dc:date>
    </item>
    <item>
      <title>Re: Joined searches return minimal results</title>
      <link>https://community.splunk.com/t5/Alerting/Why-do-joined-searches-return-minimal-results/m-p/585265#M13486</link>
      <description>&lt;P&gt;Subsearch (one written within [ ] brackets) by default returns a maximum of 10000 results only.&lt;/P&gt;&lt;P&gt;limits.conf -&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.2.4/Admin/Limitsconf" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/8.2.4/Admin/Limitsconf&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="VatsalJagani_0-1644991573514.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/17992i940E0156AD084308/image-size/medium?v=v2&amp;amp;px=400" role="button" title="VatsalJagani_0-1644991573514.png" alt="VatsalJagani_0-1644991573514.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Feb 2022 06:06:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Why-do-joined-searches-return-minimal-results/m-p/585265#M13486</guid>
      <dc:creator>VatsalJagani</dc:creator>
      <dc:date>2022-02-16T06:06:34Z</dc:date>
    </item>
    <item>
      <title>Re: Joined searches return minimal results</title>
      <link>https://community.splunk.com/t5/Alerting/Why-do-joined-searches-return-minimal-results/m-p/585412#M13488</link>
      <description>&lt;P&gt;Great, appreciate the help. I'll read up on the affects of any changes to this parameter. I'm attempting to generate and use a .csv file for my AD information, which I could update occasionally, rather than the secondary search I posted.&lt;/P&gt;&lt;P&gt;Thanks again and I'll let you know what I end up using.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Feb 2022 18:48:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Why-do-joined-searches-return-minimal-results/m-p/585412#M13488</guid>
      <dc:creator>KDallman</dc:creator>
      <dc:date>2022-02-16T18:48:40Z</dc:date>
    </item>
  </channel>
</rss>

