<?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: Do you lose any information between Chain Searches in Dashboards? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Do-you-lose-any-information-between-Chain-Searches-in-Dashboards/m-p/671359#M230087</link>
    <description>&lt;P&gt;This is an amazing find! &amp;nbsp;My tests show that indeed, when a chain search needs a field that the base search does not pass, it will fail in mysterious ways. &amp;nbsp;In most applications, the base search is not as vanilla as index=abcd, so this behavior would not be revealed. &amp;nbsp;But I consider this a bug because even if the requirement that base search must contain provisions to pass fields used by all chain searches is carefully documented, it is really counterintuitive for users and a slip can affect results in subtle ways that users may end up trusting bad data. &amp;nbsp;Good news is that DS team is aggressively trying to relieve user friction. &amp;nbsp;Bad news is that this is a rather tricky one so I don't expect speedy fix even if they accept it as a bug.&lt;/P&gt;&lt;P&gt;Here is the gist of the problem/behavior: To improve performance, SPL compiler will decide which field(s) to pass through a pipe by inspecting downstream searches. &amp;nbsp;Because base search and chain search are completely separate as far as compiler is concerned, only indexed fields and explicitly invoked fields in the base search will be passed to chain searches. &amp;nbsp;In your example, base search &lt;U&gt;&lt;FONT face="courier new,courier"&gt;index=_internal&lt;/FONT&gt;&lt;/U&gt; will only pass _time, sourcetype, source, host, etc. &amp;nbsp;All search-time fields are omitted. &amp;nbsp;When you change base search to &lt;U&gt;&lt;FONT face="courier new,courier"&gt;index=_internal useTypeahead=true&lt;/FONT&gt;&lt;/U&gt;, the compiler sees that useTypeahead is referenced, therefore it passes this to result cache.&lt;/P&gt;&lt;P&gt;Here is a simpler test dashboard to demonstrate: (I use date_hour because it is 100% populated)&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
	"visualizations": {
		"viz_AD6BWNHC": {
			"type": "splunk.events",
			"dataSources": {
				"primary": "ds_4EfZYMc8"
			},
			"title": "base1",
			"description": "index=_internal",
			"showProgressBar": false,
			"showLastUpdated": false
		},
		"viz_TrPHlPsH": {
			"type": "splunk.events",
			"dataSources": {
				"primary": "ds_561TjAWf"
			},
			"showProgressBar": false,
			"showLastUpdated": false,
			"title": "base1 | table date_hour sourcetype _time",
			"description": "(bad)"
		},
		"viz_SiLJUCQc": {
			"type": "splunk.events",
			"dataSources": {
				"primary": "ds_FmGTHy8w"
			},
			"title": "base2",
			"description": "index=_internal date_hour=*"
		},
		"viz_A0PjYfHd": {
			"type": "splunk.events",
			"dataSources": {
				"primary": "ds_feUCBRcX"
			},
			"title": "base2 | table date_second sourcetype _time",
			"description": "(good)"
		}
	},
	"dataSources": {
		"ds_4EfZYMc8": {
			"type": "ds.search",
			"options": {
				"query": "index=_internal",
				"queryParameters": {
					"earliest": "-4h@m",
					"latest": "now"
				}
			},
			"name": "base1"
		},
		"ds_561TjAWf": {
			"type": "ds.chain",
			"options": {
				"extend": "ds_4EfZYMc8",
				"query": "| table date_hour sourcetype _time"
			},
			"name": "chain"
		},
		"ds_FmGTHy8w": {
			"type": "ds.search",
			"options": {
				"query": "index=_internal date_hour=*",
				"queryParameters": {
					"earliest": "-4h@m",
					"latest": "now"
				}
			},
			"name": "base2"
		},
		"ds_feUCBRcX": {
			"type": "ds.chain",
			"options": {
				"extend": "ds_FmGTHy8w",
				"query": "| table date_hour sourcetype _time"
			},
			"name": "chain1a"
		}
	},
	"defaults": {
		"dataSources": {
			"ds.search": {
				"options": {
					"queryParameters": {
						"latest": "$global_time.latest$",
						"earliest": "$global_time.earliest$"
					}
				}
			}
		}
	},
	"inputs": {},
	"layout": {
		"type": "grid",
		"options": {
			"width": 1440,
			"height": 960
		},
		"structure": [
			{
				"item": "viz_AD6BWNHC",
				"type": "block",
				"position": {
					"x": 0,
					"y": 0,
					"w": 720,
					"h": 307
				}
			},
			{
				"item": "viz_TrPHlPsH",
				"type": "block",
				"position": {
					"x": 0,
					"y": 307,
					"w": 720,
					"h": 266
				}
			},
			{
				"item": "viz_SiLJUCQc",
				"type": "block",
				"position": {
					"x": 720,
					"y": 0,
					"w": 720,
					"h": 307
				}
			},
			{
				"item": "viz_A0PjYfHd",
				"type": "block",
				"position": {
					"x": 720,
					"y": 307,
					"w": 720,
					"h": 266
				}
			}
		],
		"globalInputs": []
	},
	"description": "https://community.splunk.com/t5/Splunk-Search/Do-you-lose-any-information-between-Chain-Searches-in-Dashboards/m-p/671245#M230046",
	"title": "Chain search lose info test fresh"
}&lt;/LI-CODE&gt;&lt;P&gt;This is the result:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="chain-search-lose-info.png" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/28448i197C48ED22E5C663/image-size/large?v=v2&amp;amp;px=999" role="button" title="chain-search-lose-info.png" alt="chain-search-lose-info.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Here, date_hour is null in the chain search using index=_internal as base search.&lt;/P&gt;&lt;P&gt;One recommendation about your workaround: If your base search uses&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=_internal useTypeahead=true&lt;/LI-CODE&gt;&lt;P&gt;instead of &lt;FONT face="courier new,courier"&gt;index=_internal | useTypeahead=true&lt;/FONT&gt;, the indexer will return a lot fewer events, and the search will be much more efficient.&lt;/P&gt;&lt;P&gt;As to the bug/behavior, because the cause is inherent to the compiler, I imagine it to be really difficult for a high-level application like a dashboard engine to influence. &amp;nbsp;Nevertheless, I trust that the DS team will be grateful that you discovered this problem.&lt;/P&gt;</description>
    <pubDate>Sat, 09 Dec 2023 11:12:40 GMT</pubDate>
    <dc:creator>yuanliu</dc:creator>
    <dc:date>2023-12-09T11:12:40Z</dc:date>
    <item>
      <title>Do you lose any information between Chain Searches in Dashboards?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Do-you-lose-any-information-between-Chain-Searches-in-Dashboards/m-p/671043#M229976</link>
      <description>&lt;P&gt;Do you need to return output from one section of a chain search to another, like when writing a function in a programming language&lt;/P&gt;&lt;P&gt;I've assumed that a chained search would, as a user, act in a similar fashion to concatenating both searches, but with a really DRY efficiency - so superb use for dashboarding as often the material being presented shared a common subject.&lt;/P&gt;&lt;P&gt;There are certain queries I am running that break when used in a chained order - am I missing some kind of return function needed?&lt;/P&gt;</description>
      <pubDate>Wed, 06 Dec 2023 17:18:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Do-you-lose-any-information-between-Chain-Searches-in-Dashboards/m-p/671043#M229976</guid>
      <dc:creator>splunkernator</dc:creator>
      <dc:date>2023-12-06T17:18:35Z</dc:date>
    </item>
    <item>
      <title>Re: Do you lose any information between Chain Searches in Dashboards?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Do-you-lose-any-information-between-Chain-Searches-in-Dashboards/m-p/671049#M229977</link>
      <description>&lt;P&gt;Chained search simply operate on the events in the pipeline left from the previous search in the chain.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Dec 2023 17:33:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Do-you-lose-any-information-between-Chain-Searches-in-Dashboards/m-p/671049#M229977</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-12-06T17:33:02Z</dc:date>
    </item>
    <item>
      <title>Re: Do you lose any information between Chain Searches in Dashboards?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Do-you-lose-any-information-between-Chain-Searches-in-Dashboards/m-p/671126#M230009</link>
      <description>&lt;P&gt;Thanks for responding - when I run the search chained I get NULL, whereas when I run it in a single block, i get separation by severity field in severity.&amp;nbsp; (I've obfuscated the search a bit)&lt;/P&gt;&lt;P&gt;Expected behaviour&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=my_index
| spath eventClass
| search eventClass="my.event"
| timechart count(eventClass) by severity&lt;/LI-CODE&gt;&lt;P&gt;Unexpected behaviour (displays graph, but without field separation showing "NULL"&lt;/P&gt;&lt;P&gt;Chained Parent&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=my_index&lt;/LI-CODE&gt;&lt;P&gt;Chained child&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| spath eventClass
| search eventClass="my.event"
| timechart count(eventClass) by severity&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;What even more confusing is the graph on the dashboard, when view and clicked on to forward to the standard search and reporting, works.&amp;nbsp; So the division of the events seems to fail as it something has been lost, passing from parent to child.&lt;/P&gt;&lt;P&gt;Thanks again for any time or attention given to this.&amp;nbsp; Each event is a JSON document logged via HEC, if that's important know.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Dec 2023 08:41:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Do-you-lose-any-information-between-Chain-Searches-in-Dashboards/m-p/671126#M230009</guid>
      <dc:creator>splunkernator</dc:creator>
      <dc:date>2023-12-07T08:41:24Z</dc:date>
    </item>
    <item>
      <title>Re: Do you lose any information between Chain Searches in Dashboards?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Do-you-lose-any-information-between-Chain-Searches-in-Dashboards/m-p/671129#M230010</link>
      <description>&lt;P&gt;When looking at the job inspector there seems to be a massive difference (I am a novice at debugging this)&amp;nbsp;&lt;/P&gt;&lt;P&gt;the&amp;nbsp;&lt;SPAN&gt;normalizedSearch looks very different (due to chaining?).&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Im unable to progress this further due to prestats command not being recognised - was hoping to recreate the search step by step to understand where this breaks so I can ask our splunk gurus a focused question&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Dec 2023 09:17:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Do-you-lose-any-information-between-Chain-Searches-in-Dashboards/m-p/671129#M230010</guid>
      <dc:creator>splunkernator</dc:creator>
      <dc:date>2023-12-07T09:17:33Z</dc:date>
    </item>
    <item>
      <title>Re: Do you lose any information between Chain Searches in Dashboards?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Do-you-lose-any-information-between-Chain-Searches-in-Dashboards/m-p/671170#M230025</link>
      <description>&lt;P&gt;Do this: In the panel that you suspect information loss, click the magnifying glass ("Open in search"). &amp;nbsp;Run the search again in the new window. &amp;nbsp;Post the two outputs if they are different. (Anonymize as needed.&lt;/P&gt;&lt;P&gt;As&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;says, chained search simply uses the results from the main search as if it is the interim output from part of the same search as shown in the new window. &amp;nbsp;The only difference is that the main search runs with its own job ID so multiple chained searches can use the same results. &amp;nbsp;No information should be lost. (Unless there is some memory/disk limits that prevents saving the complete results.)&lt;/P&gt;</description>
      <pubDate>Thu, 07 Dec 2023 17:40:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Do-you-lose-any-information-between-Chain-Searches-in-Dashboards/m-p/671170#M230025</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2023-12-07T17:40:23Z</dc:date>
    </item>
    <item>
      <title>Re: Do you lose any information between Chain Searches in Dashboards?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Do-you-lose-any-information-between-Chain-Searches-in-Dashboards/m-p/671194#M230031</link>
      <description>&lt;P&gt;OK - that is a really good call - frustratingly I do get a working search even on the charts that show no data&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'll need to touch base with our cyber team to get a review done before I post anything, sorry&lt;/P&gt;&lt;P&gt;I did create a test dashboard with&amp;nbsp;&lt;/P&gt;&lt;P&gt;chart 1 =&amp;nbsp;index=my_index&amp;nbsp; &amp;nbsp;&lt;BR /&gt;(shows data)&lt;/P&gt;&lt;P&gt;chart 2 =&amp;nbsp;&amp;nbsp;&lt;BR /&gt;index=my_index (base)&amp;nbsp;&lt;BR /&gt;timechart span=30m count(eventClass) by severity (chained search)&lt;BR /&gt;(NO DATA)&lt;/P&gt;&lt;P&gt;Really appreciate the time and effort spent here - I have used chained searches elsewhere, I'll check the docs again.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Dec 2023 21:35:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Do-you-lose-any-information-between-Chain-Searches-in-Dashboards/m-p/671194#M230031</guid>
      <dc:creator>splunkernator</dc:creator>
      <dc:date>2023-12-07T21:35:40Z</dc:date>
    </item>
    <item>
      <title>Re: Do you lose any information between Chain Searches in Dashboards?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Do-you-lose-any-information-between-Chain-Searches-in-Dashboards/m-p/671213#M230036</link>
      <description>&lt;P&gt;&lt;SPAN&gt;No, it's like keeping your shopping list when you move between store aisles. In dashboards, information stays even if you switch views, so you don't lose any details during your search journey. &lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Dec 2023 06:47:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Do-you-lose-any-information-between-Chain-Searches-in-Dashboards/m-p/671213#M230036</guid>
      <dc:creator>soniya-01</dc:creator>
      <dc:date>2023-12-08T06:47:17Z</dc:date>
    </item>
    <item>
      <title>Re: Do you lose any information between Chain Searches in Dashboards?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Do-you-lose-any-information-between-Chain-Searches-in-Dashboards/m-p/671226#M230040</link>
      <description>&lt;P&gt;Do you mean to say that these two together&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=my_index
timechart span=30m count(eventClass) by severity&lt;/LI-CODE&gt;&lt;P&gt;returns results but when &amp;nbsp;they are respectively the main search and changed search, nothing is shown? &amp;nbsp;Posting actual output will not help in this case. &amp;nbsp;Does chart 1 use the same main search (without chained search)?&lt;/P&gt;</description>
      <pubDate>Fri, 08 Dec 2023 08:18:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Do-you-lose-any-information-between-Chain-Searches-in-Dashboards/m-p/671226#M230040</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2023-12-08T08:18:13Z</dc:date>
    </item>
    <item>
      <title>Re: Do you lose any information between Chain Searches in Dashboards?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Do-you-lose-any-information-between-Chain-Searches-in-Dashboards/m-p/671227#M230041</link>
      <description>&lt;P&gt;Hi thanks again for your attention&lt;/P&gt;&lt;P&gt;I have reproduced this in my lab (using _internal) and I have noticed differences in the chaining of searching and how it is chained, despite the fact that when you click on the link it effectively concatenates and displays.&lt;/P&gt;&lt;P&gt;I'll structure the findings into what I think is a more coherent way and post the results up later today.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Dec 2023 08:23:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Do-you-lose-any-information-between-Chain-Searches-in-Dashboards/m-p/671227#M230041</guid>
      <dc:creator>splunkernator</dc:creator>
      <dc:date>2023-12-08T08:23:11Z</dc:date>
    </item>
    <item>
      <title>Re: Do you lose any information between Chain Searches in Dashboards?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Do-you-lose-any-information-between-Chain-Searches-in-Dashboards/m-p/671237#M230043</link>
      <description>&lt;P&gt;Im sure I am missing a fundamental point&lt;/P&gt;&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="Chain Test_2023-12-08 at 09.04.29+0000_Splunk.png" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/28422iE190C72A71D91455/image-size/large?v=v2&amp;amp;px=999" role="button" title="Chain Test_2023-12-08 at 09.04.29+0000_Splunk.png" alt="Chain Test_2023-12-08 at 09.04.29+0000_Splunk.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Dec 2023 09:08:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Do-you-lose-any-information-between-Chain-Searches-in-Dashboards/m-p/671237#M230043</guid>
      <dc:creator>splunkernator</dc:creator>
      <dc:date>2023-12-08T09:08:01Z</dc:date>
    </item>
    <item>
      <title>Re: Do you lose any information between Chain Searches in Dashboards?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Do-you-lose-any-information-between-Chain-Searches-in-Dashboards/m-p/671243#M230045</link>
      <description>&lt;P&gt;The screenshot alone will not be sufficient. &amp;nbsp;As this is constructed with _internal, can you post the source code?&lt;/P&gt;</description>
      <pubDate>Fri, 08 Dec 2023 09:30:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Do-you-lose-any-information-between-Chain-Searches-in-Dashboards/m-p/671243#M230045</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2023-12-08T09:30:22Z</dc:date>
    </item>
    <item>
      <title>Re: Do you lose any information between Chain Searches in Dashboards?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Do-you-lose-any-information-between-Chain-Searches-in-Dashboards/m-p/671245#M230046</link>
      <description>&lt;P&gt;Is this what you mean?&amp;nbsp; Please let me know if I have misunderstood and thank you again&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;LI-CODE lang="markup"&gt;{
	"visualizations": {
		"viz_glNXouAy": {
			"type": "splunk.singlevalue",
			"options": {},
			"dataSources": {
				"primary": "ds_gREZNTgj"
			},
			"context": {},
			"showProgressBar": false,
			"showLastUpdated": false
		},
		"viz_1ibEKiXT": {
			"type": "splunk.singlevalue",
			"options": {},
			"dataSources": {
				"primary": "ds_PozPBYIA_ds_gREZNTgj"
			},
			"context": {},
			"showProgressBar": false,
			"showLastUpdated": false
		},
		"viz_rYhOWilO": {
			"type": "splunk.events",
			"options": {},
			"dataSources": {
				"primary": "ds_Aoy6m25x_ds_PozPBYIA_ds_gREZNTgj"
			},
			"context": {},
			"showProgressBar": false,
			"showLastUpdated": false
		},
		"viz_HS70GboS": {
			"type": "splunk.singlevalue",
			"options": {},
			"dataSources": {
				"primary": "ds_n4Q7l7oK"
			},
			"context": {},
			"showProgressBar": false,
			"showLastUpdated": false
		},
		"viz_cFoVJm3n": {
			"type": "splunk.singlevalue",
			"options": {},
			"dataSources": {
				"primary": "ds_BgOJ54ak"
			},
			"context": {},
			"showProgressBar": false,
			"showLastUpdated": false
		},
		"viz_Oh0reZaV": {
			"type": "splunk.markdown",
			"options": {
				"markdown": "base0\n\nsearch base0\n```\nindex=_internal\n```"
			}
		},
		"viz_5jz1AX2v": {
			"type": "splunk.markdown",
			"options": {
				"markdown": "base0chain1a\n\nsearch base0\n```\nindex=_internal\n```\n\nsearch chain1a\n```\n| search useTypeahead=true\n```"
			}
		},
		"viz_A5Kcf02B": {
			"type": "splunk.markdown",
			"options": {
				"markdown": "base0chain1achain2a\n\nsearch base0\n```\nindex=_internal\n```\n\nsearch chain1a\n```\n| search useTypeahead=true\n```\n\nsearch chain2a\n```\n| stats count\n```"
			}
		},
		"viz_ymCZMl2z": {
			"type": "splunk.markdown",
			"options": {
				"markdown": "combined non-chained search\n```\nindex=_internal \n| search useTypeahead=true \n| stats count\n```\n"
			}
		},
		"viz_rjA0XgMd": {
			"type": "splunk.markdown",
			"options": {
				"markdown": "base0\n\nexpected"
			}
		},
		"viz_c4r59ekz": {
			"type": "splunk.markdown",
			"options": {
				"markdown": "base0chain1a\n\n**unexpected**"
			}
		},
		"viz_hFoP7IsM": {
			"type": "splunk.markdown",
			"options": {
				"markdown": "base0chain1achain2a\n\n**unexpected**"
			}
		},
		"viz_7lRWKreL": {
			"type": "splunk.markdown",
			"options": {
				"markdown": "combined non-chained search\n\nexpected"
			}
		}
	},
	"dataSources": {
		"ds_n4Q7l7oK": {
			"type": "ds.search",
			"options": {
				"query": "index=_internal",
				"queryParameters": {
					"earliest": "$global_time.earliest$",
					"latest": "$global_time.latest$"
				}
			},
			"name": "base0"
		},
		"ds_gQjuR7jY": {
			"type": "ds.search",
			"options": {
				"query": "index=_internal\n| search useTypeahead=true",
				"queryParameters": {
					"earliest": "$global_time.earliest$",
					"latest": "$global_time.latest$"
				}
			},
			"name": "base1"
		},
		"ds_gREZNTgj": {
			"type": "ds.chain",
			"options": {
				"extend": "ds_gQjuR7jY",
				"query": "| stats count"
			},
			"name": "base1chain2"
		},
		"ds_PozPBYIA_ds_gREZNTgj": {
			"type": "ds.chain",
			"options": {
				"extend": "ds_Aoy6m25x_ds_PozPBYIA_ds_gREZNTgj",
				"query": "| stats count"
			},
			"name": "base0chain1achain2a"
		},
		"ds_Aoy6m25x_ds_PozPBYIA_ds_gREZNTgj": {
			"type": "ds.chain",
			"options": {
				"extend": "ds_n4Q7l7oK",
				"query": "| search useTypeahead=true"
			},
			"name": "base0chain1a"
		},
		"ds_BgOJ54ak": {
			"type": "ds.search",
			"options": {
				"query": "index=_internal \n| search useTypeahead=true \n| stats count"
			},
			"name": "base0chain1achain2aFull"
		}
	},
	"defaults": {
		"dataSources": {
			"ds.search": {
				"options": {
					"queryParameters": {
						"latest": "$global_time.latest$",
						"earliest": "$global_time.earliest$"
					}
				}
			}
		}
	},
	"inputs": {
		"input_global_trp": {
			"type": "input.timerange",
			"options": {
				"token": "global_time",
				"defaultValue": "-24h@h,now"
			},
			"title": "Global Time Range"
		}
	},
	"layout": {
		"type": "absolute",
		"options": {
			"width": 1440,
			"height": 1200,
			"display": "auto"
		},
		"structure": [
			{
				"item": "viz_glNXouAy",
				"type": "block",
				"position": {
					"x": 0,
					"y": 940,
					"w": 270,
					"h": 300
				}
			},
			{
				"item": "viz_1ibEKiXT",
				"type": "block",
				"position": {
					"x": 580,
					"y": 90,
					"w": 270,
					"h": 300
				}
			},
			{
				"item": "viz_rYhOWilO",
				"type": "block",
				"position": {
					"x": 290,
					"y": 90,
					"w": 270,
					"h": 300
				}
			},
			{
				"item": "viz_HS70GboS",
				"type": "block",
				"position": {
					"x": 0,
					"y": 90,
					"w": 270,
					"h": 300
				}
			},
			{
				"item": "viz_cFoVJm3n",
				"type": "block",
				"position": {
					"x": 1170,
					"y": 90,
					"w": 270,
					"h": 300
				}
			},
			{
				"item": "viz_Oh0reZaV",
				"type": "block",
				"position": {
					"x": 0,
					"y": 390,
					"w": 290,
					"h": 300
				}
			},
			{
				"item": "viz_5jz1AX2v",
				"type": "block",
				"position": {
					"x": 280,
					"y": 390,
					"w": 290,
					"h": 300
				}
			},
			{
				"item": "viz_A5Kcf02B",
				"type": "block",
				"position": {
					"x": 580,
					"y": 390,
					"w": 290,
					"h": 300
				}
			},
			{
				"item": "viz_ymCZMl2z",
				"type": "block",
				"position": {
					"x": 1170,
					"y": 390,
					"w": 290,
					"h": 300
				}
			},
			{
				"item": "viz_rjA0XgMd",
				"type": "block",
				"position": {
					"x": 0,
					"y": 0,
					"w": 290,
					"h": 80
				}
			},
			{
				"item": "viz_c4r59ekz",
				"type": "block",
				"position": {
					"x": 290,
					"y": 0,
					"w": 290,
					"h": 80
				}
			},
			{
				"item": "viz_hFoP7IsM",
				"type": "block",
				"position": {
					"x": 580,
					"y": 0,
					"w": 290,
					"h": 80
				}
			},
			{
				"item": "viz_7lRWKreL",
				"type": "block",
				"position": {
					"x": 1150,
					"y": 10,
					"w": 290,
					"h": 80
				}
			}
		],
		"globalInputs": [
			"input_global_trp"
		]
	},
	"description": "",
	"title": "Chain Test"
}&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 08 Dec 2023 09:47:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Do-you-lose-any-information-between-Chain-Searches-in-Dashboards/m-p/671245#M230046</guid>
      <dc:creator>splunkernator</dc:creator>
      <dc:date>2023-12-08T09:47:38Z</dc:date>
    </item>
    <item>
      <title>Re: Do you lose any information between Chain Searches in Dashboards?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Do-you-lose-any-information-between-Chain-Searches-in-Dashboards/m-p/671347#M230082</link>
      <description>&lt;P&gt;Think I have the solution&lt;/P&gt;&lt;P&gt;Given the base search is in fact not really a search, but a reference to and index:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=_internal&lt;/LI-CODE&gt;&lt;P&gt;It seems that as no pipeline exists, this seems to break the chain, as perhaps arguably there is no real search to begin with.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;By changing my base (base2) search as follows (which combines base0 and base0chain1a) this creates a pipeline&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=_internal
| search useTypeahead=true&lt;/LI-CODE&gt;&lt;P&gt;This then allows be to extend it further with an additional chained search successfully:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| stats count&lt;/LI-CODE&gt;&lt;P&gt;This provides me with the expected behaviour, shown in the bottom row of graphs.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Chain Test_2023-12-09 at 08.24.58+0000_Splunk.png" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/28447i90DF255C7DF19468/image-size/large?v=v2&amp;amp;px=999" role="button" title="Chain Test_2023-12-09 at 08.24.58+0000_Splunk.png" alt="Chain Test_2023-12-09 at 08.24.58+0000_Splunk.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 09 Dec 2023 08:26:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Do-you-lose-any-information-between-Chain-Searches-in-Dashboards/m-p/671347#M230082</guid>
      <dc:creator>splunkernator</dc:creator>
      <dc:date>2023-12-09T08:26:29Z</dc:date>
    </item>
    <item>
      <title>Re: Do you lose any information between Chain Searches in Dashboards?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Do-you-lose-any-information-between-Chain-Searches-in-Dashboards/m-p/671349#M230083</link>
      <description>&lt;P&gt;I'm testing the code you posted and indeed something is very strange. &amp;nbsp;It is like base0 is not configured correctly. &amp;nbsp;Any thing chained to it cannot return anything unless it is a semantic noop like "| search *".&lt;/P&gt;&lt;P&gt;I also see the method you experimented in that code using base1. &amp;nbsp;For now you can use that as a workaround. &amp;nbsp;I will continue to see what's wrong with base0 search.&lt;/P&gt;</description>
      <pubDate>Sat, 09 Dec 2023 08:51:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Do-you-lose-any-information-between-Chain-Searches-in-Dashboards/m-p/671349#M230083</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2023-12-09T08:51:32Z</dc:date>
    </item>
    <item>
      <title>Re: Do you lose any information between Chain Searches in Dashboards?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Do-you-lose-any-information-between-Chain-Searches-in-Dashboards/m-p/671357#M230086</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/33901"&gt;@yuanliu&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think I have the solution, I have pasted my guess work as a response to the original post&lt;/P&gt;&lt;P&gt;I have uploaded a dashboard with a working method, albeit perhaps not an optional one:&lt;/P&gt;&lt;P&gt;&lt;A href="https://gist.github.com/niksheridan/d8377778e4c5f1ff3e2e49b0b9899185" target="_blank"&gt;https://gist.github.com/niksheridan/d8377778e4c5f1ff3e2e49b0b9899185&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I will try and "collapsing" the first and second steps of the chain in order to actually get a pipeline working that can be further extended.&lt;/P&gt;&lt;P&gt;I'd be very grateful in your feelback, if you could be so kind as to review this, if you have the time - thank you again for you help&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks nik&lt;/P&gt;</description>
      <pubDate>Sat, 09 Dec 2023 10:31:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Do-you-lose-any-information-between-Chain-Searches-in-Dashboards/m-p/671357#M230086</guid>
      <dc:creator>splunkernator</dc:creator>
      <dc:date>2023-12-09T10:31:16Z</dc:date>
    </item>
    <item>
      <title>Re: Do you lose any information between Chain Searches in Dashboards?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Do-you-lose-any-information-between-Chain-Searches-in-Dashboards/m-p/671359#M230087</link>
      <description>&lt;P&gt;This is an amazing find! &amp;nbsp;My tests show that indeed, when a chain search needs a field that the base search does not pass, it will fail in mysterious ways. &amp;nbsp;In most applications, the base search is not as vanilla as index=abcd, so this behavior would not be revealed. &amp;nbsp;But I consider this a bug because even if the requirement that base search must contain provisions to pass fields used by all chain searches is carefully documented, it is really counterintuitive for users and a slip can affect results in subtle ways that users may end up trusting bad data. &amp;nbsp;Good news is that DS team is aggressively trying to relieve user friction. &amp;nbsp;Bad news is that this is a rather tricky one so I don't expect speedy fix even if they accept it as a bug.&lt;/P&gt;&lt;P&gt;Here is the gist of the problem/behavior: To improve performance, SPL compiler will decide which field(s) to pass through a pipe by inspecting downstream searches. &amp;nbsp;Because base search and chain search are completely separate as far as compiler is concerned, only indexed fields and explicitly invoked fields in the base search will be passed to chain searches. &amp;nbsp;In your example, base search &lt;U&gt;&lt;FONT face="courier new,courier"&gt;index=_internal&lt;/FONT&gt;&lt;/U&gt; will only pass _time, sourcetype, source, host, etc. &amp;nbsp;All search-time fields are omitted. &amp;nbsp;When you change base search to &lt;U&gt;&lt;FONT face="courier new,courier"&gt;index=_internal useTypeahead=true&lt;/FONT&gt;&lt;/U&gt;, the compiler sees that useTypeahead is referenced, therefore it passes this to result cache.&lt;/P&gt;&lt;P&gt;Here is a simpler test dashboard to demonstrate: (I use date_hour because it is 100% populated)&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
	"visualizations": {
		"viz_AD6BWNHC": {
			"type": "splunk.events",
			"dataSources": {
				"primary": "ds_4EfZYMc8"
			},
			"title": "base1",
			"description": "index=_internal",
			"showProgressBar": false,
			"showLastUpdated": false
		},
		"viz_TrPHlPsH": {
			"type": "splunk.events",
			"dataSources": {
				"primary": "ds_561TjAWf"
			},
			"showProgressBar": false,
			"showLastUpdated": false,
			"title": "base1 | table date_hour sourcetype _time",
			"description": "(bad)"
		},
		"viz_SiLJUCQc": {
			"type": "splunk.events",
			"dataSources": {
				"primary": "ds_FmGTHy8w"
			},
			"title": "base2",
			"description": "index=_internal date_hour=*"
		},
		"viz_A0PjYfHd": {
			"type": "splunk.events",
			"dataSources": {
				"primary": "ds_feUCBRcX"
			},
			"title": "base2 | table date_second sourcetype _time",
			"description": "(good)"
		}
	},
	"dataSources": {
		"ds_4EfZYMc8": {
			"type": "ds.search",
			"options": {
				"query": "index=_internal",
				"queryParameters": {
					"earliest": "-4h@m",
					"latest": "now"
				}
			},
			"name": "base1"
		},
		"ds_561TjAWf": {
			"type": "ds.chain",
			"options": {
				"extend": "ds_4EfZYMc8",
				"query": "| table date_hour sourcetype _time"
			},
			"name": "chain"
		},
		"ds_FmGTHy8w": {
			"type": "ds.search",
			"options": {
				"query": "index=_internal date_hour=*",
				"queryParameters": {
					"earliest": "-4h@m",
					"latest": "now"
				}
			},
			"name": "base2"
		},
		"ds_feUCBRcX": {
			"type": "ds.chain",
			"options": {
				"extend": "ds_FmGTHy8w",
				"query": "| table date_hour sourcetype _time"
			},
			"name": "chain1a"
		}
	},
	"defaults": {
		"dataSources": {
			"ds.search": {
				"options": {
					"queryParameters": {
						"latest": "$global_time.latest$",
						"earliest": "$global_time.earliest$"
					}
				}
			}
		}
	},
	"inputs": {},
	"layout": {
		"type": "grid",
		"options": {
			"width": 1440,
			"height": 960
		},
		"structure": [
			{
				"item": "viz_AD6BWNHC",
				"type": "block",
				"position": {
					"x": 0,
					"y": 0,
					"w": 720,
					"h": 307
				}
			},
			{
				"item": "viz_TrPHlPsH",
				"type": "block",
				"position": {
					"x": 0,
					"y": 307,
					"w": 720,
					"h": 266
				}
			},
			{
				"item": "viz_SiLJUCQc",
				"type": "block",
				"position": {
					"x": 720,
					"y": 0,
					"w": 720,
					"h": 307
				}
			},
			{
				"item": "viz_A0PjYfHd",
				"type": "block",
				"position": {
					"x": 720,
					"y": 307,
					"w": 720,
					"h": 266
				}
			}
		],
		"globalInputs": []
	},
	"description": "https://community.splunk.com/t5/Splunk-Search/Do-you-lose-any-information-between-Chain-Searches-in-Dashboards/m-p/671245#M230046",
	"title": "Chain search lose info test fresh"
}&lt;/LI-CODE&gt;&lt;P&gt;This is the result:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="chain-search-lose-info.png" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/28448i197C48ED22E5C663/image-size/large?v=v2&amp;amp;px=999" role="button" title="chain-search-lose-info.png" alt="chain-search-lose-info.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Here, date_hour is null in the chain search using index=_internal as base search.&lt;/P&gt;&lt;P&gt;One recommendation about your workaround: If your base search uses&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=_internal useTypeahead=true&lt;/LI-CODE&gt;&lt;P&gt;instead of &lt;FONT face="courier new,courier"&gt;index=_internal | useTypeahead=true&lt;/FONT&gt;, the indexer will return a lot fewer events, and the search will be much more efficient.&lt;/P&gt;&lt;P&gt;As to the bug/behavior, because the cause is inherent to the compiler, I imagine it to be really difficult for a high-level application like a dashboard engine to influence. &amp;nbsp;Nevertheless, I trust that the DS team will be grateful that you discovered this problem.&lt;/P&gt;</description>
      <pubDate>Sat, 09 Dec 2023 11:12:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Do-you-lose-any-information-between-Chain-Searches-in-Dashboards/m-p/671359#M230087</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2023-12-09T11:12:40Z</dc:date>
    </item>
    <item>
      <title>Re: Do you lose any information between Chain Searches in Dashboards?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Do-you-lose-any-information-between-Chain-Searches-in-Dashboards/m-p/671360#M230088</link>
      <description>&lt;P&gt;I can take a look some other time. (It's very late here.) &amp;nbsp;In the meantime, you can see my confirmation of this problem and how to workaround it in general in&amp;nbsp;&lt;A href="https://community.splunk.com/t5/Splunk-Search/Do-you-lose-any-information-between-Chain-Searches-in-Dashboards/m-p/671359/highlight/true#M230087" target="_self"&gt;https://community.splunk.com/t5/Splunk-Search/Do-you-lose-any-information-between-Chain-Searches-in-Dashboards/m-p/671359/highlight/true#M230087&lt;/A&gt;. (I also included a specific recommendation about coding. &amp;nbsp;Additionally, I recommend that you report this as bug and/or get support involved even though I don't expect it to be fixed soon.)&lt;/P&gt;</description>
      <pubDate>Sat, 09 Dec 2023 11:23:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Do-you-lose-any-information-between-Chain-Searches-in-Dashboards/m-p/671360#M230088</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2023-12-09T11:23:52Z</dc:date>
    </item>
    <item>
      <title>Re: Do you lose any information between Chain Searches in Dashboards?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Do-you-lose-any-information-between-Chain-Searches-in-Dashboards/m-p/671365#M230092</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/33901"&gt;@yuanliu&lt;/a&gt;&amp;nbsp;this is truly excellent work, thank you so much for your time an determination on finding the root cause of this behaviour&lt;/P&gt;</description>
      <pubDate>Sat, 09 Dec 2023 15:44:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Do-you-lose-any-information-between-Chain-Searches-in-Dashboards/m-p/671365#M230092</guid>
      <dc:creator>splunkernator</dc:creator>
      <dc:date>2023-12-09T15:44:40Z</dc:date>
    </item>
  </channel>
</rss>

