<?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: How to use tokens in Base and Chain searches in Dashboard studio? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-use-tokens-in-Base-and-Chain-searches-in-Dashboard-studio/m-p/613496#M106158</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/146653"&gt;@elizabethl_splu&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Thank you very much! Ah, so the problem was with the case (sId) and as I see, we are on version: 8.2.2203.4 so I guess we have to wait to get to 9.0.2205 and test it &lt;span class="lia-unicode-emoji" title=":face_with_open_mouth:"&gt;😮&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I will get back to you if I tried it!&lt;/P&gt;</description>
    <pubDate>Sat, 17 Sep 2022 10:20:30 GMT</pubDate>
    <dc:creator>DG</dc:creator>
    <dc:date>2022-09-17T10:20:30Z</dc:date>
    <item>
      <title>How to use tokens in Base and Chain searches in Dashboard studio?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-use-tokens-in-Base-and-Chain-searches-in-Dashboard-studio/m-p/581403#M102506</link>
      <description>&lt;P&gt;I'm still struggling getting some basic xml tokenization concepts working in Dashboard studio.&lt;BR /&gt;&lt;BR /&gt;I have a simple text box input someone types into.&amp;nbsp; from there, I want that to set a token that I use in the base search.&amp;nbsp; Next thing I want to do is take a field value pair in the results and set the value in a token to use in another panel thats going to fill in a URL and grab an image&lt;BR /&gt;&lt;BR /&gt;so:&lt;BR /&gt;&lt;BR /&gt;Base ds_lrth34 datasource:&lt;/P&gt;
&lt;P&gt;Textbox -&amp;gt; Chain Search off ds_lrth34 that runs&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&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;.. | fields MyField&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;&lt;/P&gt;
&lt;P&gt;I want to do something that I would have otherwise done this way in simple XML:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&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;&amp;lt;set token="myField"&amp;gt;$result.MyField$&amp;lt;/set&amp;gt;&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;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;but I havent found a structure to make this work at all so that when I create an image viz I could do something like this:&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;"visualizations": {
		"viz_TRhGkelt": {
			"type": "viz.img",
			"options": {
				"src": "https://myCompany.sharepoint.com/_layouts/15/userphoto.aspx?AccountName=$MyField$&amp;amp;Size=L"
			}
		}
	},&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;This is heavily utilized methodology in our simple xml dashboards, I would love the right way to tokenize things like this in the new workflow.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 14:11:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-use-tokens-in-Base-and-Chain-searches-in-Dashboard-studio/m-p/581403#M102506</guid>
      <dc:creator>mjones414</dc:creator>
      <dc:date>2022-09-16T14:11:04Z</dc:date>
    </item>
    <item>
      <title>Re: Using tokens in Base and Chain searches in Dashboard studio</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-use-tokens-in-Base-and-Chain-searches-in-Dashboard-studio/m-p/583437#M102790</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/9040"&gt;@mjones414&lt;/a&gt;&amp;nbsp;- thanks for your question.&lt;/P&gt;&lt;P&gt;What you're looking to do - use a search result as a token value - is not yet supported, but is actively being developed!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Feb 2022 18:01:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-use-tokens-in-Base-and-Chain-searches-in-Dashboard-studio/m-p/583437#M102790</guid>
      <dc:creator>elizabethl_splu</dc:creator>
      <dc:date>2022-02-02T18:01:02Z</dc:date>
    </item>
    <item>
      <title>Re: Using tokens in Base and Chain searches in Dashboard studio</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-use-tokens-in-Base-and-Chain-searches-in-Dashboard-studio/m-p/587303#M103169</link>
      <description>&lt;P&gt;*really* need this functionality.&amp;nbsp; Any idea when it will become available?&amp;nbsp; &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/146653"&gt;@elizabethl_splu&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Mar 2022 20:14:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-use-tokens-in-Base-and-Chain-searches-in-Dashboard-studio/m-p/587303#M103169</guid>
      <dc:creator>wryanthomas</dc:creator>
      <dc:date>2022-03-02T20:14:37Z</dc:date>
    </item>
    <item>
      <title>Re: Using tokens in Base and Chain searches in Dashboard studio</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-use-tokens-in-Base-and-Chain-searches-in-Dashboard-studio/m-p/587306#M103170</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/131255"&gt;@wryanthomas&lt;/a&gt;&amp;nbsp;- thanks for following up! We're actively developing enhancements for tokens support, and hope to have some updates to share with you soon!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Mar 2022 21:01:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-use-tokens-in-Base-and-Chain-searches-in-Dashboard-studio/m-p/587306#M103170</guid>
      <dc:creator>elizabethl_splu</dc:creator>
      <dc:date>2022-03-02T21:01:40Z</dc:date>
    </item>
    <item>
      <title>Re: Using tokens in Base and Chain searches in Dashboard studio</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-use-tokens-in-Base-and-Chain-searches-in-Dashboard-studio/m-p/613388#M106142</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/146653"&gt;@elizabethl_splu&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Do you have any updates about this feature? Is it implemented and documented somewhere? Thank you in advance!&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 12:27:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-use-tokens-in-Base-and-Chain-searches-in-Dashboard-studio/m-p/613388#M106142</guid>
      <dc:creator>DG</dc:creator>
      <dc:date>2022-09-16T12:27:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to use tokens in Base and Chain searches in Dashboard studio?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-use-tokens-in-Base-and-Chain-searches-in-Dashboard-studio/m-p/613466#M106147</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/9040"&gt;@mjones414&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/247626"&gt;@DG&lt;/a&gt;&amp;nbsp;- I'm happy to share that as of Splunk Cloud 8.2.2203 and Splunk Enterprise 9.0.0, you can set token values from search results. You can see an example in &lt;A href="https://www.splunk.com/en_us/blog/platform/dashboard-studio-more-maps-more-interactivity.html" target="_self"&gt;this blog&amp;nbsp;&lt;/A&gt;and in &lt;A href="https://docs.splunk.com/Documentation/SplunkCloud/8.2.2203/DashStudio/searchTokens" target="_self"&gt;our docs&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 19:26:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-use-tokens-in-Base-and-Chain-searches-in-Dashboard-studio/m-p/613466#M106147</guid>
      <dc:creator>elizabethl_splu</dc:creator>
      <dc:date>2022-09-16T19:26:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to use tokens in Base and Chain searches in Dashboard studio?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-use-tokens-in-Base-and-Chain-searches-in-Dashboard-studio/m-p/613474#M106148</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/146653"&gt;@elizabethl_splu&lt;/a&gt;&amp;nbsp;, but I have already found these, I'm more interested in what&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/9040"&gt;@mjones414&lt;/a&gt;&amp;nbsp;asked. How can we store the whole search result in a token? Like this in Classic:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;search&amp;gt;
    &amp;lt;query&amp;gt;
      index="myIndex" event="login"
    &amp;lt;/query&amp;gt;
    &amp;lt;done&amp;gt;
        &amp;lt;set token="Thing_One"&amp;gt;$job.sid$&amp;lt;/set&amp;gt;
    &amp;lt;/done&amp;gt;
&amp;lt;/search&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;and I'm utilizing the loadjob command twice:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;panel&amp;gt;
      &amp;lt;single&amp;gt;
        &amp;lt;title&amp;gt;Number of Unique users&amp;lt;/title&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;| loadjob "$Thing_One$" | stats dc(user_id) as "Unique users" 
          &amp;lt;/query&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="drilldown"&amp;gt;none&amp;lt;/option&amp;gt;
      &amp;lt;/single&amp;gt;
 &amp;lt;/panel&amp;gt;
&amp;lt;panel&amp;gt;
      &amp;lt;title&amp;gt;Unique users timeline&amp;lt;/title&amp;gt;
      &amp;lt;chart&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;| loadjob "$Thing_One$" | timechart dc(user_id) as "Unique users timeline"&amp;lt;/query&amp;gt;
        &amp;lt;/search&amp;gt;
      &amp;lt;/chart&amp;gt;
&amp;lt;/panel&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This way the SVC consumption is about half the amount of running two individual queries.&lt;/P&gt;&lt;P&gt;I am asking because as our team measured (with Chargeback app for Splunk), in Dashboard Studio using 1 ds.search (base) with 2 chain searches (children) are consuming almost as much SVCs as 2 individual ds.searches. We thought that using chain searches will execute the same base only once, so the SVC consumption will be half of that. I would try loadjob in Dashboard Studio, but I could not load any ds.search's result. I tried several syntax from the page you linked. (loadjob&amp;nbsp;&lt;SPAN&gt;$search name:job.sId$,&amp;nbsp;$search name:result$,&amp;nbsp;$search name:results$ etc.) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you for your help!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 21:02:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-use-tokens-in-Base-and-Chain-searches-in-Dashboard-studio/m-p/613474#M106148</guid>
      <dc:creator>DG</dc:creator>
      <dc:date>2022-09-16T21:02:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to use tokens in Base and Chain searches in Dashboard studio?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-use-tokens-in-Base-and-Chain-searches-in-Dashboard-studio/m-p/613480#M106152</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/247626"&gt;@DG&lt;/a&gt;&amp;nbsp;! A few things to check:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;$data source name:job.sid$ was added in 9.0.2205, so it was not part of the initial set of metadata supported when search tokens were first introduced in 8.2.2203&lt;/LI&gt;&lt;LI&gt;Make sure you have this check box selected:&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="elizabethl_splu_0-1663368935820.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/21520iF56B8FAA244800D9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="elizabethl_splu_0-1663368935820.png" alt="elizabethl_splu_0-1663368935820.png" /&gt;&lt;/span&gt;&lt;/LI&gt;&lt;LI&gt;"sid" should be all lowercase. I noticed in our docs, we have camel case "sId" and I'm working with our technical writer to update to all lowercase now&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;I've just tested this out in 9.0.2205 and can confirm that a ds.search with | loadjob $data source name:job.sid$ works&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 22:59:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-use-tokens-in-Base-and-Chain-searches-in-Dashboard-studio/m-p/613480#M106152</guid>
      <dc:creator>elizabethl_splu</dc:creator>
      <dc:date>2022-09-16T22:59:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to use tokens in Base and Chain searches in Dashboard studio?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-use-tokens-in-Base-and-Chain-searches-in-Dashboard-studio/m-p/613482#M106153</link>
      <description>&lt;P&gt;Seems like I can only upload one image per post, so here's an example of using loadjob:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="elizabethl_splu_0-1663369103182.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/21521i7B139F0AA22D0A67/image-size/medium?v=v2&amp;amp;px=400" role="button" title="elizabethl_splu_0-1663369103182.png" alt="elizabethl_splu_0-1663369103182.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 22:58:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-use-tokens-in-Base-and-Chain-searches-in-Dashboard-studio/m-p/613482#M106153</guid>
      <dc:creator>elizabethl_splu</dc:creator>
      <dc:date>2022-09-16T22:58:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to use tokens in Base and Chain searches in Dashboard studio?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-use-tokens-in-Base-and-Chain-searches-in-Dashboard-studio/m-p/613496#M106158</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/146653"&gt;@elizabethl_splu&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Thank you very much! Ah, so the problem was with the case (sId) and as I see, we are on version: 8.2.2203.4 so I guess we have to wait to get to 9.0.2205 and test it &lt;span class="lia-unicode-emoji" title=":face_with_open_mouth:"&gt;😮&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I will get back to you if I tried it!&lt;/P&gt;</description>
      <pubDate>Sat, 17 Sep 2022 10:20:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-use-tokens-in-Base-and-Chain-searches-in-Dashboard-studio/m-p/613496#M106158</guid>
      <dc:creator>DG</dc:creator>
      <dc:date>2022-09-17T10:20:30Z</dc:date>
    </item>
  </channel>
</rss>

