<?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 Force namespace for modular input in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Force-namespace-for-modular-input/m-p/100326#M20995</link>
    <description>&lt;P&gt;can some one please explain how to force the namepsace in a modular input setup screen? ie. when saving a modular input intended to be ran from app 'foo', the inputs.conf is actually saved in foo/local/ instead of the current namespace.&lt;/P&gt;

&lt;P&gt;thanks&lt;/P&gt;</description>
    <pubDate>Thu, 18 Apr 2013 20:14:21 GMT</pubDate>
    <dc:creator>jguarini</dc:creator>
    <dc:date>2013-04-18T20:14:21Z</dc:date>
    <item>
      <title>Force namespace for modular input</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Force-namespace-for-modular-input/m-p/100326#M20995</link>
      <description>&lt;P&gt;can some one please explain how to force the namepsace in a modular input setup screen? ie. when saving a modular input intended to be ran from app 'foo', the inputs.conf is actually saved in foo/local/ instead of the current namespace.&lt;/P&gt;

&lt;P&gt;thanks&lt;/P&gt;</description>
      <pubDate>Thu, 18 Apr 2013 20:14:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Force-namespace-for-modular-input/m-p/100326#M20995</guid>
      <dc:creator>jguarini</dc:creator>
      <dc:date>2013-04-18T20:14:21Z</dc:date>
    </item>
    <item>
      <title>Re: Force namespace for modular input</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Force-namespace-for-modular-input/m-p/100327#M20996</link>
      <description>&lt;P&gt;You can influence using the manager. The manager retains the context of the app that you clicked the manager link from. In other words, if you open the manager from the search app then the config will be made in the search app. You can observe this in the URL; note that the URL below is the for the search app (see the third part of the path):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;/en-US/manager/search/data/inputs/some_modular_input
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The link below make the modular input in the app "some_other_app":&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;/en-US/manager/some_other_app/data/inputs/some_modular_input
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I know that isn't what you probably looking for. But I confirmed that this does work.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 13:45:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Force-namespace-for-modular-input/m-p/100327#M20996</guid>
      <dc:creator>LukeMurphey</dc:creator>
      <dc:date>2020-09-28T13:45:45Z</dc:date>
    </item>
    <item>
      <title>Re: Force namespace for modular input</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Force-namespace-for-modular-input/m-p/100328#M20997</link>
      <description>&lt;P&gt;thanks for the response&lt;/P&gt;

&lt;P&gt;ok, looks like I need to expand on my original question to avoid the obvious.&lt;/P&gt;

&lt;P&gt;I have a custom setup page that is defined in an manager.xml file, which overrides the scheme defined in the modular input script. I use an admin_external handler to populate various settings/options on the setup page. &lt;/P&gt;

&lt;P&gt;how can I programmatically override the namespace such that when the input is saved it isn't written to the current namespace as defined by the URI in the address bar of the web browser?&lt;/P&gt;

&lt;P&gt;thanks&lt;/P&gt;</description>
      <pubDate>Fri, 19 Apr 2013 15:24:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Force-namespace-for-modular-input/m-p/100328#M20997</guid>
      <dc:creator>jguarini</dc:creator>
      <dc:date>2013-04-19T15:24:37Z</dc:date>
    </item>
    <item>
      <title>Re: Force namespace for modular input</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Force-namespace-for-modular-input/m-p/100329#M20998</link>
      <description>&lt;P&gt;so here is a method that I found that changes the namespace to whatever app you want when configuring a new modular input. This applies to custom xml one might use to create a custom modular input page.&lt;/P&gt;

&lt;P&gt;place the following code within the main &amp;lt;elements&amp;gt; tag and change YOURAPPNAME to the app that the input should belong to&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;
&amp;lt;element name="hideme" type="hidden"&amp;gt;
    &amp;lt;view name="create"/&amp;gt;
    &amp;lt;view name="edit"/&amp;gt;
&amp;lt;/element&amp;gt;
&amp;lt;element name="__ns" type="select" label="Destination app"&amp;gt;
    &amp;lt;view name="create"/&amp;gt;
    &amp;lt;key name="hideUnlessFieldSet"&amp;gt;hideme&amp;lt;/key&amp;gt;
    &amp;lt;options&amp;gt;
        &amp;lt;opt value="YOURAPPNAME" label="YOURAPPNAME"/&amp;gt;
    &amp;lt;/options&amp;gt;
&amp;lt;/element&amp;gt;

&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 02 May 2013 18:40:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Force-namespace-for-modular-input/m-p/100329#M20998</guid>
      <dc:creator>jguarini</dc:creator>
      <dc:date>2013-05-02T18:40:11Z</dc:date>
    </item>
  </channel>
</rss>

