<?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 Is there a reference listing all the EAI paths for all resource types? in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/Is-there-a-reference-listing-all-the-EAI-paths-for-all-resource/m-p/75399#M1047</link>
    <description>&lt;P&gt;Reverse engineering this stuff from the logs and existing usage in SplunkWeb's python code,  I see a lot of things use the big flat 'admin/foo'  paths to get/set data in EAI.    However I also know vaguely from overhearing conversations at Splunk that this big flat list of 'admin/foo' endpoints is considered less than ideal and I thought I overheard that for each of them there is a more fundamental endpoint that we're all &lt;EM&gt;supposed&lt;/EM&gt; to use. &lt;/P&gt;

&lt;P&gt;And another data point is that I know that I can usually go to 
&lt;CODE&gt;&lt;A href="https://localhost:8089/servicesNS/admin/&amp;lt;app_name&amp;gt;/data" target="test_blank"&gt;https://localhost:8089/servicesNS/admin/&amp;lt;app_name&amp;gt;/data&lt;/A&gt;&lt;/CODE&gt; , click past the stern security warnings from firefox, and there I should be able to drive to the stuff I want. &lt;/P&gt;

&lt;P&gt;Then once I've found it, its easy to determine the proper EAI path by just looking at the browser URL. &lt;/P&gt;

&lt;P&gt;The problem is that I cant find the 'proper' path for macros,  and i cant find any path at all for extractions that are defined in props.conf  &lt;/P&gt;

&lt;P&gt;eg:&lt;/P&gt;

&lt;P&gt;1) if I want to get a macro using the splunk.entity class in python, the only path I know is 'admin/macros', as in &lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;splunk.entity.getEntity("admin/macros", "my_macro_name", namespace="my_app_name", owner="splunk.auth.getCurrentUser()['name'])&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;2) And I have an extracted field that is defined in my app and I cannot find a way to get this at all from EAI.  (Maybe it would be there if I had defined it over in transforms and merely referred to it from props?  ) &lt;/P&gt;

&lt;P&gt;Thanks in advance for any and all help. &lt;/P&gt;</description>
    <pubDate>Fri, 22 Oct 2010 05:35:45 GMT</pubDate>
    <dc:creator>sideview</dc:creator>
    <dc:date>2010-10-22T05:35:45Z</dc:date>
    <item>
      <title>Is there a reference listing all the EAI paths for all resource types?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Is-there-a-reference-listing-all-the-EAI-paths-for-all-resource/m-p/75399#M1047</link>
      <description>&lt;P&gt;Reverse engineering this stuff from the logs and existing usage in SplunkWeb's python code,  I see a lot of things use the big flat 'admin/foo'  paths to get/set data in EAI.    However I also know vaguely from overhearing conversations at Splunk that this big flat list of 'admin/foo' endpoints is considered less than ideal and I thought I overheard that for each of them there is a more fundamental endpoint that we're all &lt;EM&gt;supposed&lt;/EM&gt; to use. &lt;/P&gt;

&lt;P&gt;And another data point is that I know that I can usually go to 
&lt;CODE&gt;&lt;A href="https://localhost:8089/servicesNS/admin/&amp;lt;app_name&amp;gt;/data" target="test_blank"&gt;https://localhost:8089/servicesNS/admin/&amp;lt;app_name&amp;gt;/data&lt;/A&gt;&lt;/CODE&gt; , click past the stern security warnings from firefox, and there I should be able to drive to the stuff I want. &lt;/P&gt;

&lt;P&gt;Then once I've found it, its easy to determine the proper EAI path by just looking at the browser URL. &lt;/P&gt;

&lt;P&gt;The problem is that I cant find the 'proper' path for macros,  and i cant find any path at all for extractions that are defined in props.conf  &lt;/P&gt;

&lt;P&gt;eg:&lt;/P&gt;

&lt;P&gt;1) if I want to get a macro using the splunk.entity class in python, the only path I know is 'admin/macros', as in &lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;splunk.entity.getEntity("admin/macros", "my_macro_name", namespace="my_app_name", owner="splunk.auth.getCurrentUser()['name'])&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;2) And I have an extracted field that is defined in my app and I cannot find a way to get this at all from EAI.  (Maybe it would be there if I had defined it over in transforms and merely referred to it from props?  ) &lt;/P&gt;

&lt;P&gt;Thanks in advance for any and all help. &lt;/P&gt;</description>
      <pubDate>Fri, 22 Oct 2010 05:35:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Is-there-a-reference-listing-all-the-EAI-paths-for-all-resource/m-p/75399#M1047</guid>
      <dc:creator>sideview</dc:creator>
      <dc:date>2010-10-22T05:35:45Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a reference listing all the EAI paths for all resource types?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Is-there-a-reference-listing-all-the-EAI-paths-for-all-resource/m-p/75400#M1048</link>
      <description>&lt;OL&gt;
&lt;LI&gt;I'd suggest going to the manager/admin screen in the GUI (or doing something using the CLI if you prefer that), then looking at what pages are hit in the splunkd_access.log. I found: &lt;A href="https://localhost:8089/servicesNS/-/search/admin/macros" rel="nofollow"&gt;https://localhost:8089/servicesNS/-/search/admin/macros&lt;/A&gt;, which generalizes to &lt;A href="https://localhost:8089/servicesNS/-/-/admin/macros" rel="nofollow"&gt;https://localhost:8089/servicesNS/-/-/admin/macros&lt;/A&gt;, which I guess is what you have anyway, as it just incorporates the owner and the app namespace in the URL.&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://localhost:8089/services/data/props/extractions" rel="nofollow"&gt;https://localhost:8089/services/data/props/extractions&lt;/A&gt;, or the namespaced version at &lt;A href="https://localhost:8089/servicesNS/-/-/data/props/extractions" rel="nofollow"&gt;https://localhost:8089/servicesNS/-/-/data/props/extractions&lt;/A&gt;&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Fri, 22 Oct 2010 06:50:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Is-there-a-reference-listing-all-the-EAI-paths-for-all-resource/m-p/75400#M1048</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2010-10-22T06:50:24Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a reference listing all the EAI paths for all resource types?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Is-there-a-reference-listing-all-the-EAI-paths-for-all-resource/m-p/75401#M1049</link>
      <description>&lt;P&gt;Yea, for macros i can only find the admin/macros path, and i always thought those admin ones were hacks and not to be used.  And for props I cant find anything.  URLs in splunkd_access for the macros list page in manager is /servicesNS/admin/&lt;APPNAME&gt;/admin/data/props/extractions/&lt;APPNAME&gt;,  but the entity class only gives back 404's and 500's for any combination of those segments...&lt;/APPNAME&gt;&lt;/APPNAME&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Oct 2010 07:16:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Is-there-a-reference-listing-all-the-EAI-paths-for-all-resource/m-p/75401#M1049</guid>
      <dc:creator>sideview</dc:creator>
      <dc:date>2010-10-22T07:16:21Z</dc:date>
    </item>
  </channel>
</rss>

