<?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 do I search for events under a Splunk Token? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-search-for-events-under-a-Splunk-Token/m-p/385344#M25256</link>
    <description>&lt;P&gt;Hey buddy @tycarterbk1 &lt;BR /&gt;
I do not know if it's exactly what you wanted but I tried to answer you through an example code, hope you can approve and learn something from it.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;form&amp;gt;
&amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;input type="dropdown" token="YOUR_TOKEN" searchWhenChanged="true"&amp;gt;
        &amp;lt;fieldForLabel&amp;gt;your_field&amp;lt;/fieldForLabel&amp;gt;
        &amp;lt;fieldForValue&amp;gt;your_field&amp;lt;/fieldForValue&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;index=YOUR_INDEX sourcetype=YOUR_SOURCETYPE
| dedup field1
| table field1&amp;lt;/query&amp;gt;  &amp;lt;!--(I'm doing that to populate the dropdown)--&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;/search&amp;gt;
        &amp;lt;default&amp;gt;7FB3A2D9&amp;lt;/default&amp;gt; &amp;lt;!-- Here i set a default value to the dropdown--&amp;gt;
      &amp;lt;/input&amp;gt;

  &amp;lt;!-- SEARCH 1 --&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;chart&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;index=YOUR_INDEX sourcetype=YOUR_SOURCETYPE $YOUR_TOKEN$ 
| stats count() by id &amp;lt;!--(Here you can count your events by anything you need "id, code, etc...")--&amp;gt;
&amp;lt;/query&amp;gt;
        &amp;lt;/search&amp;gt;
      &amp;lt;/chart&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;

  &amp;lt;!-- SEARCH 2 --&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;chart&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;index=YOUR_INDEX sourcetype=YOUR_SOURCETYPE $YOUR_TOKEN$ 
| table Field1, Field2, Field3 .... &amp;lt;!--(Here you put your fields that you need)--&amp;gt;
          &amp;lt;/query&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;/chart&amp;gt;
     &amp;lt;/panel&amp;gt;
   &amp;lt;/row&amp;gt;
&amp;lt;/form&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 18 Sep 2018 20:38:46 GMT</pubDate>
    <dc:creator>lucasfbeinjamin</dc:creator>
    <dc:date>2018-09-18T20:38:46Z</dc:date>
    <item>
      <title>How do I search for events under a Splunk Token?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-search-for-events-under-a-Splunk-Token/m-p/385339#M25251</link>
      <description>&lt;P&gt;I have the following token value "7FB3A2D9......"&lt;BR /&gt;
I want to view events submitted under this token.&lt;BR /&gt;
• Number of events&lt;BR /&gt;
• Details of event&lt;/P&gt;</description>
      <pubDate>Tue, 18 Sep 2018 20:00:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-search-for-events-under-a-Splunk-Token/m-p/385339#M25251</guid>
      <dc:creator>tycarterbk1</dc:creator>
      <dc:date>2018-09-18T20:00:49Z</dc:date>
    </item>
    <item>
      <title>Re: How do I search for events under a Splunk Token?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-search-for-events-under-a-Splunk-Token/m-p/385340#M25252</link>
      <description>&lt;P&gt;hi @tycarterbk1&lt;/P&gt;

&lt;P&gt;Thanks for posting. Could you give us some more context for your query?  You have a much better chance of getting your question answered if you provide more information about your issue. Plus, it will help guide future community users who are facing a similar problem. &lt;/P&gt;</description>
      <pubDate>Tue, 18 Sep 2018 20:10:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-search-for-events-under-a-Splunk-Token/m-p/385340#M25252</guid>
      <dc:creator>mstjohn_splunk</dc:creator>
      <dc:date>2018-09-18T20:10:51Z</dc:date>
    </item>
    <item>
      <title>Re: How do I search for events under a Splunk Token?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-search-for-events-under-a-Splunk-Token/m-p/385341#M25253</link>
      <description>&lt;P&gt;Hi @mstjohn_splunk&lt;BR /&gt;
I have a following token value "7FB3A2D9......"&lt;BR /&gt;
The user wants to see • Number of events and • Details of event associated with this token.&lt;BR /&gt;&lt;BR /&gt;
Does this clear things up?&lt;/P&gt;</description>
      <pubDate>Tue, 18 Sep 2018 20:16:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-search-for-events-under-a-Splunk-Token/m-p/385341#M25253</guid>
      <dc:creator>tycarterbk1</dc:creator>
      <dc:date>2018-09-18T20:16:26Z</dc:date>
    </item>
    <item>
      <title>Re: How do I search for events under a Splunk Token?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-search-for-events-under-a-Splunk-Token/m-p/385342#M25254</link>
      <description>&lt;P&gt;Hey @tycarterbk1&lt;BR /&gt;
Please i need more information about your query to be able to respond in the best possible way.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Sep 2018 20:19:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-search-for-events-under-a-Splunk-Token/m-p/385342#M25254</guid>
      <dc:creator>lucasfbeinjamin</dc:creator>
      <dc:date>2018-09-18T20:19:41Z</dc:date>
    </item>
    <item>
      <title>Re: How do I search for events under a Splunk Token?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-search-for-events-under-a-Splunk-Token/m-p/385343#M25255</link>
      <description>&lt;P&gt;Hi @lucasfbeinjamin&lt;BR /&gt;
I have a following token value "7FB3A2D9......"&lt;BR /&gt;
The user wants to see • Number of events and • Details of event associated with this token. &lt;BR /&gt;
Does this clear things up?&lt;BR /&gt;
I do not have a query thats what I'm trying to figure out now&lt;/P&gt;</description>
      <pubDate>Tue, 18 Sep 2018 20:23:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-search-for-events-under-a-Splunk-Token/m-p/385343#M25255</guid>
      <dc:creator>tycarterbk1</dc:creator>
      <dc:date>2018-09-18T20:23:08Z</dc:date>
    </item>
    <item>
      <title>Re: How do I search for events under a Splunk Token?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-search-for-events-under-a-Splunk-Token/m-p/385344#M25256</link>
      <description>&lt;P&gt;Hey buddy @tycarterbk1 &lt;BR /&gt;
I do not know if it's exactly what you wanted but I tried to answer you through an example code, hope you can approve and learn something from it.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;form&amp;gt;
&amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;input type="dropdown" token="YOUR_TOKEN" searchWhenChanged="true"&amp;gt;
        &amp;lt;fieldForLabel&amp;gt;your_field&amp;lt;/fieldForLabel&amp;gt;
        &amp;lt;fieldForValue&amp;gt;your_field&amp;lt;/fieldForValue&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;index=YOUR_INDEX sourcetype=YOUR_SOURCETYPE
| dedup field1
| table field1&amp;lt;/query&amp;gt;  &amp;lt;!--(I'm doing that to populate the dropdown)--&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;/search&amp;gt;
        &amp;lt;default&amp;gt;7FB3A2D9&amp;lt;/default&amp;gt; &amp;lt;!-- Here i set a default value to the dropdown--&amp;gt;
      &amp;lt;/input&amp;gt;

  &amp;lt;!-- SEARCH 1 --&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;chart&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;index=YOUR_INDEX sourcetype=YOUR_SOURCETYPE $YOUR_TOKEN$ 
| stats count() by id &amp;lt;!--(Here you can count your events by anything you need "id, code, etc...")--&amp;gt;
&amp;lt;/query&amp;gt;
        &amp;lt;/search&amp;gt;
      &amp;lt;/chart&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;

  &amp;lt;!-- SEARCH 2 --&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;chart&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;index=YOUR_INDEX sourcetype=YOUR_SOURCETYPE $YOUR_TOKEN$ 
| table Field1, Field2, Field3 .... &amp;lt;!--(Here you put your fields that you need)--&amp;gt;
          &amp;lt;/query&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;/chart&amp;gt;
     &amp;lt;/panel&amp;gt;
   &amp;lt;/row&amp;gt;
&amp;lt;/form&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 18 Sep 2018 20:38:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-search-for-events-under-a-Splunk-Token/m-p/385344#M25256</guid>
      <dc:creator>lucasfbeinjamin</dc:creator>
      <dc:date>2018-09-18T20:38:46Z</dc:date>
    </item>
  </channel>
</rss>

