<?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: How to  specify an owner for pre-canned saved searches for app packaging? in Security</title>
    <link>https://community.splunk.com/t5/Security/How-to-specify-an-owner-for-pre-canned-saved-searches-for-app/m-p/11568#M131</link>
    <description>&lt;P&gt;Thankyou, this is really helpful&lt;/P&gt;</description>
    <pubDate>Wed, 28 Apr 2010 22:36:52 GMT</pubDate>
    <dc:creator>Hazel</dc:creator>
    <dc:date>2010-04-28T22:36:52Z</dc:date>
    <item>
      <title>How to  specify an owner for pre-canned saved searches for app packaging?</title>
      <link>https://community.splunk.com/t5/Security/How-to-specify-an-owner-for-pre-canned-saved-searches-for-app/m-p/11565#M128</link>
      <description>&lt;P&gt;I've written a bunch of scheduled searches for a Splunk app.  The searches appear as having no owner.  How can I specify an owner for these scheduled searches?  &lt;/P&gt;

&lt;P&gt;In order to be able to control the quota for these searches, I need to assign an owner.  Otherwise, the quota is that assigned to splunk-system-user.&lt;/P&gt;

&lt;P&gt;I need to package the app so the configuration must exist within the app context.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Apr 2010 23:22:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/How-to-specify-an-owner-for-pre-canned-saved-searches-for-app/m-p/11565#M128</guid>
      <dc:creator>the_wolverine</dc:creator>
      <dc:date>2010-04-15T23:22:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to  specify an owner for pre-canned saved searches for app packaging?</title>
      <link>https://community.splunk.com/t5/Security/How-to-specify-an-owner-for-pre-canned-saved-searches-for-app/m-p/11566#M129</link>
      <description>&lt;P&gt;When a user creates and schedules a saved search, that search gets created in some app context and ownership of this search is specified in the user's Splunk directory ($SPLUNK/etc/users///local/savedsearches.conf).&lt;/P&gt;

&lt;P&gt;In the case stated here, you want to package a saved search with your app that already has an owner specified.  If you just create a saved search and schedule it in the app, it'll run without an owner.  Without an owner, the scheduled search is run via the splunk-system-user account which has its own quota limits.&lt;/P&gt;

&lt;P&gt;In order to specify an owner, do the following:&lt;/P&gt;

&lt;P&gt;Create the saved search in someapp/default/savedsearches.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[Errors in the last 24 hours]
search = error OR failed OR severe "more search terms"
dispatch.earliest_time = -1d
...
etc.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Then you'll specify the owner per saved search in the someapp/metadata/default.meta file:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;### SAVED SEARCHES

[savedsearches/Errors%20in%20the%20last%2024%20hours]
access = read : [ * ], write : [ admin ]
owner = admin
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 16 Apr 2010 00:30:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/How-to-specify-an-owner-for-pre-canned-saved-searches-for-app/m-p/11566#M129</guid>
      <dc:creator>the_wolverine</dc:creator>
      <dc:date>2010-04-16T00:30:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to  specify an owner for pre-canned saved searches for app packaging?</title>
      <link>https://community.splunk.com/t5/Security/How-to-specify-an-owner-for-pre-canned-saved-searches-for-app/m-p/11567#M130</link>
      <description>&lt;P&gt;try setting a local.meta in the /app/splunk/etc/apps/search/metadata folder&lt;/P&gt;

&lt;P&gt;&lt;A href="http://www.splunk.com/base/Documentation/4.1.1/Developer/Step5SetPermissions" rel="nofollow"&gt;http://www.splunk.com/base/Documentation/4.1.1/Developer/Step5SetPermissions&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;and&lt;/P&gt;

&lt;P&gt;&lt;A href="http://www.splunk.com/base/Documentation/4.1.1/Admin/Defaultmetaconf" rel="nofollow"&gt;http://www.splunk.com/base/Documentation/4.1.1/Admin/Defaultmetaconf&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;will help.&lt;/P&gt;

&lt;P&gt;I suspect the configuration would look like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[&amp;lt;object_type&amp;gt;/&amp;lt;object_name&amp;gt;]
access = read : [ &amp;lt;comma-separated list of roles&amp;gt;], write : [ comma-separated list of roles&amp;gt;]
owner = &amp;lt;User_Name_in_Question&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;for instance:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[savedsearches/Splunk%20errors%20last%2024%20hours]
access = read : [ admin ], write : [ admin ]
owner = jdoe
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 28 Apr 2010 22:13:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/How-to-specify-an-owner-for-pre-canned-saved-searches-for-app/m-p/11567#M130</guid>
      <dc:creator>muebel</dc:creator>
      <dc:date>2010-04-28T22:13:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to  specify an owner for pre-canned saved searches for app packaging?</title>
      <link>https://community.splunk.com/t5/Security/How-to-specify-an-owner-for-pre-canned-saved-searches-for-app/m-p/11568#M131</link>
      <description>&lt;P&gt;Thankyou, this is really helpful&lt;/P&gt;</description>
      <pubDate>Wed, 28 Apr 2010 22:36:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/How-to-specify-an-owner-for-pre-canned-saved-searches-for-app/m-p/11568#M131</guid>
      <dc:creator>Hazel</dc:creator>
      <dc:date>2010-04-28T22:36:52Z</dc:date>
    </item>
  </channel>
</rss>

