<?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: Show raw data in new search on clicking the timestamp or a value using drilldown in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Show-raw-data-in-new-search-on-clicking-the-timestamp-or-a-value/m-p/622613#M51080</link>
    <description>&lt;P&gt;The value from the first column of the table is stored in the $value$ token. Use this in the search as earliest and use the value +1 hour as latest.&lt;/P&gt;</description>
    <pubDate>Wed, 30 Nov 2022 12:16:58 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2022-11-30T12:16:58Z</dc:date>
    <item>
      <title>Show raw data in new search on clicking the timestamp or a value using drilldown?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Show-raw-data-in-new-search-on-clicking-the-timestamp-or-a-value/m-p/622600#M51079</link>
      <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;
&lt;P&gt;I have one requirement. Below is my search query to show "no.of users logged in" for every 1 hour.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;index=ABC sourcetype=xyz "PROFILE_LOGIN" |rex "PROFILE:(?&amp;lt;UserName&amp;gt;\w+)\-"
|bin _time span=1h |stats dc(UserName) as No_Of_Users_Logged_In by _time&lt;/LI-CODE&gt;
&lt;P&gt;I am getting like below:&lt;/P&gt;
&lt;P&gt;_time No_Of_Users_Logged_In&lt;/P&gt;
&lt;P&gt;2022-11-28 10:00 1&lt;/P&gt;
&lt;P&gt;2022-11-28 11:00 2&lt;/P&gt;
&lt;P&gt;I want when I click in the first row/timestamp/ No_Of_Users_Logged_In, it should show the raw logs of the events where the logged-in usernames are present in that particular time (if the time stamp is 10:00, then it should show raw events from 10:00 to 11:00). These events should open in new search .&lt;/P&gt;
&lt;P&gt;Also, can you guide me how to view these in panel below the table using drilldown. It should be only show when we click on the values. (It’s an additional request to know the possibility)&lt;/P&gt;
&lt;P&gt;Please guide and help me.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;xml code snippet :&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;row&amp;gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;panel&amp;gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;title&amp;gt;Number of Users Logged In&amp;lt;/title&amp;gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;table&amp;gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;search&amp;gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;query&amp;gt;index=ABC sourcetype=xyz "PROFILE_LOGIN" |rex "PROFILE:(?&amp;lt;UserName&amp;gt;\w+)\-"&lt;BR /&gt;&lt;SPAN&gt;|bin _time span=1h |stats dc(UserName) as No_Of_Users_Logged_In by _time&amp;lt;/query&amp;gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;earliest&amp;gt;$time_token.earliest$&amp;lt;/earliest&amp;gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;latest&amp;gt;$time_token.latest$&amp;lt;/latest&amp;gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;sampleRatio&amp;gt;1&amp;lt;/sampleRatio&amp;gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/search&amp;gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;option name="count"&amp;gt;6&amp;lt;/option&amp;gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;option name="dataOverlayMode"&amp;gt;none&amp;lt;/option&amp;gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;option name="drilldown"&amp;gt;none&amp;lt;/option&amp;gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/table&amp;gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/panel&amp;gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/row&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2022 16:20:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Show-raw-data-in-new-search-on-clicking-the-timestamp-or-a-value/m-p/622600#M51079</guid>
      <dc:creator>yamini_37</dc:creator>
      <dc:date>2022-12-01T16:20:31Z</dc:date>
    </item>
    <item>
      <title>Re: Show raw data in new search on clicking the timestamp or a value using drilldown</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Show-raw-data-in-new-search-on-clicking-the-timestamp-or-a-value/m-p/622613#M51080</link>
      <description>&lt;P&gt;The value from the first column of the table is stored in the $value$ token. Use this in the search as earliest and use the value +1 hour as latest.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2022 12:16:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Show-raw-data-in-new-search-on-clicking-the-timestamp-or-a-value/m-p/622613#M51080</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-11-30T12:16:58Z</dc:date>
    </item>
    <item>
      <title>Re: Show raw data in new search on clicking the timestamp or a value using drilldown</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Show-raw-data-in-new-search-on-clicking-the-timestamp-or-a-value/m-p/622650#M51081</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&lt;/P&gt;&lt;P&gt;Thanks for the response, but I didn't understand it clearly. Below is the XML code of that panel. Could you please make changes in this xml snippiet.&lt;BR /&gt;&lt;BR /&gt;&amp;lt;row&amp;gt;&lt;BR /&gt;&amp;lt;panel&amp;gt;&lt;BR /&gt;&amp;lt;title&amp;gt;Number of Users Logged In&amp;lt;/title&amp;gt;&lt;BR /&gt;&amp;lt;table&amp;gt;&lt;BR /&gt;&amp;lt;search&amp;gt;&lt;BR /&gt;&amp;lt;query&amp;gt;index=ABC sourcetype=xyz "PROFILE_LOGIN" |rex "PROFILE:(?&amp;lt;UserName&amp;gt;\w+)\-"&lt;BR /&gt;|bin _time span=1h |stats dc(UserName) as No_Of_Users_Logged_In by _time&amp;lt;/query&amp;gt;&lt;BR /&gt;&amp;lt;earliest&amp;gt;$time_token.earliest$&amp;lt;/earliest&amp;gt;&lt;BR /&gt;&amp;lt;latest&amp;gt;$time_token.latest$&amp;lt;/latest&amp;gt;&lt;BR /&gt;&amp;lt;sampleRatio&amp;gt;1&amp;lt;/sampleRatio&amp;gt;&lt;BR /&gt;&amp;lt;/search&amp;gt;&lt;BR /&gt;&amp;lt;option name="count"&amp;gt;6&amp;lt;/option&amp;gt;&lt;BR /&gt;&amp;lt;option name="dataOverlayMode"&amp;gt;none&amp;lt;/option&amp;gt;&lt;BR /&gt;&amp;lt;option name="drilldown"&amp;gt;none&amp;lt;/option&amp;gt;&lt;BR /&gt;&amp;lt;/table&amp;gt;&lt;BR /&gt;&amp;lt;/panel&amp;gt;&lt;BR /&gt;&amp;lt;/row&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2022 14:50:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Show-raw-data-in-new-search-on-clicking-the-timestamp-or-a-value/m-p/622650#M51081</guid>
      <dc:creator>yamini_37</dc:creator>
      <dc:date>2022-11-30T14:50:05Z</dc:date>
    </item>
    <item>
      <title>Re: Show raw data in new search on clicking the timestamp or a value using drilldown</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Show-raw-data-in-new-search-on-clicking-the-timestamp-or-a-value/m-p/622651#M51082</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/15147"&gt;@somesoni2&lt;/a&gt;, &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/193600"&gt;@jeffland&lt;/a&gt; , please help&lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2022 14:51:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Show-raw-data-in-new-search-on-clicking-the-timestamp-or-a-value/m-p/622651#M51082</guid>
      <dc:creator>yamini_37</dc:creator>
      <dc:date>2022-11-30T14:51:15Z</dc:date>
    </item>
    <item>
      <title>Re: Show raw data in new search on clicking the timestamp or a value using drilldown</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Show-raw-data-in-new-search-on-clicking-the-timestamp-or-a-value/m-p/622659#M51083</link>
      <description>&lt;P&gt;Try something like this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;row&amp;gt;
&amp;lt;panel&amp;gt;
&amp;lt;title&amp;gt;Number of Users Logged In&amp;lt;/title&amp;gt;
&amp;lt;table&amp;gt;
&amp;lt;search&amp;gt;
&amp;lt;query&amp;gt;index=ABC sourcetype=xyz "PROFILE_LOGIN" |rex "PROFILE:(?&amp;lt;UserName&amp;gt;\w+)\-"
|bin _time span=1h |stats dc(UserName) as No_Of_Users_Logged_In by _time&amp;lt;/query&amp;gt;
&amp;lt;earliest&amp;gt;$time_token.earliest$&amp;lt;/earliest&amp;gt;
&amp;lt;latest&amp;gt;$time_token.latest$&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;6&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;drilldown&amp;gt;
          &amp;lt;eval token="earliest"&amp;gt;$value2$&amp;lt;/eval&amp;gt;
          &amp;lt;eval token="latest"&amp;gt;relative_time($value2$,"+1h")&amp;lt;/eval&amp;gt;
          &amp;lt;link target="_blank"&amp;gt;search?q=search%20index%3DABC%20sourcetype%3Dxyz%20%2CPROFILE_LOGIN%2C&amp;amp;amp;earliest%3D$earliest$&amp;amp;amp;latest%3D$latest$&amp;lt;/link&amp;gt;
        &amp;lt;/drilldown&amp;gt;
&amp;lt;/table&amp;gt;
&amp;lt;/panel&amp;gt;
&amp;lt;/row&amp;gt;&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 30 Nov 2022 15:32:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Show-raw-data-in-new-search-on-clicking-the-timestamp-or-a-value/m-p/622659#M51083</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-11-30T15:32:48Z</dc:date>
    </item>
    <item>
      <title>Re: Show raw data in new search on clicking the timestamp or a value using drilldown</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Show-raw-data-in-new-search-on-clicking-the-timestamp-or-a-value/m-p/622715#M51085</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&lt;/P&gt;&lt;P&gt;earliest and latest tokens are not working. When I clicked on the cell, the new tab got opened with the search query " index=ABC sourcetype=xyz "PROFILE_LOGIN" and time picker set to "last 15 minutes". I tried modifying the time tokens but no luck.&lt;/P&gt;&lt;P&gt;Plz help&lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2022 18:11:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Show-raw-data-in-new-search-on-clicking-the-timestamp-or-a-value/m-p/622715#M51085</guid>
      <dc:creator>yamini_37</dc:creator>
      <dc:date>2022-11-30T18:11:02Z</dc:date>
    </item>
    <item>
      <title>Re: Show raw data in new search on clicking the timestamp or a value using drilldown</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Show-raw-data-in-new-search-on-clicking-the-timestamp-or-a-value/m-p/622718#M51086</link>
      <description>&lt;LI-CODE lang="markup"&gt;          &amp;lt;eval token="earliest"&amp;gt;$click.value$&amp;lt;/eval&amp;gt;
          &amp;lt;eval token="latest"&amp;gt;relative_time($click.value$,"+1h@h")&amp;lt;/eval&amp;gt;&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 30 Nov 2022 18:32:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Show-raw-data-in-new-search-on-clicking-the-timestamp-or-a-value/m-p/622718#M51086</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-11-30T18:32:54Z</dc:date>
    </item>
    <item>
      <title>Re: Show raw data in new search on clicking the timestamp or a value using drilldown</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Show-raw-data-in-new-search-on-clicking-the-timestamp-or-a-value/m-p/622757#M51093</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;I tried this too, it's not working (picture attached). Any other suggestions, please?&lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2022 05:31:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Show-raw-data-in-new-search-on-clicking-the-timestamp-or-a-value/m-p/622757#M51093</guid>
      <dc:creator>yamini_37</dc:creator>
      <dc:date>2022-12-01T05:31:21Z</dc:date>
    </item>
  </channel>
</rss>

