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!

Federated Search for Amazon S3 | Key Use Cases to Streamline Compliance Workflows

Modern business operations are supported by data compliance. As regulations evolve, organizations must ...

New Dates, New City: Save the Date for .conf25!

Wake up, babe! New .conf25 dates AND location just dropped!! That's right, this year, .conf25 is taking place ...

Introduction to Splunk Observability Cloud - Building a Resilient Hybrid Cloud

Introduction to Splunk Observability Cloud - Building a Resilient Hybrid Cloud  In today’s fast-paced digital ...