Splunk Search

Could you help me create a search query which fetches Saved Searches with enabled Email Ids?

anandhalagarasa
Path Finder

We have configured around 700+ Searches and Reports (Saved searches) in our Search Head server and, for most of those, we have enabled email. We want to replace a few of the email ids which no longer exist and also we need to add additional email DLs into it.

But we aren't able to go and check each and every saved search, whether the existing email id is present or not, and its a tedious process. So, is it possible to pull a report, with the help of Search query, stating something like: if we search with the email id or DL. and it needs to show the Saved Search name, and all configured with the existing email. Then, I could go ahead and replace them quickly, which would be really helpful.

So, is it possible to fetch this information?

If yes, kindly help on the request.

0 Karma

mstjohn_splunk
Splunk Employee
Splunk Employee

Hi @anandhalagarasan,

Thanks for your post! Did you get a chance to try out @johnnyfrx 's answer? If it worked, would you go ahead and approve his answer. Also, throw him an upvote too.

If it didn't, would you mind updating us on your issue?

Happy Splunking!

0 Karma

johnnyfrx
Path Finder

I had a similar requirement awhile back and this search helped me out. Give it a try:

| rest /servicesNS/-/-/saved/searches search="action.email=1" | table title eai:acl.app eai:acl.owner disabled is_scheduled cron_schedule action.email*

| rest /servicesNS/-/-/saved/searches search="action.email=1" | table title action.email.to
0 Karma
Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...