Splunk Search

searching in splunk indexes

user487596
Explorer

Hello everyone! How can we solve the problem of searching for secrets in all or some splunk indexes so that splunk is not heavily loaded: how can this be implemented? (approach). 

It is obvious that the list of indexes needs to be limited. What else?

Labels (1)
0 Karma

user487596
Explorer

HI, @gcusello 
I need to find secrets (passwords, api-tokens, etc.) in all data (events) in all indexes that are in splunk, the question is in the approach: how to do this so as not to overload splunk.

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @user487596 ,

Splunk is a search engine, so you can use it for this:

you must know the rules (e.g. searching for the password word) and then apply to the indexes.

At first I'd start identifying the login and create user actions for each environment in your infrastructure (e.g. in windows these action are identifed with EventCode = 4624 and 4720), then you can run searches with those specific filters to see if there are clear text passwords.

Ciao.

Giuseppe

0 Karma

user487596
Explorer

@gcusello , It's pretty clear what to look for, the question is how to do it in all indexes without loading splunk

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @user487596 ,

sorry but I don't understand: what do you mean with "in all indexes without loading splunk"?

You could use APIs to access Splunk from your application without using the Splunk GUI.

Ciao.

Giuseppe

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @user487596 ,

could you better describe your requisite?

In Splunk access to data is managed at index level, in other words, you can define for each role, which are the indexes that the users with that role can access.

In addition, it's also possible to add some additional restrictions, but always at Role level, not user level.

Ciao.

Giuseppe

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

May 2026 Splunk Expert Sessions: Security & Observability

Level Up Your Operations: May 2026 Splunk Expert Sessions Whether you are refining your security posture or ...

Network to App: Observability Unlocked [May & June Series]

In today’s digital landscape, your environment is no longer confined to the data center. It spans complex ...

SPL2 Deep Dives, AppDynamics Integrations, SAML Made Simple and Much More on Splunk ...

Splunk Lantern is Splunk’s customer success center that provides practical guidance from Splunk experts on key ...