<?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 get token value and _time value from a single dropdown in a dashboard? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-token-value-and-time-value-from-a-single-dropdown-in/m-p/597987#M208226</link>
    <description>&lt;P&gt;I figured it out - I needed to use the done functionality to make it work from the table:&lt;BR /&gt;&lt;BR /&gt;&amp;lt;done&amp;gt;&lt;BR /&gt;&amp;lt;set token="case_num"&amp;gt;$result.case_idz$&amp;lt;/set&amp;gt;&lt;BR /&gt;&amp;lt;set token="earliest_event"&amp;gt;$result.earliest_event$&amp;lt;/set&amp;gt;&lt;BR /&gt;&amp;lt;set token="latest_event"&amp;gt;$result.latest_event$&amp;lt;/set&amp;gt;&lt;BR /&gt;&amp;lt;/done&amp;gt;&lt;BR /&gt;&lt;BR /&gt;I also needed to remove the ctime conversion, and leave it in UNIX time. Works now!&lt;/P&gt;</description>
    <pubDate>Mon, 16 May 2022 18:28:55 GMT</pubDate>
    <dc:creator>gwalford</dc:creator>
    <dc:date>2022-05-16T18:28:55Z</dc:date>
    <item>
      <title>How to get token value and _time value from a single dropdown in a dashboard?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-token-value-and-time-value-from-a-single-dropdown-in/m-p/597982#M208224</link>
      <description>&lt;P&gt;How can I pull 3 tokens from a single dropdown search? - I would like our users to select the case_idz, and have the _time value populate from the same dropdown (I know I can append this to the individual searches with the case_idz token, but that seems very brute force and inelegant.)&lt;BR /&gt;&lt;BR /&gt;Here is the populating search:&lt;BR /&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;| tstats count WHERE index=cases BY source, _time&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;| fields source, _time&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;| rex field=source max_match=0 "^[A-Z]:\\\\([^\\\\]*)\\\\([^\\\\]*)\\\\(?P&amp;lt;case_idz&amp;gt;[^\\\\]*)"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;| stats count by case_idz, _time&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;| fields case_idz, _time&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;| stats earliest(_time) AS earliest_event, latest(_time) AS latest_event by case_idz&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;| convert ctime(earliest_event) ctime(latest_event)&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;Which gives a table of:&lt;/P&gt;
&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;STRONG&gt;case_idz earliest_event latest_event&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;I would like to turn each of these into a token:&lt;BR /&gt;&lt;BR /&gt;$case_idz$ $earliest_event$ $latest_event$&lt;BR /&gt;&lt;BR /&gt;The case_idz is the value that they need to pivot off of, and the earliest_event and latest_event are the second and third tokens that I would like to leverage to set the earliest and latest time values for the searches.&lt;BR /&gt;&lt;BR /&gt;Other than taking components of this search and adding it to each and every dashboard, how can I have the three variables trigger in one pass?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 16 May 2022 17:01:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-token-value-and-time-value-from-a-single-dropdown-in/m-p/597982#M208224</guid>
      <dc:creator>gwalford</dc:creator>
      <dc:date>2022-05-16T17:01:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to get token value and _time value from a single dropdown in a dashboard?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-token-value-and-time-value-from-a-single-dropdown-in/m-p/597987#M208226</link>
      <description>&lt;P&gt;I figured it out - I needed to use the done functionality to make it work from the table:&lt;BR /&gt;&lt;BR /&gt;&amp;lt;done&amp;gt;&lt;BR /&gt;&amp;lt;set token="case_num"&amp;gt;$result.case_idz$&amp;lt;/set&amp;gt;&lt;BR /&gt;&amp;lt;set token="earliest_event"&amp;gt;$result.earliest_event$&amp;lt;/set&amp;gt;&lt;BR /&gt;&amp;lt;set token="latest_event"&amp;gt;$result.latest_event$&amp;lt;/set&amp;gt;&lt;BR /&gt;&amp;lt;/done&amp;gt;&lt;BR /&gt;&lt;BR /&gt;I also needed to remove the ctime conversion, and leave it in UNIX time. Works now!&lt;/P&gt;</description>
      <pubDate>Mon, 16 May 2022 18:28:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-token-value-and-time-value-from-a-single-dropdown-in/m-p/597987#M208226</guid>
      <dc:creator>gwalford</dc:creator>
      <dc:date>2022-05-16T18:28:55Z</dc:date>
    </item>
  </channel>
</rss>

