<?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: Why is API change not updated in web page? in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/Why-is-API-change-not-updated-in-web-page/m-p/626056#M10883</link>
    <description>&lt;P&gt;It may be the way I am accessing Splunk through the API.&amp;nbsp; I am using my user since the API token is for my user.&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;SPAN&gt;$"{splunkBaseUrl}/servicesNS/{user}/search/saved/searches/";&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;There is documentation that says to use&amp;nbsp;&lt;A href="https://community.splunk.com/" target="_blank"&gt;https://&amp;lt;host&amp;gt;:&amp;lt;mPort&amp;gt;/services/alerts/alert_actions&lt;/A&gt;.&amp;nbsp; I think I had tried that before and could not get it to work with the API token I was using at least.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will try using a different endpoint.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 05 Jan 2023 20:26:57 GMT</pubDate>
    <dc:creator>MScottFoley</dc:creator>
    <dc:date>2023-01-05T20:26:57Z</dc:date>
    <item>
      <title>Why is API change not updated in web page?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Why-is-API-change-not-updated-in-web-page/m-p/626041#M10879</link>
      <description>&lt;P&gt;I updated an alert description using the REST API (port 8089).&amp;nbsp; When I use the API to list the description it shows the updated description.&amp;nbsp; When I look at the alert using the web page (port 8000) it still has the old version.&amp;nbsp; There are multiple instances of Splunk and a load balancer, but I do not know the specifics.&amp;nbsp; I always use the same IP address to access Splunk.&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For the API access I use a token under my username.&amp;nbsp; Is my token the problem?&amp;nbsp; My user has enough rights to create and change alerts.&amp;nbsp; Although when&amp;nbsp;I list all alerts using&amp;nbsp;&lt;EM&gt;|rest/servicesNS/-/-/saved/searches&lt;/EM&gt; I get a warning&amp;nbsp;&lt;EM&gt;Restricting results of the "rest" operator to the local instance because you do not have the "dispatch_rest_to_indexers" capability&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;Thanks.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jan 2023 18:08:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Why-is-API-change-not-updated-in-web-page/m-p/626041#M10879</guid>
      <dc:creator>MScottFoley</dc:creator>
      <dc:date>2023-01-05T18:08:27Z</dc:date>
    </item>
    <item>
      <title>Re: Why is API change not updated in web page?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Why-is-API-change-not-updated-in-web-page/m-p/626043#M10880</link>
      <description>&lt;P&gt;If the Splunk instances are a Search Head cluster then changes made to one should be reflected in the others within a few minutes at most.&amp;nbsp; Sometimes, page caches can cause old data to be displayed.&amp;nbsp; Try holding down the shift key as you refresh the page.&amp;nbsp; If that doesn't help, clear your browser cache or use incognito mode.&lt;/P&gt;&lt;P&gt;You can use the &lt;FONT face="courier new,courier"&gt;splunk_server=local&lt;/FONT&gt; option to the &lt;FONT face="courier new,courier"&gt;rest&lt;/FONT&gt; command to suppress that warning.&amp;nbsp; Saved searches are only on the SH, anyway, so there's no need to send the request to the indexers.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jan 2023 18:13:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Why-is-API-change-not-updated-in-web-page/m-p/626043#M10880</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2023-01-05T18:13:22Z</dc:date>
    </item>
    <item>
      <title>Re: Why is API change not updated in web page?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Why-is-API-change-not-updated-in-web-page/m-p/626051#M10881</link>
      <description>&lt;P&gt;Thanks Rich,&lt;/P&gt;&lt;P&gt;I thought it could be the cluster.&amp;nbsp; If I update the alert from one computer and then look at it from another (on a different network) it is updated on both.&amp;nbsp; Viewing the alert using the API does not show the change though.&amp;nbsp; It's like the API is changing and reading a local version of the alert.&amp;nbsp; I have asked internally about this problem too.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jan 2023 19:10:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Why-is-API-change-not-updated-in-web-page/m-p/626051#M10881</guid>
      <dc:creator>MScottFoley</dc:creator>
      <dc:date>2023-01-05T19:10:04Z</dc:date>
    </item>
    <item>
      <title>Re: Why is API change not updated in web page?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Why-is-API-change-not-updated-in-web-page/m-p/626056#M10883</link>
      <description>&lt;P&gt;It may be the way I am accessing Splunk through the API.&amp;nbsp; I am using my user since the API token is for my user.&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;SPAN&gt;$"{splunkBaseUrl}/servicesNS/{user}/search/saved/searches/";&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;There is documentation that says to use&amp;nbsp;&lt;A href="https://community.splunk.com/" target="_blank"&gt;https://&amp;lt;host&amp;gt;:&amp;lt;mPort&amp;gt;/services/alerts/alert_actions&lt;/A&gt;.&amp;nbsp; I think I had tried that before and could not get it to work with the API token I was using at least.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will try using a different endpoint.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jan 2023 20:26:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Why-is-API-change-not-updated-in-web-page/m-p/626056#M10883</guid>
      <dc:creator>MScottFoley</dc:creator>
      <dc:date>2023-01-05T20:26:57Z</dc:date>
    </item>
  </channel>
</rss>

