<?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: [Studio JSON Source Code] Possible to append two ds.search or ds.chain together WITHOUT subsearches? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Studio-JSON-Source-Code-Possible-to-append-two-ds-search-or-ds/m-p/689501#M56493</link>
    <description>&lt;P&gt;There's a portal for such feature requests - &lt;A href="https://ideas.splunk.com/" target="_blank"&gt;https://ideas.splunk.com/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 04 Jun 2024 08:01:43 GMT</pubDate>
    <dc:creator>PickleRick</dc:creator>
    <dc:date>2024-06-04T08:01:43Z</dc:date>
    <item>
      <title>[Studio JSON Source Code] Possible to append two ds.search or ds.chain together WITHOUT subsearches?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Studio-JSON-Source-Code-Possible-to-append-two-ds-search-or-ds/m-p/689044#M56428</link>
      <description>&lt;P&gt;Specifically speaking the dataSources section discussed here:&lt;BR /&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/9.2.1/DashStudio/dashDef#The_dataSources_section" target="_blank" rel="noopener"&gt;https://docs.splunk.com/Documentation/Splunk/9.2.1/DashStudio/dashDef#The_dataSources_section&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hypothetically, I have two tables, each stored in individual data source stanzas:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Table 1 = &lt;FONT face="courier new,courier"&gt;ds.search&lt;/FONT&gt; stanza 1&lt;/LI&gt;&lt;LI&gt;Table 2 = &lt;FONT face="courier new,courier"&gt;ds.search&lt;/FONT&gt; stanza 2&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;The goal is to &lt;STRONG&gt;append&lt;/STRONG&gt; the tables together, and then use the "stats join" method to merge the two tables together. If possible, this merge could be done as a &lt;FONT face="courier new,courier"&gt;ds.chain&lt;/FONT&gt; type stanza with two extend options, but it does not appear to be allowed.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ClubMed_1-1717042065345.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/31072i6FC4A226EE508BA9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ClubMed_1-1717042065345.png" alt="ClubMed_1-1717042065345.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Here's the documentation for Data source options.&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/9.2.1/DashStudio/dsOpt" target="_blank" rel="noopener"&gt;https://docs.splunk.com/Documentation/Splunk/9.2.1/DashStudio/dsOpt&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The document seems to be missing options like "extend", so I'm hoping someone knows if there's any additional options that is hidden.&lt;/P&gt;&lt;P&gt;Now, I am trying to avoid using the [] subsearches because of 50,000 row limit, so the following append command will not be desired:&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;lt;base search&amp;gt; | append [search ....]&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Anyone with mastery of JSON hacks might know if appending two data sources stanzas together be possible?&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Thu, 30 May 2024 04:09:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Studio-JSON-Source-Code-Possible-to-append-two-ds-search-or-ds/m-p/689044#M56428</guid>
      <dc:creator>ClubMed</dc:creator>
      <dc:date>2024-05-30T04:09:16Z</dc:date>
    </item>
    <item>
      <title>Re: [Studio JSON Source Code] Possible to append two ds.search or ds.chain together WITHOUT subsearches?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Studio-JSON-Source-Code-Possible-to-append-two-ds-search-or-ds/m-p/689046#M56429</link>
      <description>&lt;P&gt;Update in case anyone tried testing to see if "&lt;FONT face="courier new,courier"&gt;append&lt;/FONT&gt;" option exists, the "&lt;FONT face="courier new,courier"&gt;append&lt;/FONT&gt;" option does actually save but appears to not work.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ClubMed_0-1717042948144.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/31073i324A8A834C6D0A58/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ClubMed_0-1717042948144.png" alt="ClubMed_0-1717042948144.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 May 2024 04:23:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Studio-JSON-Source-Code-Possible-to-append-two-ds-search-or-ds/m-p/689046#M56429</guid>
      <dc:creator>ClubMed</dc:creator>
      <dc:date>2024-05-30T04:23:43Z</dc:date>
    </item>
    <item>
      <title>Re: [Studio JSON Source Code] Possible to append two ds.search or ds.chain together WITHOUT subsearches?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Studio-JSON-Source-Code-Possible-to-append-two-ds-search-or-ds/m-p/689464#M56491</link>
      <description>&lt;P&gt;After an investigation long story short, this is not possible and it needs to be a new feature suggestion if someone needs to request it.&lt;/P&gt;&lt;P&gt;The explanation is that I looked at the network logs for the Dashboard Studio and found the payload for base and chain searches.&lt;/P&gt;&lt;P&gt;Base search has their own parameter in the payload called 'search'.&lt;/P&gt;&lt;P&gt;All chained searches are grouped together in a parameter called 'postprocess_searches'.&lt;/P&gt;&lt;P&gt;There's no other parameters that support a third search parameter and call it 'append'. It is in fact non-existent with the payload structure.&lt;/P&gt;&lt;P&gt;Furthermore, based on the name 'postprocess_searches' parameter, it is clear only the base search gets distributable commands. All post-process searches (chained searches) happen on the searchhead only.&lt;/P&gt;&lt;P&gt;That is an important rule to keep in mind. If you want your search to be fast, then all the compute-heavy commands need to be in the base search.&lt;/P&gt;&lt;P&gt;Unfortunately, that means you'd need your base search to be a relatively large table of all sourcetypes appended together into a single table and do whatever necessary aggregation is required. Then use chained searches to slice and dice this large table into small bits, such as dividing by 'sourcetype' to branch out the table into multiple smaller "base" tables as the basis for additional chained searches.&lt;/P&gt;&lt;P&gt;In my case, I formulated my base search to be a merge of 3 different sourcetypes using stats join. It is reasonably fast with the ability to distribute the base search, despite having 15+ chained searches running off of it!&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jun 2024 23:35:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Studio-JSON-Source-Code-Possible-to-append-two-ds-search-or-ds/m-p/689464#M56491</guid>
      <dc:creator>ClubMed</dc:creator>
      <dc:date>2024-06-03T23:35:52Z</dc:date>
    </item>
    <item>
      <title>Re: [Studio JSON Source Code] Possible to append two ds.search or ds.chain together WITHOUT subsearches?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Studio-JSON-Source-Code-Possible-to-append-two-ds-search-or-ds/m-p/689501#M56493</link>
      <description>&lt;P&gt;There's a portal for such feature requests - &lt;A href="https://ideas.splunk.com/" target="_blank"&gt;https://ideas.splunk.com/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jun 2024 08:01:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Studio-JSON-Source-Code-Possible-to-append-two-ds-search-or-ds/m-p/689501#M56493</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2024-06-04T08:01:43Z</dc:date>
    </item>
  </channel>
</rss>

