<?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: Dashboard that contains all of the input tokens values in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-that-contains-all-of-the-input-tokens-values/m-p/595960#M48865</link>
    <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/245377"&gt;@LinghGroove&lt;/a&gt;&amp;nbsp;- Try this search query:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults | eval IP=$added_ip_token|s$
| inputlookup ip_sospetti.csv append=true
| table IP
| outputlookup ip_sospetti.csv&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this helps!! Karma/upvote would be appreciated!!!&lt;/P&gt;</description>
    <pubDate>Fri, 29 Apr 2022 15:45:29 GMT</pubDate>
    <dc:creator>VatsalJagani</dc:creator>
    <dc:date>2022-04-29T15:45:29Z</dc:date>
    <item>
      <title>Dashboard that contains all of the input tokens values</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-that-contains-all-of-the-input-tokens-values/m-p/595946#M48863</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm having troubles creating a dashboard panel that can list values inserted by other users. The panel has an input field where users will put specific ip addressess that mast be added to this "list".&amp;nbsp; The only solution i came up with is a lookup file that will be updated with new rows every time a user adds a value as input. I have tried this query that i saw on &lt;A href="https://blog.avotrix.com/how-to-add-new-fields-in-existing-lookup-file/" target="_blank" rel="noopener"&gt;https://blog.avotrix.com/how-to-add-new-fields-in-existing-lookup-file/&lt;/A&gt; :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;| inputlookup ip_sospetti append=true&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;| append &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;[| stats count &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;| eval IP="$added_ip_token$" &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;| table IP] &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;| outputlookup ip_sospetti.csv&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;This search adds just one value to the lookup file and when a new input is added it changes the last value inserted. Do you guys have a better solution or maybe an idea to make this query work?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Thanks a lot.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Apr 2022 14:33:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-that-contains-all-of-the-input-tokens-values/m-p/595946#M48863</guid>
      <dc:creator>LinghGroove</dc:creator>
      <dc:date>2022-04-29T14:33:05Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard that contains all of the input tokens values</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-that-contains-all-of-the-input-tokens-values/m-p/595960#M48865</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/245377"&gt;@LinghGroove&lt;/a&gt;&amp;nbsp;- Try this search query:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults | eval IP=$added_ip_token|s$
| inputlookup ip_sospetti.csv append=true
| table IP
| outputlookup ip_sospetti.csv&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this helps!! Karma/upvote would be appreciated!!!&lt;/P&gt;</description>
      <pubDate>Fri, 29 Apr 2022 15:45:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-that-contains-all-of-the-input-tokens-values/m-p/595960#M48865</guid>
      <dc:creator>VatsalJagani</dc:creator>
      <dc:date>2022-04-29T15:45:29Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard that contains all of the input tokens values</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-that-contains-all-of-the-input-tokens-values/m-p/596029#M48872</link>
      <description>&lt;P&gt;Hello, thanks a lot for your answer, i really appreciate your help&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/93915"&gt;@VatsalJagani&lt;/a&gt;. Your solution does indeed work. It adds the input values to the lookup file perfectly. If someone else is interested i have created another query to resolve the problem:&lt;/P&gt;&lt;PRE&gt;| inputlookup append=true ip_sospetti.csv &lt;BR /&gt;| append &lt;BR /&gt;[| stats count &lt;BR /&gt;| eval IP="$new_ip_token$" &lt;BR /&gt;| table IP] &lt;BR /&gt;| fields - _time &lt;BR /&gt;| outputlookup ip_sospetti.csv&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Though i think that VatsalJagani solution is way better. Unfortunatly, both with my solution and with the query of Vatsal Jagani another problem have accured. When I close the dashboard and come back to use to insert a new input all the old values inserted disappear. I really don't now why. This is the dashboard:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;form script="run_action.js"&amp;gt;&lt;BR /&gt;&amp;lt;label&amp;gt;IP verification&amp;lt;/label&amp;gt;&lt;BR /&gt;&amp;lt;description&amp;gt;new dashboard with table IP&amp;lt;/description&amp;gt;&lt;BR /&gt;&amp;lt;fieldset submitButton="false" autoRun="false"&amp;gt;&amp;lt;/fieldset&amp;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;Use the botton to eliminate the contents of the table&amp;lt;/title&amp;gt;&lt;BR /&gt;&amp;lt;html&amp;gt;&lt;BR /&gt;&amp;lt;button class="btn btn-primary button1"&amp;gt;Run search!&amp;lt;/button&amp;gt;&lt;BR /&gt;&amp;lt;/html&amp;gt;&lt;BR /&gt;&amp;lt;/panel&amp;gt;&lt;BR /&gt;&amp;lt;/row&amp;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;IP table&amp;lt;/title&amp;gt;&lt;BR /&gt;&amp;lt;input type="text" token="new_ip_token" searchWhenChanged="true"&amp;gt;&lt;BR /&gt;&amp;lt;label&amp;gt;Insert IPs to monitor&amp;lt;/label&amp;gt;&lt;BR /&gt;&amp;lt;default&amp;gt;&amp;lt;/default&amp;gt;&lt;BR /&gt;&amp;lt;/input&amp;gt;&lt;BR /&gt;&amp;lt;input type="text" token="remove_ip" searchWhenChanged="true"&amp;gt;&lt;BR /&gt;&amp;lt;label&amp;gt;Insert IPs to remove&amp;lt;/label&amp;gt;&lt;BR /&gt;&amp;lt;/input&amp;gt;&lt;BR /&gt;&amp;lt;table&amp;gt;&lt;BR /&gt;&amp;lt;title&amp;gt;IP Table&amp;lt;/title&amp;gt;&lt;BR /&gt;&amp;lt;search&amp;gt;&lt;BR /&gt;&amp;lt;query&amp;gt;| makeresults&lt;BR /&gt;| eval IP="$new_ip_token$"&lt;BR /&gt;| inputlookup ip_sospetti.csv append=true&lt;BR /&gt;| table IP&lt;BR /&gt;| outputlookup ip_sospetti.csv&amp;lt;/query&amp;gt;&lt;BR /&gt;&amp;lt;earliest&amp;gt;0&amp;lt;/earliest&amp;gt;&lt;BR /&gt;&amp;lt;latest&amp;gt;&amp;lt;/latest&amp;gt;&lt;BR /&gt;&amp;lt;/search&amp;gt;&lt;BR /&gt;&amp;lt;option name="drilldown"&amp;gt;none&amp;lt;/option&amp;gt;&lt;BR /&gt;&amp;lt;option name="refresh.display"&amp;gt;progressbar&amp;lt;/option&amp;gt;&lt;BR /&gt;&amp;lt;format type="number" field="IP"&amp;gt;&amp;lt;/format&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;/P&gt;&lt;P&gt;&amp;lt;/form&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I thought it is the botton that (even if not used) that erases all the content of the table but it isn't. At this point i don't know how to proced. (i haven't yet started with the IP remove from table functionality).&lt;/P&gt;&lt;P&gt;Again, if someone have a better idea on how to do this i would be so grateful.&lt;/P&gt;&lt;P&gt;Thanks a lot.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 30 Apr 2022 09:22:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-that-contains-all-of-the-input-tokens-values/m-p/596029#M48872</guid>
      <dc:creator>LinghGroove</dc:creator>
      <dc:date>2022-04-30T09:22:16Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard that contains all of the input tokens values</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-that-contains-all-of-the-input-tokens-values/m-p/596039#M48875</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/245377"&gt;@LinghGroove&lt;/a&gt;&amp;nbsp;- Is there any reason you cannot use the Lookup editor application (&lt;A href="https://splunkbase.splunk.com/app/1724/" target="_blank"&gt;https://splunkbase.splunk.com/app/1724/&lt;/A&gt;)?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't understand what is not working for you now. I don't see any reason for the search to empty the lookup.&lt;/P&gt;</description>
      <pubDate>Sat, 30 Apr 2022 14:32:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-that-contains-all-of-the-input-tokens-values/m-p/596039#M48875</guid>
      <dc:creator>VatsalJagani</dc:creator>
      <dc:date>2022-04-30T14:32:31Z</dc:date>
    </item>
  </channel>
</rss>

