<?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: How to use Subsearch to achieve this ? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-Subsearch-to-achieve-this/m-p/587439#M204579</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/237518"&gt;@zacksoft_wf&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;can you try this&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;index=computer_admin source=emp_card_details sourcetype="something:db"&lt;BR /&gt;| join type=left &lt;STRONG&gt;C_NAME&lt;/STRONG&gt;&lt;BR /&gt;[| search index=computer_admin source=admin_priv sourcetype=prive:db account_name=admin earliest=-1d&lt;BR /&gt;&lt;STRONG&gt;| rename comp_name as C_NAME&lt;/STRONG&gt;&lt;BR /&gt;| table C_NAME,comp_role,account_name,local_gp,gp_name]&lt;BR /&gt;| eval arl=lower(C_NAME)&lt;BR /&gt;| stats values(asset_owner) by arl&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 03 Mar 2022 13:55:32 GMT</pubDate>
    <dc:creator>SanjayReddy</dc:creator>
    <dc:date>2022-03-03T13:55:32Z</dc:date>
    <item>
      <title>How to use Subsearch to achieve this ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-Subsearch-to-achieve-this/m-p/587425#M204575</link>
      <description>&lt;P&gt;I have 2 Splunk SPLs&lt;BR /&gt;=====================&lt;BR /&gt;index=computer_admin source=admin_priv sourcetype=prive:db account_name=admin earliest=-1d&lt;BR /&gt;| fields comp_name,comp_role,account_name,local_gp,gp_name&lt;BR /&gt;| table &lt;STRONG&gt;comp_name,&lt;/STRONG&gt;comp_role,account_name,local_gp,gp_name&lt;BR /&gt;=====================&lt;BR /&gt;&lt;BR /&gt;The comp_name fields has values such as ,&amp;nbsp;&lt;BR /&gt;&lt;U&gt;AAAAA, BBBBB,&amp;nbsp; CCCCC, AFSGSH, GFDFDF, IUYTE, HGFDJ, ZZZZZ, YYYYYY, IIIIII, EEEEEE&lt;/U&gt;&lt;BR /&gt;Basically I am looking for all the comp_names that the admin is on and copying the list to use in another SPL&amp;nbsp; to get the comp owners.&lt;BR /&gt;&lt;BR /&gt;Second SPL :&lt;BR /&gt;===================&lt;BR /&gt;index=computer_admin&amp;nbsp; source=emp_card_details&amp;nbsp; sourcetype="something:db" &lt;STRONG&gt;C_NAME&lt;/STRONG&gt; IN (AAAAA, BBBBB,&amp;nbsp; CCCCC, AFSGSH, GFDFDF, IUYTE, HGFDJ, ZZZZZ, YYYYYY, IIIIII, EEEEEE)&lt;BR /&gt;| eval arl=lower(C_NAME)&lt;BR /&gt;| stats values(asset_owner) by arl&lt;BR /&gt;===================&lt;BR /&gt;&lt;BR /&gt;Can we use subsearch or any thing similar to get it done in on SPL ?&lt;BR /&gt;Any assistance ?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2022 13:56:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-Subsearch-to-achieve-this/m-p/587425#M204575</guid>
      <dc:creator>zacksoft_wf</dc:creator>
      <dc:date>2022-03-03T13:56:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Subsearch to achieve this ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-Subsearch-to-achieve-this/m-p/587439#M204579</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/237518"&gt;@zacksoft_wf&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;can you try this&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;index=computer_admin source=emp_card_details sourcetype="something:db"&lt;BR /&gt;| join type=left &lt;STRONG&gt;C_NAME&lt;/STRONG&gt;&lt;BR /&gt;[| search index=computer_admin source=admin_priv sourcetype=prive:db account_name=admin earliest=-1d&lt;BR /&gt;&lt;STRONG&gt;| rename comp_name as C_NAME&lt;/STRONG&gt;&lt;BR /&gt;| table C_NAME,comp_role,account_name,local_gp,gp_name]&lt;BR /&gt;| eval arl=lower(C_NAME)&lt;BR /&gt;| stats values(asset_owner) by arl&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2022 13:55:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-Subsearch-to-achieve-this/m-p/587439#M204579</guid>
      <dc:creator>SanjayReddy</dc:creator>
      <dc:date>2022-03-03T13:55:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Subsearch to achieve this ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-Subsearch-to-achieve-this/m-p/587443#M204581</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/236694"&gt;@SanjayReddy&lt;/a&gt;&amp;nbsp;The field name is &lt;STRONG&gt;C_NAME&lt;/STRONG&gt; in one SPL and&amp;nbsp; &lt;STRONG&gt;comp_name&lt;/STRONG&gt; is another SPL,&lt;BR /&gt;In that case will,&amp;nbsp; | join type=left C_NAME truly join the two data sets ?&lt;BR /&gt;Just curious, my understanding could be wrong here !&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2022 13:53:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-Subsearch-to-achieve-this/m-p/587443#M204581</guid>
      <dc:creator>zacksoft_wf</dc:creator>
      <dc:date>2022-03-03T13:53:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Subsearch to achieve this ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-Subsearch-to-achieve-this/m-p/587444#M204582</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/237518"&gt;@zacksoft_wf&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;in sub search we are renaming&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;STRONG&gt;comp_name&lt;/STRONG&gt; as &lt;STRONG&gt;C_NAME&lt;/STRONG&gt; to match with data in main query&lt;BR /&gt;&amp;nbsp; then both sub search and main searches are joined by common field&amp;nbsp;C_NAME&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2022 13:55:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-Subsearch-to-achieve-this/m-p/587444#M204582</guid>
      <dc:creator>SanjayReddy</dc:creator>
      <dc:date>2022-03-03T13:55:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Subsearch to achieve this ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-Subsearch-to-achieve-this/m-p/587448#M204584</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/236694"&gt;@SanjayReddy&lt;/a&gt;&amp;nbsp; Thanks Sanjay, this helps.&lt;BR /&gt;About the&amp;nbsp;earliest=-1d&amp;nbsp; written in the inner SPL, does it mean , it will&amp;nbsp; force both the inner and outer query to run in the -1d time range , irrespective of the time range chosen in the search-bar ?&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2022 14:12:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-Subsearch-to-achieve-this/m-p/587448#M204584</guid>
      <dc:creator>zacksoft_wf</dc:creator>
      <dc:date>2022-03-03T14:12:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Subsearch to achieve this ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-Subsearch-to-achieve-this/m-p/587449#M204585</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/237518"&gt;@zacksoft_wf&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;STRONG&gt;earliest=-1d&lt;/STRONG&gt; only applicable to inner search&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;main search will run on time frame that selected in time range picker&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;if you want to run both searches on same time frame you can remove&amp;nbsp;&lt;SPAN&gt;earliest=-1d from inner search&amp;nbsp;&lt;BR /&gt;then both searche will run as per time rangepicker time&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;---&lt;BR /&gt;If this reply helps you, an upvote/Karma would be appreciated.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2022 14:21:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-Subsearch-to-achieve-this/m-p/587449#M204585</guid>
      <dc:creator>SanjayReddy</dc:creator>
      <dc:date>2022-03-03T14:21:13Z</dc:date>
    </item>
  </channel>
</rss>

