<?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 Splunk Stream /captureipaddresses endpoint returns 404, while /ping works – Setup cannot detect forwarder in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-Stream-captureipaddresses-endpoint-returns-404-while-ping/m-p/758847#M120295</link>
    <description>&lt;P class=""&gt;Environment:&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;Splunk Enterprise single instance on Windows&lt;/P&gt;&lt;P class=""&gt;Splunk App for Stream (v8.1.5) and Splunk Add-on for Stream Forwarders installed and enabled&lt;/P&gt;&lt;P class=""&gt;No distributed deployment, all components on same machine&lt;/P&gt;&lt;P class=""&gt;Symptoms:&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;Accessing&amp;nbsp;&lt;A href="http://localhost:8000/en-us/custom/splunk_app_stream/captureipaddresses/" target="_blank" rel="noopener"&gt;localhost:8000/en-us/custom/splunk_app_stream/captureipaddresses&lt;/A&gt;&amp;nbsp;returns a 404 error.&lt;/P&gt;&lt;P class=""&gt;However,&amp;nbsp;&lt;A href="http://localhost:8000/en-us/custom/splunk_app_stream/ping/" target="_blank" rel="noopener"&gt;localhost:8000/en-us/custom/splunk_app_stream/ping&amp;nbsp;&lt;/A&gt;returns a valid JSON response, confirming the app's REST API is partially functional.&lt;/P&gt;&lt;P class=""&gt;The Stream forwarder (streamfwd.exe) is running, but the Setup Stream page fails to detect the add-on status.&lt;/P&gt;&lt;P class=""&gt;Logs (streamfwd.log) show repeated attempts to contact the endpoint with 404 responses.&lt;/P&gt;&lt;P class=""&gt;What has been checked / tried:&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;App and add-on status:&amp;nbsp;Both are enabled in&amp;nbsp;Apps &amp;gt; Manage Apps.&lt;/P&gt;&lt;P class=""&gt;Duplicate app conflict:&amp;nbsp;Removed a backup folder&amp;nbsp;splunk_app_stream_backup&amp;nbsp;from&amp;nbsp;$SPLUNK_HOME/etc/apps/&amp;nbsp;to avoid duplicate app ID warnings.&lt;/P&gt;&lt;P class=""&gt;Configuration files verified:&lt;/P&gt;&lt;P class=""&gt;restmap.conf&amp;nbsp;(in&amp;nbsp;default) contains the correct stanza for&amp;nbsp;captureipaddresses:&lt;/P&gt;&lt;P class=""&gt;text&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;[script:captureipaddress]match=/splunk_app_stream/captureipaddresses/?handler=rest_captureipaddresses.CaptureIpAddressespython.version=python3...&lt;/P&gt;&lt;P class=""&gt;Python handler file&amp;nbsp;rest_captureipaddresses.py&amp;nbsp;exists in&amp;nbsp;bin/&amp;nbsp;and imports without errors (tested with Splunk's Python).&lt;/P&gt;&lt;P class=""&gt;The&amp;nbsp;web.conf&amp;nbsp;in the app's&amp;nbsp;local&amp;nbsp;folder was updated to expose script handlers:&lt;/P&gt;&lt;P class=""&gt;text&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;[expose:custom]methods = GET, POST, DELETE, PUThandler = scriptpattern = /custom/.*&lt;/P&gt;&lt;P class=""&gt;No local overrides for&amp;nbsp;restmap.conf&amp;nbsp;exist.&lt;/P&gt;&lt;P class=""&gt;HTTP method tested:&amp;nbsp;Both&amp;nbsp;GET&amp;nbsp;and&amp;nbsp;POST&amp;nbsp;requests to the endpoint return 404 (confirmed with&amp;nbsp;curl).&lt;/P&gt;&lt;P class=""&gt;Logs checked:&amp;nbsp;No errors related to&amp;nbsp;captureipaddresses&amp;nbsp;in&amp;nbsp;splunkd.log&amp;nbsp;or&amp;nbsp;python.log&amp;nbsp;when the endpoint is accessed.&lt;/P&gt;&lt;P class=""&gt;Permissions:&amp;nbsp;File permissions on the handler and app folders are correct (Splunk service account has access).&lt;/P&gt;&lt;P class=""&gt;KV Store:&amp;nbsp;The app uses KV store; collections appear to exist (no errors in logs about missing collections).&lt;/P&gt;&lt;P class=""&gt;What remains puzzling:&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;Since&amp;nbsp;/ping&amp;nbsp;works, the base routing is correct, but the specific handler for&amp;nbsp;captureipaddresses&amp;nbsp;is not being invoked.&lt;/P&gt;&lt;P class=""&gt;The handler code (seen in&amp;nbsp;rest_captureipaddresses.py) includes a&amp;nbsp;handle_GET&amp;nbsp;method, so it should respond to GET requests.&lt;/P&gt;&lt;P class=""&gt;No errors are logged when the endpoint is hit, just a 404 response.&lt;/P&gt;&lt;P class=""&gt;Request for help:&lt;/P&gt;&lt;P class=""&gt;Has anyone encountered a similar issue where a specific REST endpoint of the Stream app returns 404 while others work? Are there any additional configuration files or dependencies (like KV store initialization) that could cause this? Could there be a subtle difference in the URL pattern or a missing authentication requirement? Any guidance would be greatly appreciated!&lt;/P&gt;</description>
    <pubDate>Fri, 27 Feb 2026 01:24:23 GMT</pubDate>
    <dc:creator>snick</dc:creator>
    <dc:date>2026-02-27T01:24:23Z</dc:date>
    <item>
      <title>Splunk Stream /captureipaddresses endpoint returns 404, while /ping works – Setup cannot detect forwarder</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-Stream-captureipaddresses-endpoint-returns-404-while-ping/m-p/758847#M120295</link>
      <description>&lt;P class=""&gt;Environment:&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;Splunk Enterprise single instance on Windows&lt;/P&gt;&lt;P class=""&gt;Splunk App for Stream (v8.1.5) and Splunk Add-on for Stream Forwarders installed and enabled&lt;/P&gt;&lt;P class=""&gt;No distributed deployment, all components on same machine&lt;/P&gt;&lt;P class=""&gt;Symptoms:&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;Accessing&amp;nbsp;&lt;A href="http://localhost:8000/en-us/custom/splunk_app_stream/captureipaddresses/" target="_blank" rel="noopener"&gt;localhost:8000/en-us/custom/splunk_app_stream/captureipaddresses&lt;/A&gt;&amp;nbsp;returns a 404 error.&lt;/P&gt;&lt;P class=""&gt;However,&amp;nbsp;&lt;A href="http://localhost:8000/en-us/custom/splunk_app_stream/ping/" target="_blank" rel="noopener"&gt;localhost:8000/en-us/custom/splunk_app_stream/ping&amp;nbsp;&lt;/A&gt;returns a valid JSON response, confirming the app's REST API is partially functional.&lt;/P&gt;&lt;P class=""&gt;The Stream forwarder (streamfwd.exe) is running, but the Setup Stream page fails to detect the add-on status.&lt;/P&gt;&lt;P class=""&gt;Logs (streamfwd.log) show repeated attempts to contact the endpoint with 404 responses.&lt;/P&gt;&lt;P class=""&gt;What has been checked / tried:&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;App and add-on status:&amp;nbsp;Both are enabled in&amp;nbsp;Apps &amp;gt; Manage Apps.&lt;/P&gt;&lt;P class=""&gt;Duplicate app conflict:&amp;nbsp;Removed a backup folder&amp;nbsp;splunk_app_stream_backup&amp;nbsp;from&amp;nbsp;$SPLUNK_HOME/etc/apps/&amp;nbsp;to avoid duplicate app ID warnings.&lt;/P&gt;&lt;P class=""&gt;Configuration files verified:&lt;/P&gt;&lt;P class=""&gt;restmap.conf&amp;nbsp;(in&amp;nbsp;default) contains the correct stanza for&amp;nbsp;captureipaddresses:&lt;/P&gt;&lt;P class=""&gt;text&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;[script:captureipaddress]match=/splunk_app_stream/captureipaddresses/?handler=rest_captureipaddresses.CaptureIpAddressespython.version=python3...&lt;/P&gt;&lt;P class=""&gt;Python handler file&amp;nbsp;rest_captureipaddresses.py&amp;nbsp;exists in&amp;nbsp;bin/&amp;nbsp;and imports without errors (tested with Splunk's Python).&lt;/P&gt;&lt;P class=""&gt;The&amp;nbsp;web.conf&amp;nbsp;in the app's&amp;nbsp;local&amp;nbsp;folder was updated to expose script handlers:&lt;/P&gt;&lt;P class=""&gt;text&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;[expose:custom]methods = GET, POST, DELETE, PUThandler = scriptpattern = /custom/.*&lt;/P&gt;&lt;P class=""&gt;No local overrides for&amp;nbsp;restmap.conf&amp;nbsp;exist.&lt;/P&gt;&lt;P class=""&gt;HTTP method tested:&amp;nbsp;Both&amp;nbsp;GET&amp;nbsp;and&amp;nbsp;POST&amp;nbsp;requests to the endpoint return 404 (confirmed with&amp;nbsp;curl).&lt;/P&gt;&lt;P class=""&gt;Logs checked:&amp;nbsp;No errors related to&amp;nbsp;captureipaddresses&amp;nbsp;in&amp;nbsp;splunkd.log&amp;nbsp;or&amp;nbsp;python.log&amp;nbsp;when the endpoint is accessed.&lt;/P&gt;&lt;P class=""&gt;Permissions:&amp;nbsp;File permissions on the handler and app folders are correct (Splunk service account has access).&lt;/P&gt;&lt;P class=""&gt;KV Store:&amp;nbsp;The app uses KV store; collections appear to exist (no errors in logs about missing collections).&lt;/P&gt;&lt;P class=""&gt;What remains puzzling:&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;Since&amp;nbsp;/ping&amp;nbsp;works, the base routing is correct, but the specific handler for&amp;nbsp;captureipaddresses&amp;nbsp;is not being invoked.&lt;/P&gt;&lt;P class=""&gt;The handler code (seen in&amp;nbsp;rest_captureipaddresses.py) includes a&amp;nbsp;handle_GET&amp;nbsp;method, so it should respond to GET requests.&lt;/P&gt;&lt;P class=""&gt;No errors are logged when the endpoint is hit, just a 404 response.&lt;/P&gt;&lt;P class=""&gt;Request for help:&lt;/P&gt;&lt;P class=""&gt;Has anyone encountered a similar issue where a specific REST endpoint of the Stream app returns 404 while others work? Are there any additional configuration files or dependencies (like KV store initialization) that could cause this? Could there be a subtle difference in the URL pattern or a missing authentication requirement? Any guidance would be greatly appreciated!&lt;/P&gt;</description>
      <pubDate>Fri, 27 Feb 2026 01:24:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-Stream-captureipaddresses-endpoint-returns-404-while-ping/m-p/758847#M120295</guid>
      <dc:creator>snick</dc:creator>
      <dc:date>2026-02-27T01:24:23Z</dc:date>
    </item>
  </channel>
</rss>

