<?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: Why does tstats not work with macros in child dataset in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Why-does-tstats-not-work-with-macros-in-child-dataset/m-p/629489#M218674</link>
    <description>&lt;P&gt;If you use the pivot interface and select the VPN child do you get results?&lt;/P&gt;&lt;P&gt;Can you try this?&lt;BR /&gt;| tstats prestats=true summariesonly=false allow_old_summaries=true values(sourcetype) as sourcetype FROM datamodel=Authentication WHERE nodename=Authentication.VPN&amp;nbsp;&lt;BR /&gt;| stats dedup_splitvals=t values(sourcetype)&lt;/P&gt;</description>
    <pubDate>Fri, 03 Feb 2023 12:28:11 GMT</pubDate>
    <dc:creator>diogofgm</dc:creator>
    <dc:date>2023-02-03T12:28:11Z</dc:date>
    <item>
      <title>Why does tstats not work with macros in child dataset?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-does-tstats-not-work-with-macros-in-child-dataset/m-p/629474#M218669</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2023-02-03 at 13.37.51.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/23702iDECCB0C30AC2DB92/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2023-02-03 at 13.37.51.png" alt="Screenshot 2023-02-03 at 13.37.51.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I try&amp;nbsp;use macros to get external indexes in child dataset VPN, but search with tstats on this dataset doesn't work.&amp;nbsp; Example of search:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;| tstats values(sourcetype) as sourcetype from datamodel=authentication.authentication where nodename=authentication.VPN by nodename&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; But when&lt;SPAN class=""&gt;&amp;nbsp;I explicitly enumerate the indexes, then everything works! And also it work with macros when i use search:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;| from datamodel ...&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;&lt;BR /&gt;What's problem?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Feb 2023 16:15:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-does-tstats-not-work-with-macros-in-child-dataset/m-p/629474#M218669</guid>
      <dc:creator>kyokkygo</dc:creator>
      <dc:date>2023-02-03T16:15:10Z</dc:date>
    </item>
    <item>
      <title>Re: Why does tstats not work with macros in child dataset</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-does-tstats-not-work-with-macros-in-child-dataset/m-p/629489#M218674</link>
      <description>&lt;P&gt;If you use the pivot interface and select the VPN child do you get results?&lt;/P&gt;&lt;P&gt;Can you try this?&lt;BR /&gt;| tstats prestats=true summariesonly=false allow_old_summaries=true values(sourcetype) as sourcetype FROM datamodel=Authentication WHERE nodename=Authentication.VPN&amp;nbsp;&lt;BR /&gt;| stats dedup_splitvals=t values(sourcetype)&lt;/P&gt;</description>
      <pubDate>Fri, 03 Feb 2023 12:28:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-does-tstats-not-work-with-macros-in-child-dataset/m-p/629489#M218674</guid>
      <dc:creator>diogofgm</dc:creator>
      <dc:date>2023-02-03T12:28:11Z</dc:date>
    </item>
  </channel>
</rss>

