Splunk Enterprise Security

Is it possible to list what source my correlation search is based on?

woodentree
Communicator

Hello,

We'd like to help our analysts to tell which correlation search is impacted in case of log source issue. But we can't find the way to list the dependence Correlation Search --> Data Model or Index it is based on.

Do you know if there is a way to do it?

For information, we have 3 types of Correlation Searches:
- Using an index, like index=internal action=create_user ...
- Using a datamodel, like | from datamodel:"Change_Analysis"."Account_Management" | ...
- Using a datamodel via tstats, like | tstats allow_old_summaries=t count from datamodel="Authentication" ...

Thanks for the help.

0 Karma
1 Solution

richgalloway
SplunkTrust
SplunkTrust

See if this gets you started in the right direction.

| rest /services/saved/searches 
| search is_scheduled=1 disabled=0
| fields title eai:acl.app search datamodel index 
| rex field=search "from datamodel[:=]\"?(?<datamodel>\w+)" | rex field=search "^index\s*=\s*(?<index>\w+)"
---
If this reply helps you, Karma would be appreciated.

View solution in original post

richgalloway
SplunkTrust
SplunkTrust

See if this gets you started in the right direction.

| rest /services/saved/searches 
| search is_scheduled=1 disabled=0
| fields title eai:acl.app search datamodel index 
| rex field=search "from datamodel[:=]\"?(?<datamodel>\w+)" | rex field=search "^index\s*=\s*(?<index>\w+)"
---
If this reply helps you, Karma would be appreciated.

woodentree
Communicator

Hi @richgalloway

Thanks for the help, That's exactly what we were searching for!

We only implemented one more condition: | where match('action.correlationsearch.enabled', "1|[Tt]|[Tt][Rr][Uu][Ee]"). Without it all deactivated searches are listed as well (have no idea why disabled=0 doesn't help).

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...