<?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: restmap.conf - Nothing but example values work? in Security</title>
    <link>https://community.splunk.com/t5/Security/restmap-conf-Nothing-but-example-values-work/m-p/40196#M13787</link>
    <description>&lt;P&gt;Here's another bit of example.  I've been slowing piecing together how it all works.  Documented examples could be better for sure.&lt;BR /&gt;
&lt;A href="http://splunk-base.splunk.com/answers/24200/good-example-of-a-working-custom-rest-endpoint-but-not-an-admin-one"&gt;http://splunk-base.splunk.com/answers/24200/good-example-of-a-working-custom-rest-endpoint-but-not-an-admin-one&lt;/A&gt; (still waiting on someone to actually answer the question.)&lt;/P&gt;</description>
    <pubDate>Wed, 09 Jan 2013 19:07:55 GMT</pubDate>
    <dc:creator>the_wolverine</dc:creator>
    <dc:date>2013-01-09T19:07:55Z</dc:date>
    <item>
      <title>restmap.conf - Nothing but example values work?</title>
      <link>https://community.splunk.com/t5/Security/restmap-conf-Nothing-but-example-values-work/m-p/40194#M13785</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;[admin:myendpoint]
match=/mycustom
members=customendpoint

[admin_external:customendpoint]
handlertype = python
handlerfile = setup.py
handleractions = list, edit
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The above is some example detail for the restmap.conf for an App provided here;&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Developer/SetupExampleCustom"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Developer/SetupExampleCustom&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;I have spent the most mind numbing hour or two trying to get this to function with any values other than the ones above and it will not have it. If I leave them as they are then it functions perfectly.&lt;BR /&gt;
The documentation for this isn't great and wondered if anyone had any suggestions or tips?&lt;/P&gt;

&lt;P&gt;Following one point in the documentation I changed &lt;CODE&gt;myendpoint&lt;/CODE&gt; to anything unqiue, I then changed &lt;CODE&gt;mycustom&lt;/CODE&gt; to &lt;CODE&gt;mystartof&lt;/CODE&gt; and &lt;CODE&gt;customendpoint&lt;/CODE&gt; to &lt;CODE&gt;startofendpoint&lt;/CODE&gt; as it seemed to suggest that the match should be the start of the members value. This also didn't work. &lt;/P&gt;

&lt;P&gt;Am I missing something?&lt;/P&gt;</description>
      <pubDate>Fri, 23 Dec 2011 15:35:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/restmap-conf-Nothing-but-example-values-work/m-p/40194#M13785</guid>
      <dc:creator>Drainy</dc:creator>
      <dc:date>2011-12-23T15:35:22Z</dc:date>
    </item>
    <item>
      <title>Re: restmap.conf - Nothing but example values work?</title>
      <link>https://community.splunk.com/t5/Security/restmap-conf-Nothing-but-example-values-work/m-p/40195#M13786</link>
      <description>&lt;P&gt;shameless self bump!&lt;/P&gt;</description>
      <pubDate>Thu, 29 Dec 2011 13:09:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/restmap-conf-Nothing-but-example-values-work/m-p/40195#M13786</guid>
      <dc:creator>Drainy</dc:creator>
      <dc:date>2011-12-29T13:09:33Z</dc:date>
    </item>
    <item>
      <title>Re: restmap.conf - Nothing but example values work?</title>
      <link>https://community.splunk.com/t5/Security/restmap-conf-Nothing-but-example-values-work/m-p/40196#M13787</link>
      <description>&lt;P&gt;Here's another bit of example.  I've been slowing piecing together how it all works.  Documented examples could be better for sure.&lt;BR /&gt;
&lt;A href="http://splunk-base.splunk.com/answers/24200/good-example-of-a-working-custom-rest-endpoint-but-not-an-admin-one"&gt;http://splunk-base.splunk.com/answers/24200/good-example-of-a-working-custom-rest-endpoint-but-not-an-admin-one&lt;/A&gt; (still waiting on someone to actually answer the question.)&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jan 2013 19:07:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/restmap-conf-Nothing-but-example-values-work/m-p/40196#M13787</guid>
      <dc:creator>the_wolverine</dc:creator>
      <dc:date>2013-01-09T19:07:55Z</dc:date>
    </item>
    <item>
      <title>Re: restmap.conf - Nothing but example values work?</title>
      <link>https://community.splunk.com/t5/Security/restmap-conf-Nothing-but-example-values-work/m-p/40197#M13788</link>
      <description>&lt;P&gt;I think I know something that might be causing your headaches.  It's something I ran into years ago too with restmap.conf endpoints, and that was unbelievably frustrating and peculiar until I figured it out.  &lt;/P&gt;

&lt;P&gt;The python class names must be globally unique across all apps and endpoints.  If there are two endpoints that have the same python classname, only one of them will be loaded and the other one will be inexplicably doa.    Also if during extended troubleshooting sessions and headbanging exercises, you save versions like "myHandler_backup.py", or "myHandler_take3.py", don't.  Splunk will try and load those too, I think even if there's no restmap.conf entry associated with it, and when the classnames match another file's classnames, you guessed it, only one will work. &lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 19:16:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/restmap-conf-Nothing-but-example-values-work/m-p/40197#M13788</guid>
      <dc:creator>sideview</dc:creator>
      <dc:date>2020-09-28T19:16:44Z</dc:date>
    </item>
  </channel>
</rss>

