<?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: subsearch in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Why-does-subsearch-always-have-zero-results/m-p/646739#M223855</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/257399"&gt;@Lavani&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please run only the subsearch part on the production and see if it gives any output:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rest /services/authentication/users
| table roles title
| rename title as userName,roles as role
| mvexpand role | search role="logmon_app*" &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 13 Jun 2023 04:02:07 GMT</pubDate>
    <dc:creator>inventsekar</dc:creator>
    <dc:date>2023-06-13T04:02:07Z</dc:date>
    <item>
      <title>Why does subsearch always have zero results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-does-subsearch-always-have-zero-results/m-p/646736#M223852</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello Everyone.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I have a search with a subsearch that's correctly running on a test environment (Splunk 8.2.9).&amp;nbsp;Now I copied it on a production environment (Splunk 82.9), but it doesn't run: the subsearch has always zero as result.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;| rest /services/authorization/roles/&lt;BR /&gt;| search title="logmon_app*" | table title&lt;BR /&gt;| rename title as role&lt;BR /&gt;| join type=left role max=0&lt;BR /&gt;[| rest /services/authentication/users&lt;BR /&gt;| table roles title&lt;BR /&gt;| rename title as userName,roles as role&lt;BR /&gt;| mvexpand role | search role="logmon_app*" ]&lt;BR /&gt;| stats values(userName) as username by role | eval rolepresent="yes"&lt;BR /&gt;| outputlookup logmon_roles_users.csv override_if_empty=false,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2023 14:21:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-does-subsearch-always-have-zero-results/m-p/646736#M223852</guid>
      <dc:creator>Lavani</dc:creator>
      <dc:date>2023-06-13T14:21:16Z</dc:date>
    </item>
    <item>
      <title>Re: subsearch</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-does-subsearch-always-have-zero-results/m-p/646739#M223855</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/257399"&gt;@Lavani&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please run only the subsearch part on the production and see if it gives any output:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rest /services/authentication/users
| table roles title
| rename title as userName,roles as role
| mvexpand role | search role="logmon_app*" &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2023 04:02:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-does-subsearch-always-have-zero-results/m-p/646739#M223855</guid>
      <dc:creator>inventsekar</dc:creator>
      <dc:date>2023-06-13T04:02:07Z</dc:date>
    </item>
  </channel>
</rss>

