Security

Export Views To Only One Specific App

David
Splunk Employee
Splunk Employee

I wan't to find the right way to share views between different apps, with granularity as to the app.

In my Splunk instance, I have a number of different Apps:

  • ITSystem1
  • ITSystem2
  • ITDashboards
  • InternalApp1

I would like MyCompany's nav to be able to include the contents of ITSystem1 and ITSystem2 (e.g., having a main app with different subapps). I've got this working by export = systeming the views in ITSystem1 and ITSystem2. This was slightly ugly when I tried to look at things in manager, but still reasonable.

Now I'm adding InternalApp1, which is a sales tool, and I would like to have things like the default Saved Searches nav list working. But because I have to export so many things for my ITSystem apps to system, the nav is filled with tons of content that shouldn't be listed in InternalApp1.

What's the best way to do this?

1 Solution

David
Splunk Employee
Splunk Employee

This doesn't appear to be possible at this juncture, but has been filed as an enhancement request. Rationale provided for the change:

As it currently stands, this is messy and a disincentive to publishing Apps to Splunkbase. It's a hassle to maintain two copies for an app -- one for Splunkbase and one for internal consumption, so exporting views is valuable. But filling the nav on user-facing apps with lots of totally unrelated objects makes it difficult to use, and makes users less likely to actually use Splunk for anything but pre-canned reports.

View solution in original post

0 Karma

effem
Communicator

Still not done yet?

0 Karma

Starlette
Contributor

I got this question a lot as well, would be nice to see it filled!

0 Karma

David
Splunk Employee
Splunk Employee

This doesn't appear to be possible at this juncture, but has been filed as an enhancement request. Rationale provided for the change:

As it currently stands, this is messy and a disincentive to publishing Apps to Splunkbase. It's a hassle to maintain two copies for an app -- one for Splunkbase and one for internal consumption, so exporting views is valuable. But filling the nav on user-facing apps with lots of totally unrelated objects makes it difficult to use, and makes users less likely to actually use Splunk for anything but pre-canned reports.

0 Karma

hazekamp
Builder

David,

As of 4.2.0, you only have the option of exporting content within the app it's contained, or system wide. Per default.meta.spec:

# Set access controls on a specific view in this app.
[views/index_status]
access = read : [ admin ], write : [ admin ]
* Allow only admin users to read or modify this view.

# Make this view available in all apps.
export = system
* To make this view available only in this app, set 'export = none' instead.
owner = admin
* Set admin as the owner of this view.

See also: http://www.splunk.com/base/Documentation/4.2/admin/Defaultmetaconf

0 Karma

David
Splunk Employee
Splunk Employee

Okay. I've filed this as an enhancement request.

0 Karma

hazekamp
Builder

That's correct. If you export something as 'none', it is only available from within the contained app. Exporting as 'system' will make it available to all visible apps.

0 Karma

David
Splunk Employee
Splunk Employee

So that means I can't export something to only one particular app, correct? Or alternatively, I can't prevent another app from inheriting views?

0 Karma
Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...