<?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 delete a stats table using CSS on dashboard in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-delete-a-stats-table-using-CSS-on-dashboard/m-p/553762#M38433</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/6367"&gt;@bowesmana&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I'm not a developer and new to Splunk,&amp;nbsp; so this is tricky for me. Below is my code:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt; &amp;lt;table depends="$non_existant_token$"&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;| rest /servicesNS/-/-/data/lookup-table-files search="*_Report.csv"

| eval updated=strptime(updated,"%FT%T%:z")

| eval desired_time=strftime(updated, "%B %d, %Y")

| rename desired_time as "Last Updated" title as Team

| table "Last Updated", Team 

&amp;lt;done&amp;gt;
      &amp;lt;set token="tkn_data1"&amp;gt;$result.data1$&amp;lt;/set&amp;gt;
      &amp;lt;set token="tkn_data2"&amp;gt;$result.data2$&amp;lt;/set&amp;gt;&lt;/LI-CODE&gt;</description>
    <pubDate>Tue, 01 Jun 2021 04:21:29 GMT</pubDate>
    <dc:creator>MeMilo09</dc:creator>
    <dc:date>2021-06-01T04:21:29Z</dc:date>
    <item>
      <title>How to delete a stats table using CSS on dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-delete-a-stats-table-using-CSS-on-dashboard/m-p/553738#M38428</link>
      <description>&lt;P&gt;Hello There,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Been trying to get the simple task of removing a stats table using CSS. I need the data in the table, but I dont want the format of the table. I would like a white background with just my data, no rows on the table or columns. I have tried the code below, but it takes no effect on my table. Any suggestions?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;#removeTable . table, th, td {
        border: 0px solid black;
    }
             
        &amp;lt;/style&amp;gt;

    &amp;lt;/html&amp;gt;
      &amp;lt;table id="removeTable"&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 31 May 2021 23:27:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-delete-a-stats-table-using-CSS-on-dashboard/m-p/553738#M38428</guid>
      <dc:creator>MeMilo09</dc:creator>
      <dc:date>2021-05-31T23:27:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete a stats table using CSS on dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-delete-a-stats-table-using-CSS-on-dashboard/m-p/553748#M38429</link>
      <description>&lt;P&gt;If you want the data, but no table, does not just making the panel dependant not work, i.e.&lt;/P&gt;&lt;P&gt;&amp;lt;table depends="$non_existant_token$"&amp;gt;&lt;/P&gt;&lt;P&gt;when you say you 'need the data', do you mean visually or to facilitate some drilldown or other functionality in the dashboard?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Jun 2021 00:40:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-delete-a-stats-table-using-CSS-on-dashboard/m-p/553748#M38429</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2021-06-01T00:40:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete a stats table using CSS on dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-delete-a-stats-table-using-CSS-on-dashboard/m-p/553756#M38430</link>
      <description>&lt;P&gt;I need the data to support other functionality in the dashboard. The data is on a stats table and it’s running a | rest command that shows when look ups were last updated date wise, but since that table is occupying too much room&lt;SPAN&gt;- I have managed to reduce the table width.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;At this time I just need to remove the table rows - the coloring and just have a white background, but keep the data is this possible using CSS?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Jun 2021 02:38:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-delete-a-stats-table-using-CSS-on-dashboard/m-p/553756#M38430</guid>
      <dc:creator>MeMilo09</dc:creator>
      <dc:date>2021-06-01T02:38:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete a stats table using CSS on dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-delete-a-stats-table-using-CSS-on-dashboard/m-p/553758#M38431</link>
      <description>&lt;P&gt;You can hide the table totally with the depends=xx syntax I describe, but the search will still run&amp;nbsp; and if you have a &amp;lt;done&amp;gt; clause as part of your table to set tokens.&lt;/P&gt;&lt;P&gt;How are you using that table data?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Jun 2021 03:15:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-delete-a-stats-table-using-CSS-on-dashboard/m-p/553758#M38431</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2021-06-01T03:15:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete a stats table using CSS on dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-delete-a-stats-table-using-CSS-on-dashboard/m-p/553760#M38432</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/233122"&gt;@MeMilo09&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you don't wanna table but need search results then you just keep search outside table ad remove table.&lt;/P&gt;&lt;P&gt;Can you please try this?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;dashboard&amp;gt;
  &amp;lt;label&amp;gt;Only Search&amp;lt;/label&amp;gt;
  &amp;lt;search&amp;gt;
    &amp;lt;query&amp;gt;| makeresults | eval data1="Hi", data2="Hello"&amp;lt;/query&amp;gt;
    &amp;lt;done&amp;gt;
      &amp;lt;set token="tkn_data1"&amp;gt;$result.data1$&amp;lt;/set&amp;gt;
      &amp;lt;set token="tkn_data2"&amp;gt;$result.data2$&amp;lt;/set&amp;gt;
    &amp;lt;/done&amp;gt;
  &amp;lt;/search&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;html&amp;gt;
        &amp;lt;h1&amp;gt;Use below token in any search or label&amp;lt;/h1&amp;gt;
        tkn_data1 : $tkn_data1$ &amp;lt;br /&amp;gt;
        tkn_data2: $tkn_data2$
      &amp;lt;/html&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&amp;lt;/dashboard&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this will you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;BR /&gt;KV&lt;BR /&gt;▄︻̷̿┻̿═━一&lt;BR /&gt;&lt;BR /&gt;If any of my reply helps you to solve the problem Or gain knowledge, an upvote would be appreciated.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Jun 2021 03:36:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-delete-a-stats-table-using-CSS-on-dashboard/m-p/553760#M38432</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2021-06-01T03:36:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete a stats table using CSS on dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-delete-a-stats-table-using-CSS-on-dashboard/m-p/553762#M38433</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/6367"&gt;@bowesmana&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I'm not a developer and new to Splunk,&amp;nbsp; so this is tricky for me. Below is my code:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt; &amp;lt;table depends="$non_existant_token$"&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;| rest /servicesNS/-/-/data/lookup-table-files search="*_Report.csv"

| eval updated=strptime(updated,"%FT%T%:z")

| eval desired_time=strftime(updated, "%B %d, %Y")

| rename desired_time as "Last Updated" title as Team

| table "Last Updated", Team 

&amp;lt;done&amp;gt;
      &amp;lt;set token="tkn_data1"&amp;gt;$result.data1$&amp;lt;/set&amp;gt;
      &amp;lt;set token="tkn_data2"&amp;gt;$result.data2$&amp;lt;/set&amp;gt;&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 01 Jun 2021 04:21:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-delete-a-stats-table-using-CSS-on-dashboard/m-p/553762#M38433</guid>
      <dc:creator>MeMilo09</dc:creator>
      <dc:date>2021-06-01T04:21:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete a stats table using CSS on dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-delete-a-stats-table-using-CSS-on-dashboard/m-p/553768#M38435</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/127939"&gt;@kamlesh_vaghela&lt;/a&gt;&amp;nbsp; Thanks, this hides my table, but I still cant get my query to display. Where should the tokens below go? I put them in my query search after | search, but still no results. Below is also my query&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;$tkn_data1$&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;$tkn_data2$&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;BR /&gt;My query:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;dashboard&amp;gt;
  &amp;lt;label&amp;gt;Only Search&amp;lt;/label&amp;gt;
  &amp;lt;search&amp;gt;
    &amp;lt;query&amp;gt;| rest /servicesNS/-/-/data/lookup-table-files search="*_Report.csv"

| eval updated=strptime(updated,"%FT%T%:z")

| eval desired_time=strftime(updated, "%B %d, %Y")

| rename desired_time as "Last Updated" title as Team

| search $tkn_data1$ $tkn_data2$

| table "Last Updated", Team 

&amp;lt;/query&amp;gt;
    &amp;lt;done&amp;gt;
      &amp;lt;set token="tkn_data1"&amp;gt;$result.data1$&amp;lt;/set&amp;gt;
      &amp;lt;set token="tkn_data2"&amp;gt;$result.data2$&amp;lt;/set&amp;gt;
    &amp;lt;/done&amp;gt;
  &amp;lt;/search&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;html&amp;gt;
        &amp;lt;h1&amp;gt;Use below token in any search or label&amp;lt;/h1&amp;gt;
        tkn_data1 : $tkn_data1$ &amp;lt;br /&amp;gt;
        tkn_data2: $tkn_data2$
      &amp;lt;/html&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&amp;lt;/dashboard&amp;gt;&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 01 Jun 2021 05:05:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-delete-a-stats-table-using-CSS-on-dashboard/m-p/553768#M38435</guid>
      <dc:creator>MeMilo09</dc:creator>
      <dc:date>2021-06-01T05:05:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete a stats table using CSS on dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-delete-a-stats-table-using-CSS-on-dashboard/m-p/553774#M38436</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/233122"&gt;@MeMilo09&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please try this CSS?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="css"&gt;       #removeTable .table th {
          background: #ffffff !important;
       }
       #removeTable .table th a{
          color: black !important;
          font-weight: bold !important;
       }
       #removeTable table tr.odd td{
        background: #ffffff !important;
      }
      #removeTable table tr.even td{
        background: #ffffff !important;
      }
      #removeTable table tr td{
        color: #000 !important;
      }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Jun 2021 05:32:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-delete-a-stats-table-using-CSS-on-dashboard/m-p/553774#M38436</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2021-06-01T05:32:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete a stats table using CSS on dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-delete-a-stats-table-using-CSS-on-dashboard/m-p/553789#M38442</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/233122"&gt;@MeMilo09&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;OK, so the concept of &amp;lt;done&amp;gt; is that you are creating an event handler that is triggered when the search completes&lt;/P&gt;&lt;P&gt;the set token statements will set tokens based on the FIRST ROW of your result table, so the answer from&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/127939"&gt;@kamlesh_vaghela&lt;/a&gt;&amp;nbsp; is showing you how to get the fields from your result, but in your example you would need something like this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;table depends="$non_existant_token$"&amp;gt;
  &amp;lt;search&amp;gt;
    &amp;lt;query
| rest /servicesNS/-/-/data/lookup-table-files search="*_Report.csv"
| eval updated=strptime(updated,"%FT%T%:z")
| eval desired_time=strftime(updated, "%B %d, %Y")
| rename desired_time as last_updated title as Team
| table last_updated, Team 
    &amp;lt;/query&amp;gt;
  &amp;lt;/search&amp;gt;
  &amp;lt;done&amp;gt;
    &amp;lt;set token="token_last_updated"&amp;gt;$result.last_updated$&amp;lt;/set&amp;gt;
    &amp;lt;set token="token_team"&amp;gt;$result.Team$&amp;lt;/set&amp;gt;
  &amp;lt;/done&amp;gt;
  &amp;lt;any other options for the table here&amp;gt;
&amp;lt;/table&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;However, this is ONLY useful to get the first row of the results from your rest call. Hence my question about how you want to use the data. That's the question that needs answering.&lt;/P&gt;&lt;P&gt;For example, what are you intending to do with this data and if you have multiple rows, how do you want to use it?&lt;/P&gt;&lt;P&gt;Useful docs are&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.1.4/Viz/PanelreferenceforSimplifiedXML" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/8.1.4/Viz/PanelreferenceforSimplifiedXML&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.2.0/Viz/tokens" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/8.2.0/Viz/tokens&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.2.0/Viz/EventHandlerReference" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/8.2.0/Viz/EventHandlerReference&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Jun 2021 06:39:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-delete-a-stats-table-using-CSS-on-dashboard/m-p/553789#M38442</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2021-06-01T06:39:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete a stats table using CSS on dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-delete-a-stats-table-using-CSS-on-dashboard/m-p/553871#M38455</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/127939"&gt;@kamlesh_vaghela&lt;/a&gt;&amp;nbsp; I don't see the table anymore using CSS you have provided - which is what I wanted. I appreciate all your help.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Jun 2021 15:44:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-delete-a-stats-table-using-CSS-on-dashboard/m-p/553871#M38455</guid>
      <dc:creator>MeMilo09</dc:creator>
      <dc:date>2021-06-01T15:44:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete a stats table using CSS on dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-delete-a-stats-table-using-CSS-on-dashboard/m-p/553872#M38456</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/6367"&gt;@bowesmana&lt;/a&gt;&amp;nbsp;Thanks for your help, going to review the docs you sent to help me understand.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Jun 2021 15:43:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-delete-a-stats-table-using-CSS-on-dashboard/m-p/553872#M38456</guid>
      <dc:creator>MeMilo09</dc:creator>
      <dc:date>2021-06-01T15:43:23Z</dc:date>
    </item>
  </channel>
</rss>

