<?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: Dashboard search token in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-search-token/m-p/291386#M39891</link>
    <description>&lt;P&gt;Thanks Rajesh, i could only get this to work if i set search A with the drilldown option name to cell. So if i click on a RecordNumber from the Search A table, the value is shown in the Search B table. Is there a way to dynamically show all the results for the table in Search B&amp;gt;?&lt;/P&gt;</description>
    <pubDate>Tue, 20 Feb 2018 08:23:13 GMT</pubDate>
    <dc:creator>becksyboy</dc:creator>
    <dc:date>2018-02-20T08:23:13Z</dc:date>
    <item>
      <title>Dashboard search token</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-search-token/m-p/291383#M39888</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;

&lt;P&gt;im trying to learn about search tokens within the same dashboard, but not having much luck. I've set up a simple test dashboard with two panels, both are tables. I would like a search token defined for search A and used in search B for the RecordNumber field. Is it possible without a field input shown on the dashboard? &lt;/P&gt;

&lt;P&gt;Search A:&lt;BR /&gt;
index="wineventlog" LogName=Security | table EventCode RecordNumber&lt;/P&gt;

&lt;P&gt;Search B:&lt;BR /&gt;
index="wineventlog" LogName=Security RecordNumber=* | dedup RecordNumber| table RecordNumber&lt;/P&gt;

&lt;P&gt;thanks&lt;/P&gt;</description>
      <pubDate>Mon, 19 Feb 2018 20:19:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-search-token/m-p/291383#M39888</guid>
      <dc:creator>becksyboy</dc:creator>
      <dc:date>2018-02-19T20:19:39Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard search token</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-search-token/m-p/291384#M39889</link>
      <description>&lt;P&gt;Good doc pages on the same:&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/7.0.2/Viz/ContextualDrilldown"&gt;http://docs.splunk.com/Documentation/Splunk/7.0.2/Viz/ContextualDrilldown&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/7.0.2/Viz/tokens"&gt;http://docs.splunk.com/Documentation/Splunk/7.0.2/Viz/tokens&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Feb 2018 22:25:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-search-token/m-p/291384#M39889</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2018-02-19T22:25:16Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard search token</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-search-token/m-p/291385#M39890</link>
      <description>&lt;P&gt;you can use drilldown in first table like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; &amp;lt;drilldown&amp;gt;
          &amp;lt;condition field="RecordNumber"&amp;gt;
            &amp;lt;set token="selected_RecordNumber"&amp;gt;$click.value2$&amp;lt;/set&amp;gt;
          &amp;lt;/condition&amp;gt;
 &amp;lt;/drilldown&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;then use &lt;CODE&gt;$selected_RecordNumber$&lt;/CODE&gt; token in second table query like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="wineventlog" LogName=Security RecordNumber=$selected_RecordNumber$ | dedup RecordNumber| table RecordNumber
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 20 Feb 2018 02:31:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-search-token/m-p/291385#M39890</guid>
      <dc:creator>493669</dc:creator>
      <dc:date>2018-02-20T02:31:00Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard search token</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-search-token/m-p/291386#M39891</link>
      <description>&lt;P&gt;Thanks Rajesh, i could only get this to work if i set search A with the drilldown option name to cell. So if i click on a RecordNumber from the Search A table, the value is shown in the Search B table. Is there a way to dynamically show all the results for the table in Search B&amp;gt;?&lt;/P&gt;</description>
      <pubDate>Tue, 20 Feb 2018 08:23:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-search-token/m-p/291386#M39891</guid>
      <dc:creator>becksyboy</dc:creator>
      <dc:date>2018-02-20T08:23:13Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard search token</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-search-token/m-p/291387#M39892</link>
      <description>&lt;P&gt;Thanks somesoni2 i've been reading these docs, very helpful, with alot to pick through and understand.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Feb 2018 08:24:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-search-token/m-p/291387#M39892</guid>
      <dc:creator>becksyboy</dc:creator>
      <dc:date>2018-02-20T08:24:11Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard search token</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-search-token/m-p/291388#M39893</link>
      <description>&lt;P&gt;Dynamically show all the results means?  can you explain in detail that on click on table A what you are expecting in tableB&lt;/P&gt;</description>
      <pubDate>Tue, 20 Feb 2018 09:10:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-search-token/m-p/291388#M39893</guid>
      <dc:creator>493669</dc:creator>
      <dc:date>2018-02-20T09:10:21Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard search token</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-search-token/m-p/291389#M39894</link>
      <description>&lt;P&gt;Hi, i was hoping to see my table populated with results for all rows. Is that possible with a search token?&lt;/P&gt;</description>
      <pubDate>Tue, 20 Feb 2018 17:03:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-search-token/m-p/291389#M39894</guid>
      <dc:creator>becksyboy</dc:creator>
      <dc:date>2018-02-20T17:03:23Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard search token</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-search-token/m-p/291390#M39895</link>
      <description>&lt;P&gt;can you provide sample table A and expected table B to get better understanding&lt;/P&gt;</description>
      <pubDate>Tue, 20 Feb 2018 17:33:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-search-token/m-p/291390#M39895</guid>
      <dc:creator>493669</dc:creator>
      <dc:date>2018-02-20T17:33:36Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard search token</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-search-token/m-p/291391#M39896</link>
      <description>&lt;P&gt;@becksyboy, intent of your Search A and Search B is not clear.&lt;/P&gt;

&lt;P&gt;The Search A in the question returns All Events and All RecorNumbers (even duplicates). What is the purpose or the intent of this?&lt;/P&gt;

&lt;P&gt;The Search B returns all unique RecordNumbers.&lt;/P&gt;

&lt;P&gt;Please clarify the question as well  &lt;CODE&gt;I would like a search token defined for search A and used in search B for the RecordNumber field. Is it possible without a field input shown on the dashboard?&lt;/CODE&gt;. What do you want to do here?&lt;/P&gt;</description>
      <pubDate>Tue, 20 Feb 2018 17:59:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-search-token/m-p/291391#M39896</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-02-20T17:59:05Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard search token</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-search-token/m-p/291392#M39897</link>
      <description>&lt;P&gt;I suppose my example searches are more for a learning/understanding point of view, so perhaps they may not be the best. However, below are the tables i have on my test dashboard.  So can a search token power search B to show all rows? &lt;/P&gt;

&lt;P&gt;Search A:&lt;BR /&gt;
EventCode   RecordNumber&lt;BR /&gt;
4624    9000&lt;BR /&gt;
4624    9000&lt;BR /&gt;
4624    9000&lt;BR /&gt;
4624    9001&lt;/P&gt;

&lt;P&gt;Search B:&lt;BR /&gt;
RecordNumber&lt;BR /&gt;
9000&lt;BR /&gt;
9001&lt;BR /&gt;
9002&lt;BR /&gt;
9003&lt;/P&gt;</description>
      <pubDate>Tue, 20 Feb 2018 20:47:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-search-token/m-p/291392#M39897</guid>
      <dc:creator>becksyboy</dc:creator>
      <dc:date>2018-02-20T20:47:53Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard search token</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-search-token/m-p/291393#M39898</link>
      <description>&lt;P&gt;basically drilldown can be used to sort the results but here you are expecting full result set with only one column with unique value . so write below query in tableB&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index="wineventlog" LogName=Security  | dedup RecordNumber| table RecordNumber
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;but if you want this table B to be shown only after clicking on Table A then you can use &lt;CODE&gt;depends&lt;/CODE&gt; in &lt;CODE&gt;&amp;lt;panel&amp;gt;&lt;/CODE&gt;&lt;BR /&gt;
firstly use below drilldown in tabelA panel:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;drilldown&amp;gt;
          &amp;lt;set token="count_field"&amp;gt;$click.value$&amp;lt;/set&amp;gt;
 &amp;lt;/drilldown&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and now in second panel use depends:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;panel depends="$count_field$"&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 21 Feb 2018 00:56:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-search-token/m-p/291393#M39898</guid>
      <dc:creator>493669</dc:creator>
      <dc:date>2018-02-21T00:56:52Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard search token</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-search-token/m-p/291394#M39899</link>
      <description>&lt;P&gt;Thanks Rajesh, this making sense; i'm getting a better understanding of this now.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Feb 2018 09:39:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-search-token/m-p/291394#M39899</guid>
      <dc:creator>becksyboy</dc:creator>
      <dc:date>2018-02-22T09:39:48Z</dc:date>
    </item>
  </channel>
</rss>

