<?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 Example setup.xml failure in Deployment Architecture</title>
    <link>https://community.splunk.com/t5/Deployment-Architecture/Example-setup-xml-failure/m-p/55212#M1800</link>
    <description>&lt;P&gt;I just tried to test the example provided at&lt;BR /&gt;
&lt;A href="http://www.splunk.com/base/Documentation/4.2.1/Developer/SetupExample1"&gt;http://www.splunk.com/base/Documentation/4.2.1/Developer/SetupExample1&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;I created the myapp/default/savedsearches.conf with the contents&lt;BR /&gt;
then added the input to the myapp/defaut/inputs.conf. Finally created the myapp/default/setup.xml EXACTLY as mentioned.&lt;/P&gt;

&lt;P&gt;All I got was this when prompted to view setup&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;404 Not Found
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Splunk cannot find "apps/local/myapp/setup".&lt;/P&gt;

&lt;P&gt;This page was linked to from &lt;A href="http://192.168.0.200:8000/en-US/app/myapp"&gt;http://192.168.0.200:8000/en-US/app/myapp&lt;/A&gt;.&lt;/P&gt;

&lt;P&gt;You are using 192.168.0.200:8000, which is connected to splunkd @98164 at &lt;A href="https://127.0.0.1:8089"&gt;https://127.0.0.1:8089&lt;/A&gt; on Tue Aug 9 16:36:04 2011.&lt;/P&gt;

&lt;P&gt;I find it a bit odd that such a simple example provided on the splunk website would fail like this?&lt;/P&gt;

&lt;P&gt;I am running Splunk on windows if that makes any difference.&lt;/P&gt;</description>
    <pubDate>Tue, 09 Aug 2011 06:23:53 GMT</pubDate>
    <dc:creator>phoenixdigital</dc:creator>
    <dc:date>2011-08-09T06:23:53Z</dc:date>
    <item>
      <title>Example setup.xml failure</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Example-setup-xml-failure/m-p/55212#M1800</link>
      <description>&lt;P&gt;I just tried to test the example provided at&lt;BR /&gt;
&lt;A href="http://www.splunk.com/base/Documentation/4.2.1/Developer/SetupExample1"&gt;http://www.splunk.com/base/Documentation/4.2.1/Developer/SetupExample1&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;I created the myapp/default/savedsearches.conf with the contents&lt;BR /&gt;
then added the input to the myapp/defaut/inputs.conf. Finally created the myapp/default/setup.xml EXACTLY as mentioned.&lt;/P&gt;

&lt;P&gt;All I got was this when prompted to view setup&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;404 Not Found
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Splunk cannot find "apps/local/myapp/setup".&lt;/P&gt;

&lt;P&gt;This page was linked to from &lt;A href="http://192.168.0.200:8000/en-US/app/myapp"&gt;http://192.168.0.200:8000/en-US/app/myapp&lt;/A&gt;.&lt;/P&gt;

&lt;P&gt;You are using 192.168.0.200:8000, which is connected to splunkd @98164 at &lt;A href="https://127.0.0.1:8089"&gt;https://127.0.0.1:8089&lt;/A&gt; on Tue Aug 9 16:36:04 2011.&lt;/P&gt;

&lt;P&gt;I find it a bit odd that such a simple example provided on the splunk website would fail like this?&lt;/P&gt;

&lt;P&gt;I am running Splunk on windows if that makes any difference.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Aug 2011 06:23:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Example-setup-xml-failure/m-p/55212#M1800</guid>
      <dc:creator>phoenixdigital</dc:creator>
      <dc:date>2011-08-09T06:23:53Z</dc:date>
    </item>
    <item>
      <title>Re: Example setup.xml failure</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Example-setup-xml-failure/m-p/55213#M1801</link>
      <description>&lt;P&gt;I found the issue by looking in splunkd.log&lt;/P&gt;

&lt;P&gt;It was this line from the setup.xml&lt;BR /&gt;
&lt;BLOCK title="Enable the schedule for a search" endpoint="saved/searches" entity="WebSearch"&gt;&lt;/BLOCK&gt;&lt;/P&gt;

&lt;P&gt;'WebSearch' should be 'Web Search'&lt;/P&gt;

&lt;P&gt;I highly recommend someone update the public website. While its a simple mistake it is incredibly frustrating trying to use documented demos which dont work. Then trying to debug something you are learning at the same time.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Aug 2011 07:13:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Example-setup-xml-failure/m-p/55213#M1801</guid>
      <dc:creator>phoenixdigital</dc:creator>
      <dc:date>2011-08-09T07:13:15Z</dc:date>
    </item>
    <item>
      <title>Re: Example setup.xml failure</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Example-setup-xml-failure/m-p/55214#M1802</link>
      <description>&lt;P&gt;Sorry, fixed now - thanks for bringing it to our attention.  I understand your frustration.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Aug 2011 17:52:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Example-setup-xml-failure/m-p/55214#M1802</guid>
      <dc:creator>araitz</dc:creator>
      <dc:date>2011-08-09T17:52:46Z</dc:date>
    </item>
    <item>
      <title>Re: Example setup.xml failure</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Example-setup-xml-failure/m-p/55215#M1803</link>
      <description>&lt;P&gt;Docs and error system could also be more clear that the setup.xml blocks must be wrapped in "&lt;SETUP&gt; ... &lt;/SETUP&gt;"&lt;BR /&gt;
they don't say that or show that in their examples.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2013 01:37:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Example-setup-xml-failure/m-p/55215#M1803</guid>
      <dc:creator>carasso</dc:creator>
      <dc:date>2013-08-08T01:37:41Z</dc:date>
    </item>
    <item>
      <title>Re: Example setup.xml failure</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Example-setup-xml-failure/m-p/55216#M1804</link>
      <description>&lt;P&gt;I'm facing similar kind of issue and not able to find any solution.I have followed all the given instructions and prepared the following conf files.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;setup.xml&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;setup&amp;gt;
    &amp;lt;block title="User Dashboard Configuration" endpoint="userinput/user_input" entity="dashboard_conf"&amp;gt;
        &amp;lt;input field="dashboard_url"&amp;gt;
            &amp;lt;label&amp;gt;Dashboard URL&amp;lt;/label&amp;gt;
            &amp;lt;type&amp;gt;text&amp;lt;/type&amp;gt;
        &amp;lt;/input&amp;gt;
        &amp;lt;input field="auth_token"&amp;gt;
            &amp;lt;label&amp;gt;Authentication Token&amp;lt;/label&amp;gt;
            &amp;lt;type&amp;gt;text&amp;lt;/type&amp;gt;
        &amp;lt;/input&amp;gt;
    &amp;lt;/block&amp;gt;
    &amp;lt;block title="Syslog Configuration" endpoint="userinput/user_input" entity="syslog_conf"&amp;gt;
        &amp;lt;input field="slog_port"&amp;gt;
            &amp;lt;label&amp;gt;Syslog Port&amp;lt;/label&amp;gt;
            &amp;lt;type&amp;gt;text&amp;lt;/type&amp;gt;
        &amp;lt;/input&amp;gt;
    &amp;lt;/block&amp;gt;
&amp;lt;/setup&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;restmap.conf&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[admin:user_input]
match=/userinput
members=user_input

[admin_external:user_input]
handlertype = python
handlerfile = user_input_setup.py
handleractions = list, edit
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;user_input.conf&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[dashboard_conf]
dashboard_url = https://
auth_token = 

[syslog_conf]
slog_port = 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;While I try to open the setup page from Manage Apps -&amp;gt; Set Up, it gives me 404 page not found error (web_service.log). I dont know what I'm missing here. It is not even opening setup page dialog box.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;INFO [58eaa49e4d11014cc90] error:138 - Masking the original 404 message: 'Nothing matches the given URI' with 'Page not found!' for security reasons
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 09 Apr 2017 21:39:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Example-setup-xml-failure/m-p/55216#M1804</guid>
      <dc:creator>gaurav_maniar</dc:creator>
      <dc:date>2017-04-09T21:39:41Z</dc:date>
    </item>
    <item>
      <title>Re: Example setup.xml failure</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Example-setup-xml-failure/m-p/55217#M1805</link>
      <description>&lt;P&gt;setup.xml pages are incredibly finicky and the _internal logs are almost barren with information about why they fail.&lt;/P&gt;

&lt;P&gt;My only recommendation would be to start with a known working example then gradually change it piece by piece testing with every change until it is configured how you want it.&lt;/P&gt;

&lt;P&gt;From your example verify that the endpoint exists on your Splunk instance. That is the only suspect thing I can see in your example above.&lt;/P&gt;

&lt;P&gt;&lt;A href="https://yourSplunkServerIP:8089/services/userinput/user_input"&gt;https://yourSplunkServerIP:8089/services/userinput/user_input&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Normally they would be located somewhere like here&lt;BR /&gt;
&lt;A href="https://yourSplunkServerIP:8089/services/admin/myCustomApiSettingsEndpoint"&gt;https://yourSplunkServerIP:8089/services/admin/myCustomApiSettingsEndpoint&lt;/A&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;setup&amp;gt;
  &amp;lt;block title="Proxy Server Details" endpoint="admin/myCustomApiSettingsEndpoint" entity="web_proxy"&amp;gt;
    &amp;lt;input field="proxy_address"&amp;gt;
      &amp;lt;label&amp;gt;Proxy Address&amp;lt;/label&amp;gt;
      &amp;lt;type&amp;gt;text&amp;lt;/type&amp;gt;
    &amp;lt;/input&amp;gt;
    &amp;lt;input field="proxy_username"&amp;gt;
      &amp;lt;label&amp;gt;Proxy Username&amp;lt;/label&amp;gt;
      &amp;lt;type&amp;gt;text&amp;lt;/type&amp;gt;
    &amp;lt;/input&amp;gt;
    &amp;lt;input field="proxy_password"&amp;gt;
      &amp;lt;label&amp;gt;Proxy password&amp;lt;/label&amp;gt;
      &amp;lt;type&amp;gt;text&amp;lt;/type&amp;gt;
    &amp;lt;/input&amp;gt;
    &amp;lt;text&amp;gt;This password will be encrypted in Splunk's password store. If left blank the password will remain unchanged.&amp;lt;/text&amp;gt;
  &amp;lt;/block&amp;gt;

  &amp;lt;block title="Warning"&amp;gt;
    &amp;lt;text&amp;gt;If you change the username you will need to reenter the password as it is stored internally against the username.&amp;lt;/text&amp;gt;
    &amp;lt;text&amp;gt;Please be patient and wait for this form to complete before navigating away from this page.&amp;lt;/text&amp;gt;
  &amp;lt;/block&amp;gt;
&amp;lt;/setup&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 09 Apr 2017 22:45:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Example-setup-xml-failure/m-p/55217#M1805</guid>
      <dc:creator>phoenixdigital</dc:creator>
      <dc:date>2017-04-09T22:45:51Z</dc:date>
    </item>
    <item>
      <title>Re: Example setup.xml failure</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Example-setup-xml-failure/m-p/55218#M1806</link>
      <description>&lt;P&gt;I checked some applications from Splunk base, and having same configuration and still works. Splunk base apps don't have any admin endpoint.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Apr 2017 10:39:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Example-setup-xml-failure/m-p/55218#M1806</guid>
      <dc:creator>gaurav_maniar</dc:creator>
      <dc:date>2017-04-10T10:39:42Z</dc:date>
    </item>
    <item>
      <title>Re: Example setup.xml failure</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Example-setup-xml-failure/m-p/55219#M1807</link>
      <description>&lt;P&gt;Fair enough. Which apps so I can have a look too?&lt;/P&gt;

&lt;P&gt;Like I said nothing stands out as wrong with your config. Without more details from Splunk logs the only logical way to resolve is to start with a working demo config and change one thing at a time testing each change until you get to where you want.&lt;/P&gt;

&lt;P&gt;It shouldn't take more than an hour to do that so it is worth a try.&lt;/P&gt;

&lt;P&gt;At one point you will find the bit that breaks. Then please post here so we can all learn from it.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Apr 2017 05:02:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Example-setup-xml-failure/m-p/55219#M1807</guid>
      <dc:creator>phoenixdigital</dc:creator>
      <dc:date>2017-04-11T05:02:55Z</dc:date>
    </item>
    <item>
      <title>Re: Example setup.xml failure</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Example-setup-xml-failure/m-p/55220#M1808</link>
      <description>&lt;P&gt;symantec_atp_app and Splunk_TA_Okta&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 13:36:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Example-setup-xml-failure/m-p/55220#M1808</guid>
      <dc:creator>gaurav_maniar</dc:creator>
      <dc:date>2020-09-29T13:36:35Z</dc:date>
    </item>
  </channel>
</rss>

