Splunk Enterprise Security

How do I write a query for Audit Searches?

NDabhi21
Explorer

Hi All,

Please suggest the query or solution to achieve below requirement.

1. List of searches or query run by user (looking for the report where shows searches as per user)

2. List of Searches/reports which use one particular index. (i.e - Use case: User locked out is using index=windows) 

Labels (1)
0 Karma

somesoni2
Revered Legend

You need to explore data in index=_audit for your requirements.

e.g. This can give you search (adhoc and scheduled) by user

index=_audit action=search search=* 
| stats dc(search_id) as searchCount by user

Getting data by index will not be 100% accurate as not every user uses "index=" as filter in every search (sometime they do google type search which is a bad practice OR sometime they use macros OR eventtypes).

0 Karma

NDabhi21
Explorer

@somesoni2 : Thanks for the solution.

Its working for current environment .

Is there any option get index details which was used by above query output users 

0 Karma
Get Updates on the Splunk Community!

Enterprise Security Content Update (ESCU) | New Releases

In December, the Splunk Threat Research Team had 1 release of new security content via the Enterprise Security ...

Why am I not seeing the finding in Splunk Enterprise Security Analyst Queue?

(This is the first of a series of 2 blogs). Splunk Enterprise Security is a fantastic tool that offers robust ...

Index This | What are the 12 Days of Splunk-mas?

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