Having issues with splitting the complete search between "basesearch" and "remaining search in other panels". Complete Search ############# index=Temp_Index="http:hec_splunk" sourcetype="json:script_output" "Source Team"="UNIX_SA" | where like('Region', "%APAC%") | stats sum(TotalSpace) AS Total sum(UsedSpace) AS Used sum(AvailableSpace) AS Available | eval Total=round(Total/1024,0) | eval Used=round(Used/1024,0) | eval Available=round(Available/1024,0) | table Used,Available | transpose | eval Used=Used."(".Used."%)" Below split is the only working search. but this won't work for me. Working XML Code ############## <row> <panel depends="$nevershowup$"> <event> <title>BASE SEARCH PANEL</title> <search id="baseSearch"> <query>index=Temp_Index="http:hec_splunk" sourcetype="json:script_output" "Source Team"="UNIX_SA" | where like('Region', "%APAC%") | stats sum(TotalSpace) AS Total sum(UsedSpace) AS Used sum(AvailableSpace) AS Available | eval Total=round(Total/1024,0) | eval Used=round(Used/1024,0) | eval Available=round(Available/1024,0) | table Used,Available | transpose | </query> <earliest>$timepicker.earliest$</earliest> <latest>$timepicker.latest$</latest> </search> <option name="list.drilldown">none</option> </event> </panel> </row> <row> <panel> <title>NAM Region</title> <chart> <search base="baseSearch"> <query> eval Used=Used."(".Used."%)"</query> </search> <option name="charting.chart">pie</option> <option name="charting.chart.showDataLabels">all</option> <option name="charting.chart.showPercent">true</option> <option name="charting.chart.stackMode">stacked100</option> <option name="charting.drilldown">none</option> <option name="charting.legend.placement">top</option> <option name="refresh.display">progressbar</option> </chart> </panel> </row> The way i want it to work but not working ############################# The reason is, i have many panels and the common string in all panel is "index=Temp_Index="http:hec_splunk" sourcetype="json:script_output" "Source Team"="UNIX_SA" and i want to use this in base search. I tried using "| fields *" from the other solutions suggested in splunk community but is it not working. <row> <panel depends="$nevershowup$"> <event> <title>BASE SEARCH PANEL</title> <search id="baseSearch"> <query>index=Temp_Index="http:hec_splunk" sourcetype="json:script_output" "Source Team"="UNIX_SA" </query> <earliest>$timepicker.earliest$</earliest> <latest>$timepicker.latest$</latest> </search> <option name="list.drilldown">none</option> </event> </panel> </row> <row> <panel> <title>NAM Region</title> <chart> <search base="baseSearch"> <query> | where like('Region', "%APAC%") | stats sum(TotalSpace) AS Total sum(UsedSpace) AS Used sum(AvailableSpace) AS Available | eval Total=round(Total/1024,0) | eval Used=round(Used/1024,0) | eval Available=round(Available/1024,0) | table Used,Available | transpose | eval Used=Used."(".Used."%)"</query> </search> <option name="charting.chart">pie</option> <option name="charting.chart.showDataLabels">all</option> <option name="charting.chart.showPercent">true</option> <option name="charting.chart.stackMode">stacked100</option> <option name="charting.drilldown">none</option> <option name="charting.legend.placement">top</option> <option name="refresh.display">progressbar</option> </chart> </panel> </row>
... View more