<?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 How to change the search based on a clicked table value? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-change-the-search-based-on-a-clicked-table-value/m-p/263871#M79189</link>
    <description>&lt;P&gt;Newbie here so please bear with me &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;
I created a table using stats count with 3 columns.&lt;BR /&gt;
&lt;IMG src="https://community.splunk.com/storage/temp/131194-capture22.png" alt="alt text" /&gt;&lt;/P&gt;

&lt;P&gt;What I also did is to dynamically change the search to search on what I clicked. Afterwards, I use timechart count to display the results based on the opposite, e.g. if I click on a 10653_10_99, the time chart would be by "Bag verloren geraakt". The code:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=wincc Type=2 Text1="Backbone"  State=3 |
rename Text5 as CI |  rename Text6 as Omschrijving |
search $columnName2$ = "$columnPicker2$" |
eval sortByTheOpposite = case("$columnName2$"=="Omschrijving",CI,"$columnName2$"=="CI", Omschrijving) |
timechart count by sortByTheOpposite useother=f limit=10
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This works if I click on one of the first two columns. Now I want to dynamically change my search/time chart if I click on a value in the third column. This would require a string of type "search CI = "XX" AND Omschrijving = "YY" "&lt;BR /&gt;
For this, I was planning to use click.name and row.Omschrijving and get the XX and YY values, however I cannot incorporate in the case the brackets. Any ideas of a work around? Thank you very much in advance!&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 09:45:32 GMT</pubDate>
    <dc:creator>canar40</dc:creator>
    <dc:date>2020-09-29T09:45:32Z</dc:date>
    <item>
      <title>How to change the search based on a clicked table value?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-change-the-search-based-on-a-clicked-table-value/m-p/263871#M79189</link>
      <description>&lt;P&gt;Newbie here so please bear with me &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;
I created a table using stats count with 3 columns.&lt;BR /&gt;
&lt;IMG src="https://community.splunk.com/storage/temp/131194-capture22.png" alt="alt text" /&gt;&lt;/P&gt;

&lt;P&gt;What I also did is to dynamically change the search to search on what I clicked. Afterwards, I use timechart count to display the results based on the opposite, e.g. if I click on a 10653_10_99, the time chart would be by "Bag verloren geraakt". The code:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=wincc Type=2 Text1="Backbone"  State=3 |
rename Text5 as CI |  rename Text6 as Omschrijving |
search $columnName2$ = "$columnPicker2$" |
eval sortByTheOpposite = case("$columnName2$"=="Omschrijving",CI,"$columnName2$"=="CI", Omschrijving) |
timechart count by sortByTheOpposite useother=f limit=10
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This works if I click on one of the first two columns. Now I want to dynamically change my search/time chart if I click on a value in the third column. This would require a string of type "search CI = "XX" AND Omschrijving = "YY" "&lt;BR /&gt;
For this, I was planning to use click.name and row.Omschrijving and get the XX and YY values, however I cannot incorporate in the case the brackets. Any ideas of a work around? Thank you very much in advance!&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 09:45:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-change-the-search-based-on-a-clicked-table-value/m-p/263871#M79189</guid>
      <dc:creator>canar40</dc:creator>
      <dc:date>2020-09-29T09:45:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the search based on a clicked table value?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-change-the-search-based-on-a-clicked-table-value/m-p/263872#M79190</link>
      <description>&lt;P&gt;For those interested, we fixed it this way:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;drilldown&amp;gt;
    &amp;lt;condition field="CI"&amp;gt;
    &amp;lt;set token="columnName1"&amp;gt;$click.name2$&amp;lt;/set&amp;gt;
    &amp;lt;set token="valueName1"&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 you create a panel depending on a certain token:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;panel depends="valueName1"&amp;gt;
&amp;lt;/panel&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 08 Jun 2016 13:26:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-change-the-search-based-on-a-clicked-table-value/m-p/263872#M79190</guid>
      <dc:creator>canar40</dc:creator>
      <dc:date>2016-06-08T13:26:42Z</dc:date>
    </item>
  </channel>
</rss>

