<?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: Using Value from Rex Command in Interactive Drilldown Dashboard in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Using-Value-from-Rex-Command-in-Interactive-Drilldown-Dashboard/m-p/701846#M57561</link>
    <description>&lt;P&gt;$*token$ - what is it supposed to be? Maybe, just maybe *$token$ could work. Definitely not the way you're trying to do. You have no token named "*token"&lt;/P&gt;</description>
    <pubDate>Mon, 14 Oct 2024 18:30:54 GMT</pubDate>
    <dc:creator>PickleRick</dc:creator>
    <dc:date>2024-10-14T18:30:54Z</dc:date>
    <item>
      <title>Using Value from Rex Command in Interactive Drilldown Dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Using-Value-from-Rex-Command-in-Interactive-Drilldown-Dashboard/m-p/701845#M57560</link>
      <description>&lt;P&gt;Need help with creating an interactive drill down with value extracted using the rex command.&amp;nbsp; I want to monitor users saving files to a certain folder and also sort and look at file extension types that are saved in folder and by who.&amp;nbsp; Raw test data has: &lt;STRONG&gt;time, user, computer, directory and document&lt;/STRONG&gt; as seen below.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Test Data&lt;/STRONG&gt;&lt;BR /&gt;&lt;U&gt;_time&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;user_name&amp;nbsp; &amp;nbsp; &amp;nbsp; computer_name&amp;nbsp; &amp;nbsp; &amp;nbsp; source_directory&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; document&lt;/U&gt;&lt;BR /&gt;10/11/2024&amp;nbsp; &amp;nbsp; &amp;nbsp; user1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Destop_user1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;\\cpn-local\priv\cus\&amp;nbsp; &amp;nbsp; &amp;nbsp; document1.pdf&lt;BR /&gt;10/11/2024&amp;nbsp; &amp;nbsp; &amp;nbsp; user4 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Destop_user1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; \\cpn-local\priv\cus\&amp;nbsp; &amp;nbsp; &amp;nbsp; document2.doc&lt;BR /&gt;10/10/2024&amp;nbsp; &amp;nbsp; &amp;nbsp; user1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Destop_user1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; \\cpn-local\priv\cus\&amp;nbsp; &amp;nbsp; &amp;nbsp; document3.pdf&lt;BR /&gt;10/10/2024&amp;nbsp; &amp;nbsp; &amp;nbsp; user2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Destop_user2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; \\cpn-local\priv\cus\&amp;nbsp; &amp;nbsp; &amp;nbsp; document4.pdf&lt;BR /&gt;10/9/2024&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;user3 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Destop_user3 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; \\cpn-local\priv\cus\&amp;nbsp; &amp;nbsp; &amp;nbsp; document5.pdf&lt;BR /&gt;10/9/2024&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;user4 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Destop_user4 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; \\cpn-local\priv\cus\&amp;nbsp; &amp;nbsp; &amp;nbsp; document6.doc&lt;BR /&gt;10/9/2024&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;user2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Destop_user2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; \\cpn-local\priv\cus\&amp;nbsp; &amp;nbsp; &amp;nbsp; document7.doc&lt;/P&gt;&lt;P&gt;I have created a drill using a token value of the queried data from the raw logs which allows me to selecte a user from a pie chart and show all logs in a second table. Those two dashboard panels are below and work.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;***User Pie Chart with the drilldown token: token_user=$click.value$ ***&lt;/STRONG&gt;&lt;BR /&gt;index="user_files"&lt;BR /&gt;| rex field="document" "\.(?&amp;lt;extension&amp;gt;[^\.]*$$)"&lt;BR /&gt;| stats count(user_name) BY user_name&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;***User Record Table ***&lt;/STRONG&gt;&lt;BR /&gt;index="user_files" user_name = $token$&lt;BR /&gt;| table _time, user_name, computer_name, source_directory, document&lt;/P&gt;&lt;P&gt;I am now trying to create a dashboard taking the same raw data, add a rex command to filter out extension and have the pie chart show the specific file extension I have logs from an index which I have done using the following query&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;*** File Extension Pie Chart:&amp;nbsp; Works ***&lt;/STRONG&gt;&lt;BR /&gt;index="user_files"&lt;BR /&gt;| rex field="document" "\.(?&amp;lt;extension&amp;gt;[^\.]*$$)"&lt;BR /&gt;| stats count(extension) by extension&lt;/P&gt;&lt;P&gt;However, when I call on the token "source = $token$" after declaring the index to display records based on pie chart selection, there is no search results.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;*** Records by file type selected in Pie Chart: No Records found with selection from Pie Chart **&lt;/STRONG&gt;&lt;BR /&gt;index="user_files" source=$*token$&lt;BR /&gt;| table _time, user_name, computer_name, source_directory, document&lt;BR /&gt;&lt;BR /&gt;I also tried (index="user_files" extension=$*token$") and ("|where extension="$token$") in the query and still no results are seen in the record table.&lt;BR /&gt;&lt;BR /&gt;Any help would be greatly appreciated.&amp;nbsp; I understand the logic needed, just having problems executing the drill down.&amp;nbsp; &amp;nbsp;Thanks&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2024 18:24:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Using-Value-from-Rex-Command-in-Interactive-Drilldown-Dashboard/m-p/701845#M57560</guid>
      <dc:creator>ramuzzini</dc:creator>
      <dc:date>2024-10-14T18:24:35Z</dc:date>
    </item>
    <item>
      <title>Re: Using Value from Rex Command in Interactive Drilldown Dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Using-Value-from-Rex-Command-in-Interactive-Drilldown-Dashboard/m-p/701846#M57561</link>
      <description>&lt;P&gt;$*token$ - what is it supposed to be? Maybe, just maybe *$token$ could work. Definitely not the way you're trying to do. You have no token named "*token"&lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2024 18:30:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Using-Value-from-Rex-Command-in-Interactive-Drilldown-Dashboard/m-p/701846#M57561</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2024-10-14T18:30:54Z</dc:date>
    </item>
    <item>
      <title>Re: Using Value from Rex Command in Interactive Drilldown Dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Using-Value-from-Rex-Command-in-Interactive-Drilldown-Dashboard/m-p/701849#M57562</link>
      <description>&lt;P&gt;The token value I am trying to carry over in my table is the(token=$click.value$) using the field extracted In the drilldown editor.&amp;nbsp; I have my values/parameters set to:&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;on click&amp;nbsp; set "token"= $click.value$.&amp;nbsp; I named my token name "Token" in the drilldown editor for simplicity.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In initial post I stated &lt;STRONG&gt;***User Pie Chart with the drilldown token: token_user=$click.value$ ***&amp;nbsp;&lt;BR /&gt;&lt;/STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; but&amp;nbsp; should by&amp;nbsp;&lt;BR /&gt;&lt;STRONG&gt;***User Pie Chart with the drilldown token: "token"=$click.value$ ***&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;*** File Extension Pie Chart with the drilldown token: "token"=$click.value$ ***&lt;/STRONG&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;index="user_files"
| rex field="document" "\.(?&amp;lt;extension&amp;gt;[^\.]*$$)"
| stats count(extension) by extension&lt;/LI-CODE&gt;
&lt;P&gt;However, when I call on the token "source = $token$" after declaring the index to display records based on pie chart selection, there is no search results.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;*** Records by file type selected in Pie Chart: No Records found with selection from Pie Chart **&lt;/STRONG&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;index="user_files" source=$*token$
| table _time, user_name, computer_name, source_directory, document&lt;/LI-CODE&gt;
&lt;P&gt;Apologize for the confusion.&amp;nbsp; Hope that clears it up a little.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2024 22:07:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Using-Value-from-Rex-Command-in-Interactive-Drilldown-Dashboard/m-p/701849#M57562</guid>
      <dc:creator>ramuzzini</dc:creator>
      <dc:date>2024-10-14T22:07:37Z</dc:date>
    </item>
    <item>
      <title>Re: Using Value from Rex Command in Interactive Drilldown Dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Using-Value-from-Rex-Command-in-Interactive-Drilldown-Dashboard/m-p/701850#M57563</link>
      <description>&lt;P&gt;It's no confusion. I meant to show you that you're trying to use a token named "*token". Even if it was syntactically correct which I doubt - I think the token name syntax is more restricted - it would still be a different token than the one you have defined.&lt;/P&gt;&lt;P&gt;If you define a token named "token" you use it as $token$, not $*token$, not $my_token$,&amp;nbsp; not $token_I_forgot_about$. These are all different literals.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2024 19:03:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Using-Value-from-Rex-Command-in-Interactive-Drilldown-Dashboard/m-p/701850#M57563</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2024-10-14T19:03:06Z</dc:date>
    </item>
    <item>
      <title>Re: Using Value from Rex Command in Interactive Drilldown Dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Using-Value-from-Rex-Command-in-Interactive-Drilldown-Dashboard/m-p/701852#M57565</link>
      <description>&lt;P&gt;That was a type, copy and pasted.&amp;nbsp; &amp;nbsp;My token I am using in my search string is (source=$token$)&amp;nbsp; Not sure where/why I added the (*) in the token name.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2024 19:07:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Using-Value-from-Rex-Command-in-Interactive-Drilldown-Dashboard/m-p/701852#M57565</guid>
      <dc:creator>ramuzzini</dc:creator>
      <dc:date>2024-10-14T19:07:15Z</dc:date>
    </item>
    <item>
      <title>Re: Using Value from Rex Command in Interactive Drilldown Dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Using-Value-from-Rex-Command-in-Interactive-Drilldown-Dashboard/m-p/701853#M57566</link>
      <description>&lt;P&gt;Realizing I need to run the rex command in my table because Splunk doesn't have any value in that search fin the raw data to associated with the token.&amp;nbsp; Going to try some alternative queries for now to see if I can come up with the solution now considering that.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2024 19:16:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Using-Value-from-Rex-Command-in-Interactive-Drilldown-Dashboard/m-p/701853#M57566</guid>
      <dc:creator>ramuzzini</dc:creator>
      <dc:date>2024-10-14T19:16:18Z</dc:date>
    </item>
    <item>
      <title>Re: Using Value from Rex Command in Interactive Drilldown Dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Using-Value-from-Rex-Command-in-Interactive-Drilldown-Dashboard/m-p/701854#M57567</link>
      <description>&lt;P&gt;Figured it out:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;*** File Extension Pie Chart:&amp;nbsp; Works ***&lt;/STRONG&gt;&lt;BR /&gt;index="user_files"&lt;BR /&gt;| rex field="document" "\.(?&amp;lt;extension&amp;gt;[^\.]*$$)"&lt;BR /&gt;| stats count(extension) by extension&lt;/P&gt;&lt;P&gt;However, when I call on the token "source = $token$" after declaring the index to display records based on pie chart selection, there is no search results.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;*** Records by file type selected in Pie Chart: No Records found with selection from Pie Chart **&lt;/STRONG&gt;&lt;BR /&gt;index="user_files"&amp;nbsp;&lt;BR /&gt;| rex field="document" "\.(?&amp;lt;extension&amp;gt;[^\.]*$$)"&lt;BR /&gt;| where extension = "$token$"&lt;BR /&gt;| table ...&lt;BR /&gt;&lt;BR /&gt;Thanks PickleRick for given a response in helping figure this out.&amp;nbsp; Much appreciate.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2024 19:39:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Using-Value-from-Rex-Command-in-Interactive-Drilldown-Dashboard/m-p/701854#M57567</guid>
      <dc:creator>ramuzzini</dc:creator>
      <dc:date>2024-10-14T19:39:36Z</dc:date>
    </item>
  </channel>
</rss>

