<?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: Generate Token without Panel in Splunk ITSI</title>
    <link>https://community.splunk.com/t5/Splunk-ITSI/Generate-Token-without-Panel/m-p/480131#M1801</link>
    <description>&lt;P&gt;To generate a token without a panel, you can use a &lt;CODE&gt;base_search&lt;/CODE&gt; and then an &lt;CODE&gt;eval token&lt;/CODE&gt; in the &lt;CODE&gt;change&lt;/CODE&gt; section.  Also, you can just hard-code non-search-results based tokens at the top of your XML like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  &amp;lt;init&amp;gt;
    &amp;lt;!--&amp;gt;For some reason, in drilldown URLs, $APP$, just DOES NOT WORK!&amp;lt;--&amp;gt;
    &amp;lt;!--&amp;gt;It ought to be that setting 'env_app' to a value of '$APP$' works, but it does NOT!&amp;lt;--&amp;gt;
    &amp;lt;set token="env_app"&amp;gt;MyHardCodedAppNameHere&amp;lt;/set&amp;gt;
  &amp;lt;/init&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 08 Nov 2019 15:17:34 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2019-11-08T15:17:34Z</dc:date>
    <item>
      <title>Generate Token without Panel</title>
      <link>https://community.splunk.com/t5/Splunk-ITSI/Generate-Token-without-Panel/m-p/480128#M1798</link>
      <description>&lt;P&gt;I'm working on making an interactive dashboard, and I'm not sure how to do something...&lt;/P&gt;

&lt;P&gt;My dashboard shows a pie chart of the top servers where errors are occurring. Next to it, a statistics table shows from what file source the top errors are coming from. &lt;BR /&gt;
What I'm trying to figure out is how I would be able to click on a file source in the statistics table, and then change the pie chart to show only the servers that have errors matching with that clicked source.&lt;/P&gt;

&lt;P&gt;Currently, I have it set up as &lt;STRONG&gt;errorSource=*&lt;/STRONG&gt; for my pie chart, but that doesn't allow for token change. It would make sense to me to initialize something like $errorSourceToken=*$, but I don't know how I would initialize that without some kind of input like a radio button select or something (which I don't want to appear).&lt;/P&gt;

&lt;P&gt;Let me know if you know of any solutions. Thanks so much!&lt;BR /&gt;
-Logan&lt;/P&gt;</description>
      <pubDate>Fri, 08 Nov 2019 14:23:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-ITSI/Generate-Token-without-Panel/m-p/480128#M1798</guid>
      <dc:creator>logankinman99</dc:creator>
      <dc:date>2019-11-08T14:23:50Z</dc:date>
    </item>
    <item>
      <title>Re: Generate Token without Panel</title>
      <link>https://community.splunk.com/t5/Splunk-ITSI/Generate-Token-without-Panel/m-p/480129#M1799</link>
      <description>&lt;P&gt;@logankinman99  that can certainly be down using the contextual drilldown approach&lt;/P&gt;

&lt;P&gt;You will have to set a token based on the clicked value. Examples below&lt;/P&gt;

&lt;P&gt;Hope that helps.&lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.0.0/Viz/ContextualDrilldown"&gt;https://docs.splunk.com/Documentation/Splunk/8.0.0/Viz/ContextualDrilldown&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&lt;A href="https://answers.splunk.com/answers/405291/how-to-change-the-search-based-on-a-clicked-table.html"&gt;https://answers.splunk.com/answers/405291/how-to-change-the-search-based-on-a-clicked-table.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Nov 2019 14:38:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-ITSI/Generate-Token-without-Panel/m-p/480129#M1799</guid>
      <dc:creator>vik_splunk</dc:creator>
      <dc:date>2019-11-08T14:38:47Z</dc:date>
    </item>
    <item>
      <title>Re: Generate Token without Panel</title>
      <link>https://community.splunk.com/t5/Splunk-ITSI/Generate-Token-without-Panel/m-p/480130#M1800</link>
      <description>&lt;P&gt;Well, I quickly found a solution to my own question. For anyone else who may have this problem...&lt;/P&gt;

&lt;P&gt;It turns out there is an &amp;lt; init&amp;gt; element you can set in the XML, so I ended up setting the field as * as soon as the dashboard loads up.&lt;/P&gt;

&lt;P&gt;&amp;lt; form&amp;gt;&lt;BR /&gt;
-----&amp;lt; label&amp;gt;My dashboard name&amp;lt; /label&amp;gt;&lt;BR /&gt;
&lt;STRONG&gt;-----&amp;lt; init&amp;gt;&lt;BR /&gt;
----------&amp;lt; set token="errorSourceToken"&amp;gt;*&amp;lt; /set&amp;gt;&lt;BR /&gt;
-----&amp;lt; /init&amp;gt;&lt;/STRONG&gt;&lt;BR /&gt;
&amp;lt; /form&amp;gt;&lt;/P&gt;

&lt;P&gt;After setting that in the XML, I was able to edit the drilldown through the UI&lt;/P&gt;</description>
      <pubDate>Fri, 08 Nov 2019 15:10:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-ITSI/Generate-Token-without-Panel/m-p/480130#M1800</guid>
      <dc:creator>logankinman99</dc:creator>
      <dc:date>2019-11-08T15:10:35Z</dc:date>
    </item>
    <item>
      <title>Re: Generate Token without Panel</title>
      <link>https://community.splunk.com/t5/Splunk-ITSI/Generate-Token-without-Panel/m-p/480131#M1801</link>
      <description>&lt;P&gt;To generate a token without a panel, you can use a &lt;CODE&gt;base_search&lt;/CODE&gt; and then an &lt;CODE&gt;eval token&lt;/CODE&gt; in the &lt;CODE&gt;change&lt;/CODE&gt; section.  Also, you can just hard-code non-search-results based tokens at the top of your XML like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  &amp;lt;init&amp;gt;
    &amp;lt;!--&amp;gt;For some reason, in drilldown URLs, $APP$, just DOES NOT WORK!&amp;lt;--&amp;gt;
    &amp;lt;!--&amp;gt;It ought to be that setting 'env_app' to a value of '$APP$' works, but it does NOT!&amp;lt;--&amp;gt;
    &amp;lt;set token="env_app"&amp;gt;MyHardCodedAppNameHere&amp;lt;/set&amp;gt;
  &amp;lt;/init&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 08 Nov 2019 15:17:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-ITSI/Generate-Token-without-Panel/m-p/480131#M1801</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-11-08T15:17:34Z</dc:date>
    </item>
  </channel>
</rss>

