<?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 run specific query depens on token value in Splunk Enterprise</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise/run-specific-query-depens-on-token-value/m-p/685391#M19229</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;on a dashboard I have a simple check box element:&amp;nbsp;LastOne_tkn (token name). If the check box is enabled, the&amp;nbsp;LastOne_tkn=TRUE. There is simple small table view, which shows some results. I would like to run query in that table view based on&amp;nbsp;LastOne_tkn condition.&lt;/P&gt;&lt;P&gt;LastOne_tkn=TRUE (dedup activated)&lt;/P&gt;&lt;P&gt;&lt;EM&gt;index=machinedata&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;| dedup Attr1&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;| table Attr1, Attr2&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;LastOne_tkn=otherwise (dedup deactivated)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;EM&gt;index=machinedata&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;| table Attr1, Attr2&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Any idea, please?&lt;/P&gt;</description>
    <pubDate>Thu, 25 Apr 2024 06:29:45 GMT</pubDate>
    <dc:creator>spisiakmi</dc:creator>
    <dc:date>2024-04-25T06:29:45Z</dc:date>
    <item>
      <title>run specific query depens on token value</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/run-specific-query-depens-on-token-value/m-p/685391#M19229</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;on a dashboard I have a simple check box element:&amp;nbsp;LastOne_tkn (token name). If the check box is enabled, the&amp;nbsp;LastOne_tkn=TRUE. There is simple small table view, which shows some results. I would like to run query in that table view based on&amp;nbsp;LastOne_tkn condition.&lt;/P&gt;&lt;P&gt;LastOne_tkn=TRUE (dedup activated)&lt;/P&gt;&lt;P&gt;&lt;EM&gt;index=machinedata&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;| dedup Attr1&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;| table Attr1, Attr2&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;LastOne_tkn=otherwise (dedup deactivated)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;EM&gt;index=machinedata&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;| table Attr1, Attr2&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Any idea, please?&lt;/P&gt;</description>
      <pubDate>Thu, 25 Apr 2024 06:29:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/run-specific-query-depens-on-token-value/m-p/685391#M19229</guid>
      <dc:creator>spisiakmi</dc:creator>
      <dc:date>2024-04-25T06:29:45Z</dc:date>
    </item>
    <item>
      <title>Re: run specific query depens on token value</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/run-specific-query-depens-on-token-value/m-p/685403#M19230</link>
      <description>&lt;P&gt;Rather than setting the value to true, set it to the line you want in your search&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;    &amp;lt;input type="checkbox" token="LastOne_tkn"&amp;gt;
      &amp;lt;label&amp;gt;Dedup&amp;lt;/label&amp;gt;
      &amp;lt;choice value="| dedup Attr1"&amp;gt;Dedup&amp;lt;/choice&amp;gt;
      &amp;lt;default&amp;gt;&amp;lt;/default&amp;gt;
      &amp;lt;initialValue&amp;gt;&amp;lt;/initialValue&amp;gt;
    &amp;lt;/input&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;Then use the token in your search&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=machinedata
$LastOne_tkn$
| table Attr1, Attr2&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Apr 2024 07:44:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/run-specific-query-depens-on-token-value/m-p/685403#M19230</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-04-25T07:44:17Z</dc:date>
    </item>
    <item>
      <title>Re: run specific query depens on token value</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/run-specific-query-depens-on-token-value/m-p/685410#M19232</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;ITWhisperer,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;exactly this very simple elegant solution I needed. Thank you very much. Works fine.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Apr 2024 08:08:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/run-specific-query-depens-on-token-value/m-p/685410#M19232</guid>
      <dc:creator>spisiakmi</dc:creator>
      <dc:date>2024-04-25T08:08:11Z</dc:date>
    </item>
  </channel>
</rss>

