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!

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 ...