Security

How can I export alerts with names matching a specific phrase ( say "oscar")?

ytaointra
New Member

How can I export alerts with names matching a specific phrase ( say "oscar"). And the report needs to include all the details of each alert settings, include search, schedule, etc.

Thanks

Tags (1)
0 Karma
1 Solution

skoelpin
SplunkTrust
SplunkTrust

Try this

| rest splunk_server=local /servicesNS/-/-/saved/searches 
| table title eai:acl.app search eai:acl.owner cron_schedule
| rename eai:acl.owner as owner 
| search search=*oscar*

View solution in original post

0 Karma

skoelpin
SplunkTrust
SplunkTrust

Try this

| rest splunk_server=local /servicesNS/-/-/saved/searches 
| table title eai:acl.app search eai:acl.owner cron_schedule
| rename eai:acl.owner as owner 
| search search=*oscar*
0 Karma

ytaointra
New Member

Thank you very much! How can I include schedule for each alert in the report? Thanks.

0 Karma

ytaointra
New Member

Thank you so much! How can I also include the time range? I tried "time_range", "earliest", "latest", but didn't work.
Thank you.

0 Karma

skoelpin
SplunkTrust
SplunkTrust

Need to strip off line 2 and look at all the fields available. I think you're probably looking for timespan. I've answered your original question. Can you please accept/upvote?

0 Karma

skoelpin
SplunkTrust
SplunkTrust

Please upvote and accept if this helped you.

I have edited my original answer to include the cron expression

0 Karma
Get Updates on the Splunk Community!

Dashboards: Hiding charts while search is being executed and other uses for tokens

There are a couple of features of SimpleXML / Classic dashboards that can be used to enhance the user ...

Splunk Observability Cloud's AI Assistant in Action Series: Explaining Metrics and ...

This is the fourth post in the Splunk Observability Cloud’s AI Assistant in Action series that digs into how ...

Brains, Bytes, and Boston: Learn from the Best at .conf25

When you think of Boston, you might picture colonial charm, world-class universities, or even the crack of a ...