<?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 highlight events in panel of dashboard based on token in second panel? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-highlight-events-in-panel-of-dashboard-based-on-token-in/m-p/316694#M20356</link>
    <description>&lt;P&gt;You need the &lt;CODE&gt;highlight&lt;/CODE&gt; command:&lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Highlight"&gt;https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Highlight&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 04 Dec 2017 02:07:57 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2017-12-04T02:07:57Z</dc:date>
    <item>
      <title>How to highlight events in panel of dashboard based on token in second panel?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-highlight-events-in-panel-of-dashboard-based-on-token-in/m-p/316686#M20348</link>
      <description>&lt;P&gt;Hi Splunkers,&lt;/P&gt;

&lt;P&gt;I have a dashboard in Splunk Cloud with total 3 panels. On click of first panel, which is a Statistics table, it drills down to two other panels, which are Statistics Table and Events, respectively. The user wants the corresponding events to get highlighted or color to be changed in the third panel when a row/cell is clicked in second panel(Table), for better visibility. Is this possible to achieve? Please suggest. &lt;/P&gt;

&lt;P&gt;Thanks in advance&lt;/P&gt;

&lt;P&gt;Bhagyashriyan&lt;/P&gt;</description>
      <pubDate>Fri, 01 Dec 2017 07:39:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-highlight-events-in-panel-of-dashboard-based-on-token-in/m-p/316686#M20348</guid>
      <dc:creator>bhagyashriyan</dc:creator>
      <dc:date>2017-12-01T07:39:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to highlight events in panel of dashboard based on token in second panel?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-highlight-events-in-panel-of-dashboard-based-on-token-in/m-p/316687#M20349</link>
      <description>&lt;P&gt;[Updated]&lt;/P&gt;

&lt;P&gt;Thanks to @woodcock for help with this. The highlight command will highlight text in Dashboard panel provided Event view's &lt;CODE&gt;type&lt;/CODE&gt; is &lt;CODE&gt;raw&lt;/CODE&gt; and not &lt;CODE&gt;list&lt;/CODE&gt; or &lt;CODE&gt;table&lt;/CODE&gt;.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;option name="type"&amp;gt;raw&amp;lt;/option&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Please try the updated Run any where dashboard below.&lt;/P&gt;

&lt;HR /&gt;

&lt;P&gt;@bhagyashriyan, if you are using a drilldown from second panel(Table) to open new Search Window with events then you can use &lt;CODE&gt;| highlight &amp;lt;YourEventValueToBeHighlighted&amp;gt;&lt;/CODE&gt;. However, it will not be highlighted in event viewer unless &lt;CODE&gt;type&lt;/CODE&gt; is set to &lt;CODE&gt;raw&lt;/CODE&gt; (default it &lt;CODE&gt;list&lt;/CODE&gt;). (&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Highlight"&gt;https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Highlight&lt;/A&gt;)&lt;/P&gt;

&lt;P&gt;Try the following run anywhere dashboard.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;dashboard&amp;gt;
  &amp;lt;label&amp;gt;Drilldown Highlight Events&amp;lt;/label&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;table&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;index=_internal sourcetype=splunkd log_level!="INFO"
|  chart count over component by log_level 
|  head 10&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;-24h@h&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
          &amp;lt;sampleRatio&amp;gt;1&amp;lt;/sampleRatio&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="count"&amp;gt;20&amp;lt;/option&amp;gt;
        &amp;lt;option name="dataOverlayMode"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="drilldown"&amp;gt;cell&amp;lt;/option&amp;gt;
        &amp;lt;option name="percentagesRow"&amp;gt;false&amp;lt;/option&amp;gt;
        &amp;lt;option name="rowNumbers"&amp;gt;false&amp;lt;/option&amp;gt;
        &amp;lt;option name="totalsRow"&amp;gt;false&amp;lt;/option&amp;gt;
        &amp;lt;option name="wrap"&amp;gt;true&amp;lt;/option&amp;gt;
        &amp;lt;drilldown&amp;gt;
          &amp;lt;condition field="component"&amp;gt;
            &amp;lt;set token="tokFieldName"&amp;gt;$click.name$&amp;lt;/set&amp;gt;
            &amp;lt;set token="tokDrilldown"&amp;gt;$click.value$&amp;lt;/set&amp;gt;
          &amp;lt;/condition&amp;gt;
          &amp;lt;condition&amp;gt;
            &amp;lt;set token="tokFieldName"&amp;gt;log_level&amp;lt;/set&amp;gt;
            &amp;lt;set token="tokDrilldown"&amp;gt;$click.name2$&amp;lt;/set&amp;gt;
          &amp;lt;/condition&amp;gt;
        &amp;lt;/drilldown&amp;gt;
      &amp;lt;/table&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
  &amp;lt;row depends="$tokDrilldown$"&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;title&amp;gt;Events $tokDrilldown$&amp;lt;/title&amp;gt;
      &amp;lt;event&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;index=_internal sourcetype=splunkd log_level!="INFO" $tokFieldName$="$tokDrilldown$"
|  highlight $tokDrilldown$&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;-24h@h&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
          &amp;lt;sampleRatio&amp;gt;1&amp;lt;/sampleRatio&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="count"&amp;gt;20&amp;lt;/option&amp;gt;
        &amp;lt;option name="list.drilldown"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="list.wrap"&amp;gt;1&amp;lt;/option&amp;gt;
        &amp;lt;option name="maxLines"&amp;gt;5&amp;lt;/option&amp;gt;
        &amp;lt;option name="raw.drilldown"&amp;gt;full&amp;lt;/option&amp;gt;
        &amp;lt;option name="rowNumbers"&amp;gt;0&amp;lt;/option&amp;gt;
        &amp;lt;option name="table.drilldown"&amp;gt;all&amp;lt;/option&amp;gt;
        &amp;lt;option name="table.sortDirection"&amp;gt;asc&amp;lt;/option&amp;gt;
        &amp;lt;option name="table.wrap"&amp;gt;1&amp;lt;/option&amp;gt;
        &amp;lt;option name="type"&amp;gt;raw&amp;lt;/option&amp;gt;
      &amp;lt;/event&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&amp;lt;/dashboard&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 01 Dec 2017 08:14:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-highlight-events-in-panel-of-dashboard-based-on-token-in/m-p/316687#M20349</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-12-01T08:14:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to highlight events in panel of dashboard based on token in second panel?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-highlight-events-in-panel-of-dashboard-based-on-token-in/m-p/316688#M20350</link>
      <description>&lt;P&gt;@niketnilay, There is  no drilldown from 2nd panel. 2nd and 3rd panel together drills down from Ist panel. Does highlighter work between panels in the same dashboard?&lt;/P&gt;</description>
      <pubDate>Fri, 01 Dec 2017 08:49:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-highlight-events-in-panel-of-dashboard-based-on-token-in/m-p/316688#M20350</guid>
      <dc:creator>bhagyashriyan</dc:creator>
      <dc:date>2017-12-01T08:49:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to highlight events in panel of dashboard based on token in second panel?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-highlight-events-in-panel-of-dashboard-based-on-token-in/m-p/316689#M20351</link>
      <description>&lt;P&gt;I had mentioned that based on your question &lt;CODE&gt;changed in the third panel when a row/cell is clicked in second panel(Table)&lt;/CODE&gt;. However, whether drilldown is from first or second panel is not the issue, issue is that &lt;CODE&gt;highlight&lt;/CODE&gt; command will not work in Dashboard. &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Dec 2017 08:52:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-highlight-events-in-panel-of-dashboard-based-on-token-in/m-p/316689#M20351</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-12-01T08:52:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to highlight events in panel of dashboard based on token in second panel?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-highlight-events-in-panel-of-dashboard-based-on-token-in/m-p/316690#M20352</link>
      <description>&lt;P&gt;Ok @niketnilay. Thanks for the response&lt;/P&gt;</description>
      <pubDate>Fri, 01 Dec 2017 09:07:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-highlight-events-in-panel-of-dashboard-based-on-token-in/m-p/316690#M20352</guid>
      <dc:creator>bhagyashriyan</dc:creator>
      <dc:date>2017-12-01T09:07:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to highlight events in panel of dashboard based on token in second panel?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-highlight-events-in-panel-of-dashboard-based-on-token-in/m-p/316691#M20353</link>
      <description>&lt;P&gt;If the sencond panel shows raw events, we can exploit the feature that anything that is in the base search is highlighted automatically. &lt;BR /&gt;
 So just include the stuff to highlight as a token that is set in the first panel, add this token to the base search for the other panel with &lt;CODE&gt;AND ($YourTokenHere$)&lt;/CODE&gt; which will cause the search to be rerun (the results will be the same) but now you have the for-free highlighting.&lt;/P&gt;</description>
      <pubDate>Sun, 03 Dec 2017 18:44:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-highlight-events-in-panel-of-dashboard-based-on-token-in/m-p/316691#M20353</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-12-03T18:44:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to highlight events in panel of dashboard based on token in second panel?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-highlight-events-in-panel-of-dashboard-based-on-token-in/m-p/316692#M20354</link>
      <description>&lt;P&gt;@woodcock, while effect of this is the same as highlight command, the moment we save the search to Dashboard (even with the visualization as Event Viewer), the highlights disappear. I had not checked this in any previous version of Splunk but feel like if we can not save the highlighted search text to Dashboard this feature is not that useful.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Dec 2017 01:20:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-highlight-events-in-panel-of-dashboard-based-on-token-in/m-p/316692#M20354</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-12-04T01:20:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to highlight events in panel of dashboard based on token in second panel?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-highlight-events-in-panel-of-dashboard-based-on-token-in/m-p/316693#M20355</link>
      <description>&lt;P&gt;I have it working since v6.?.  I am looking at it now on a panel in v7.0.  It works.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Dec 2017 02:00:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-highlight-events-in-panel-of-dashboard-based-on-token-in/m-p/316693#M20355</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-12-04T02:00:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to highlight events in panel of dashboard based on token in second panel?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-highlight-events-in-panel-of-dashboard-based-on-token-in/m-p/316694#M20356</link>
      <description>&lt;P&gt;You need the &lt;CODE&gt;highlight&lt;/CODE&gt; command:&lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Highlight"&gt;https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Highlight&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Dec 2017 02:07:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-highlight-events-in-panel-of-dashboard-based-on-token-in/m-p/316694#M20356</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-12-04T02:07:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to highlight events in panel of dashboard based on token in second panel?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-highlight-events-in-panel-of-dashboard-based-on-token-in/m-p/316695#M20357</link>
      <description>&lt;P&gt;There is also a command for this.  See my other answer.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Dec 2017 02:08:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-highlight-events-in-panel-of-dashboard-based-on-token-in/m-p/316695#M20357</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-12-04T02:08:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to highlight events in panel of dashboard based on token in second panel?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-highlight-events-in-panel-of-dashboard-based-on-token-in/m-p/316696#M20358</link>
      <description>&lt;P&gt;Thanks for the comment. This was strange I was trying on fresh install of 7.0.1 and highlight was not working. I looked at the Event Viewer Simple XML configuration and mine was &lt;CODE&gt;list&lt;/CODE&gt; by default instead of &lt;CODE&gt;raw&lt;/CODE&gt;. So there is an additional Simple XML change required:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;option name="type"&amp;gt;raw&amp;lt;/option&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Instead of default&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;option name="type"&amp;gt;list&amp;lt;/option&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 04 Dec 2017 02:16:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-highlight-events-in-panel-of-dashboard-based-on-token-in/m-p/316696#M20358</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-12-04T02:16:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to highlight events in panel of dashboard based on token in second panel?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-highlight-events-in-panel-of-dashboard-based-on-token-in/m-p/316697#M20359</link>
      <description>&lt;P&gt;I did say "raw events"! &lt;span class="lia-unicode-emoji" title=":grinning_squinting_face:"&gt;😆&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Dec 2017 02:28:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-highlight-events-in-panel-of-dashboard-based-on-token-in/m-p/316697#M20359</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-12-04T02:28:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to highlight events in panel of dashboard based on token in second panel?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-highlight-events-in-panel-of-dashboard-based-on-token-in/m-p/316698#M20360</link>
      <description>&lt;P&gt;@woodcock, I am working in Splunk Cloud. I tried with highlight command and also panel type is raw but it is not working &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; &lt;/P&gt;</description>
      <pubDate>Wed, 06 Dec 2017 05:46:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-highlight-events-in-panel-of-dashboard-based-on-token-in/m-p/316698#M20360</guid>
      <dc:creator>bhagyashriyan</dc:creator>
      <dc:date>2017-12-06T05:46:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to highlight events in panel of dashboard based on token in second panel?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-highlight-events-in-panel-of-dashboard-based-on-token-in/m-p/316699#M20361</link>
      <description>&lt;P&gt;@bhagyashriyan, you should reach out to Splunk Support if it is not working on Splunk cloud.&lt;BR /&gt;
I tried the run any where dashboard and it worked fine for me after &lt;CODE&gt;&amp;lt;event&amp;gt;&lt;/CODE&gt; panel had &lt;CODE&gt;&amp;lt;option name="type"&amp;gt;raw&amp;lt;/type&amp;gt;&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Dec 2017 06:02:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-highlight-events-in-panel-of-dashboard-based-on-token-in/m-p/316699#M20361</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-12-06T06:02:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to highlight events in panel of dashboard based on token in second panel?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-highlight-events-in-panel-of-dashboard-based-on-token-in/m-p/316700#M20362</link>
      <description>&lt;P&gt;Ok @niketnilay, Thanks for suggestion.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Dec 2017 06:54:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-highlight-events-in-panel-of-dashboard-based-on-token-in/m-p/316700#M20362</guid>
      <dc:creator>bhagyashriyan</dc:creator>
      <dc:date>2017-12-06T06:54:40Z</dc:date>
    </item>
  </channel>
</rss>

