Splunk Search

How to write a search that shows all saved searches, reports & lookup tables that are shared globally?

HeinzWaescher
Motivator

Hi,

Is it possible to write a search that shows all saved searches, reports & lookup tables that are shared globally?

Thanks in advance

Tags (1)
0 Karma
1 Solution

dineshraj9
Builder

Run the below 2 searches -

1) Searches & Reports - | rest /servicesNS/-/-/saved/searches | rename "eai:acl.owner" as owner,"eai:acl.sharing" as sharing,"eai:acl.app" as app | table title owner app sharing | where sharing="global"

2) Lookup table files - | rest /servicesNS/-/-/data/lookup-table-files | rename "eai:acl.owner" as owner,"eai:acl.sharing" as sharing,"eai:acl.app" as app | table title owner app sharing | where sharing="global"

View solution in original post

dineshraj9
Builder

Run the below 2 searches -

1) Searches & Reports - | rest /servicesNS/-/-/saved/searches | rename "eai:acl.owner" as owner,"eai:acl.sharing" as sharing,"eai:acl.app" as app | table title owner app sharing | where sharing="global"

2) Lookup table files - | rest /servicesNS/-/-/data/lookup-table-files | rename "eai:acl.owner" as owner,"eai:acl.sharing" as sharing,"eai:acl.app" as app | table title owner app sharing | where sharing="global"

HeinzWaescher
Motivator

Awesome thanks, it there something similar for dashboards as well?

0 Karma

dineshraj9
Builder

Yes, the rest endpoint will let you access all configuration -

Views - | rest /servicesNS/-/-/data/ui/views/ | rename "eai:acl.owner" as owner,"eai:acl.sharing" as sharing,"eai:acl.app" as app | table title owner app sharing | where sharing="global"

Get Updates on the Splunk Community!

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...

Let’s Get You Certified – Vegas-Style at .conf24

Are you ready to level up your Splunk game? Then, let’s get you certified live at .conf24 – our annual user ...