<?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: Delete rows from dashboard in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Delete-rows-from-dashboard/m-p/555165#M38597</link>
    <description>&lt;P&gt;Use the Lookup Editor app.&amp;nbsp; Or add some JavaScript code to the dashboard that accepts user input and sets a field in the row(s) to be deleted.&amp;nbsp; The dashboard then needs to re-write the CSV, omitting the marked row(s).&lt;/P&gt;</description>
    <pubDate>Wed, 09 Jun 2021 18:02:19 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2021-06-09T18:02:19Z</dc:date>
    <item>
      <title>Delete rows from dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Delete-rows-from-dashboard/m-p/555159#M38595</link>
      <description>&lt;P&gt;Lets say, i have a dashboard that fetches data from a csv and displays it in table format. i want to delete a particular entry from the table using the dashboard and not by manually opening the csv and deleting the entry. how to achieve this ?&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jun 2021 17:52:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Delete-rows-from-dashboard/m-p/555159#M38595</guid>
      <dc:creator>Saikat001</dc:creator>
      <dc:date>2021-06-09T17:52:52Z</dc:date>
    </item>
    <item>
      <title>Re: Delete rows from dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Delete-rows-from-dashboard/m-p/555160#M38596</link>
      <description>&lt;P&gt;outputlookup can be used to rewrite the csv file, so create a search that has all but the deleted event in and save that&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jun 2021 17:56:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Delete-rows-from-dashboard/m-p/555160#M38596</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-06-09T17:56:56Z</dc:date>
    </item>
    <item>
      <title>Re: Delete rows from dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Delete-rows-from-dashboard/m-p/555165#M38597</link>
      <description>&lt;P&gt;Use the Lookup Editor app.&amp;nbsp; Or add some JavaScript code to the dashboard that accepts user input and sets a field in the row(s) to be deleted.&amp;nbsp; The dashboard then needs to re-write the CSV, omitting the marked row(s).&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jun 2021 18:02:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Delete-rows-from-dashboard/m-p/555165#M38597</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2021-06-09T18:02:19Z</dc:date>
    </item>
    <item>
      <title>Re: Delete rows from dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Delete-rows-from-dashboard/m-p/555177#M38598</link>
      <description>&lt;P&gt;Looks like we have solution for this in another Splunk answer. Check below link once.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://community.splunk.com/t5/Splunk-Search/I-want-to-modify-Lookup-file-directly-through-the-dashboard/m-p/23073" target="_blank"&gt;https://community.splunk.com/t5/Splunk-Search/I-want-to-modify-Lookup-file-directly-through-the-dashboard/m-p/23073&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You may need to play with python little bit.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jun 2021 19:56:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Delete-rows-from-dashboard/m-p/555177#M38598</guid>
      <dc:creator>rupkumar4sec</dc:creator>
      <dc:date>2021-06-09T19:56:03Z</dc:date>
    </item>
    <item>
      <title>Re: Delete rows from dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Delete-rows-from-dashboard/m-p/555187#M38599</link>
      <description>&lt;P&gt;Here is a dashboard (&lt;U&gt;without&lt;/U&gt; python/javascript/etc.) that allow you to add and remove rows from a csv - it uses only one field which is assumed to be unique (at least as far as deletes are concerned) that is all events with the key equal to the delete value will be removed. This obviously would need modifying for your use case, but could be used as a starting point.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;form&amp;gt;
  &amp;lt;label&amp;gt;csv editor&amp;lt;/label&amp;gt;
  &amp;lt;fieldset submitButton="false"&amp;gt;
    &amp;lt;input type="text" token="addvalue" searchWhenChanged="true"&amp;gt;
      &amp;lt;label&amp;gt;Key to add&amp;lt;/label&amp;gt;
      &amp;lt;change&amp;gt;
        &amp;lt;eval token="add"&amp;gt;$value$&amp;lt;/eval&amp;gt;
      &amp;lt;/change&amp;gt;
    &amp;lt;/input&amp;gt;
    &amp;lt;input type="text" token="delvalue" searchWhenChanged="true"&amp;gt;
      &amp;lt;label&amp;gt;Key to delete&amp;lt;/label&amp;gt;
      &amp;lt;change&amp;gt;
        &amp;lt;eval token="delete"&amp;gt;$value$&amp;lt;/eval&amp;gt;
      &amp;lt;/change&amp;gt;
    &amp;lt;/input&amp;gt;
  &amp;lt;/fieldset&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;table&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;| inputlookup store.csv
          | eval dummy=$time$
          | table key
          &amp;lt;/query&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;option name="drilldown"&amp;gt;none&amp;lt;/option&amp;gt;
      &amp;lt;/table&amp;gt;
    &amp;lt;/panel&amp;gt;
    &amp;lt;panel depends="$alwayshide$"&amp;gt;
      &amp;lt;table&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;| makeresults
          | eval key="$add$"
          | table key
          | outputlookup store.csv append=t
          &amp;lt;/query&amp;gt;
          &amp;lt;done&amp;gt;
            &amp;lt;eval token="time"&amp;gt;now()&amp;lt;/eval&amp;gt;
          &amp;lt;/done&amp;gt;
        &amp;lt;/search&amp;gt;
      &amp;lt;/table&amp;gt;
    &amp;lt;/panel&amp;gt;
    &amp;lt;panel depends="$alwayshide$"&amp;gt;
      &amp;lt;table&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;| inputlookup store.csv
          | where key!="$delete$"
          | table key
          | outputlookup store.csv append=f
          &amp;lt;/query&amp;gt;
          &amp;lt;done&amp;gt;
            &amp;lt;eval token="time"&amp;gt;now()&amp;lt;/eval&amp;gt;
          &amp;lt;/done&amp;gt;
        &amp;lt;/search&amp;gt;
      &amp;lt;/table&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&amp;lt;/form&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jun 2021 21:54:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Delete-rows-from-dashboard/m-p/555187#M38599</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-06-09T21:54:49Z</dc:date>
    </item>
    <item>
      <title>Re: Delete rows from dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Delete-rows-from-dashboard/m-p/555234#M38604</link>
      <description>&lt;P&gt;I should have added that because the key to be deleted is based on a token being set, this could be done through a drill down on the table being viewed, although you still might want to have an "are you sure" step e.g. display the key in another panel or input and click / drilldown from there to send the key for deletion.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jun 2021 07:01:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Delete-rows-from-dashboard/m-p/555234#M38604</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-06-10T07:01:40Z</dc:date>
    </item>
    <item>
      <title>Re: Delete rows from dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Delete-rows-from-dashboard/m-p/555305#M38609</link>
      <description>&lt;P&gt;This works definitely . Thank you very much .&amp;nbsp;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":beaming_face_with_smiling_eyes:"&gt;😁&lt;/span&gt;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_sunglasses:"&gt;😎&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Though one thing to highlight, this would work good for small to medium size csv's. For larger csv's, to delete one Field, the whole csv gets re-written which might face some issues.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jun 2021 13:19:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Delete-rows-from-dashboard/m-p/555305#M38609</guid>
      <dc:creator>Saikat001</dc:creator>
      <dc:date>2021-06-10T13:19:36Z</dc:date>
    </item>
  </channel>
</rss>

