<?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: Issue with Table Refresh After Updating Lookup via JavaScript in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Issue-with-Table-Refresh-After-Updating-Lookup-via-JavaScript/m-p/742003#M58436</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/308593"&gt;@molla&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try adding local=true to your lookup command to see if this resolves the issue you are seeing.&lt;/P&gt;&lt;P&gt;Please let me know how you get on and consider adding karma to this or any other answer if it has helped.&lt;BR /&gt;Regards&lt;BR /&gt;&lt;BR /&gt;Will&lt;/P&gt;</description>
    <pubDate>Mon, 17 Mar 2025 15:56:21 GMT</pubDate>
    <dc:creator>livehybrid</dc:creator>
    <dc:date>2025-03-17T15:56:21Z</dc:date>
    <item>
      <title>Issue with Table Refresh After Updating Lookup via JavaScript</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Issue-with-Table-Refresh-After-Updating-Lookup-via-JavaScript/m-p/742002#M58435</link>
      <description>&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have a Classic Dashboard with a table that retrieves data using the following search:&lt;/P&gt;&lt;P&gt;index=myindex| lookup mylookup.csv field1 OUTPUT field2&lt;/P&gt;&lt;P&gt;Through JavaScript, I update the mylookup.csv file using outputlookup, and after the update is completed, I trigger a refresh of the search in the panel using:&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;var mainSearch = mvc.&lt;SPAN class=""&gt;Components.&lt;SPAN class=""&gt;get(&lt;SPAN class=""&gt;"my_table_search");&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;if (mainSearch) { mainSearch.&lt;SPAN class=""&gt;startSearch(); }&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;DIV class=""&gt;Even though the data is correctly written into the lookup (mylookup.csv), the table does not reflect the updated data when the search is refreshed.&lt;DIV class=""&gt;&amp;nbsp;&lt;DIV class=""&gt;&lt;SPAN&gt;&lt;SPAN&gt;How can I ensure that Splunk reloads the lookup with the latest data in the table after my JavaScript updates it?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;&lt;SPAN&gt;Is there a way to force Splunk to bypass any caching of the lookup file?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;DIV class=""&gt;&lt;SPAN&gt;TY &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 17 Mar 2025 15:51:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Issue-with-Table-Refresh-After-Updating-Lookup-via-JavaScript/m-p/742002#M58435</guid>
      <dc:creator>molla</dc:creator>
      <dc:date>2025-03-17T15:51:17Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with Table Refresh After Updating Lookup via JavaScript</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Issue-with-Table-Refresh-After-Updating-Lookup-via-JavaScript/m-p/742003#M58436</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/308593"&gt;@molla&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try adding local=true to your lookup command to see if this resolves the issue you are seeing.&lt;/P&gt;&lt;P&gt;Please let me know how you get on and consider adding karma to this or any other answer if it has helped.&lt;BR /&gt;Regards&lt;BR /&gt;&lt;BR /&gt;Will&lt;/P&gt;</description>
      <pubDate>Mon, 17 Mar 2025 15:56:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Issue-with-Table-Refresh-After-Updating-Lookup-via-JavaScript/m-p/742003#M58436</guid>
      <dc:creator>livehybrid</dc:creator>
      <dc:date>2025-03-17T15:56:21Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with Table Refresh After Updating Lookup via JavaScript</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Issue-with-Table-Refresh-After-Updating-Lookup-via-JavaScript/m-p/742005#M58437</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/170906"&gt;@livehybrid&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;I edited the search and now is working &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; Thank you!&amp;nbsp;&lt;/P&gt;&lt;P&gt;A quick question, now I have a single SH environment, If I will switch to a SHC environment do I have to change this logic?&lt;/P&gt;</description>
      <pubDate>Mon, 17 Mar 2025 16:01:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Issue-with-Table-Refresh-After-Updating-Lookup-via-JavaScript/m-p/742005#M58437</guid>
      <dc:creator>molla</dc:creator>
      <dc:date>2025-03-17T16:01:20Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with Table Refresh After Updating Lookup via JavaScript</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Issue-with-Table-Refresh-After-Updating-Lookup-via-JavaScript/m-p/742006#M58438</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/308593"&gt;@molla&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Im glad this helped - this change means that it runs on the SH you are running the search on, rather than on the search peers (indexers) -&amp;nbsp; if you move from a SH to SHC then the lookup will replicate to the other nodes (quite quickly) so hopefully you wont see this issue!&lt;/P&gt;&lt;P&gt;Please let me know how you get on and consider adding karma to this or any other answer if it has helped.&lt;BR /&gt;Regards&lt;BR /&gt;&lt;BR /&gt;Will&lt;/P&gt;</description>
      <pubDate>Mon, 17 Mar 2025 16:13:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Issue-with-Table-Refresh-After-Updating-Lookup-via-JavaScript/m-p/742006#M58438</guid>
      <dc:creator>livehybrid</dc:creator>
      <dc:date>2025-03-17T16:13:14Z</dc:date>
    </item>
  </channel>
</rss>

