Splunk Search

How to create search to show created/deleted tokens?

fatsug
Path Finder

Hi, if someone could help me out with, or point me in a nice direction to, producing a search which shows if/when a token (for API calls) is/was generated and/or deleted through either the UI or API calls, I would really appreciate it.

To be clear, the search should be using the UI though the creation/deletion of tokens could be done in either way.

Thank you in advance

Labels (1)
Tags (3)
0 Karma

richgalloway
SplunkTrust
SplunkTrust

It's in the audit logs.  Start with this search

index=_audit ((action=edit_token_http operation=*) OR action=create)
---
If this reply helps you, an upvote would be appreciated.

fatsug
Path Finder

Hm, what's the protocol here? Do I mark my own solution as "accepted solution" or the suggestion that led to the solution? 

0 Karma

richgalloway
SplunkTrust
SplunkTrust

Your choice.

---
If this reply helps you, an upvote would be appreciated.
0 Karma

fatsug
Path Finder

Today, three tokens were generated, two through API and one webUI. Two were removed using web UI.

Though looking at the available actions for past 24h I see neither "edit_token_http" or "create" listed under action.

However, your suggestion did help me achieve what I needed:

index=_audit (action=create_token OR action=remove_token)

And there we are, big thank you and have a nice weekend

richgalloway
SplunkTrust
SplunkTrust

Interesting.  Must be a version thing.  Glad you figured it out.

---
If this reply helps you, an upvote would be appreciated.
0 Karma
Get Updates on the Splunk Community!

Improve Your Security Posture

Watch NowImprove Your Security PostureCustomers are at the center of everything we do at Splunk and security ...

Maximize the Value from Microsoft Defender with Splunk

 Watch NowJoin Splunk and Sens Consulting for this Security Edition Tech TalkWho should attend:  Security ...

This Week's Community Digest - Splunk Community Happenings [6.27.22]

Get the latest news and updates from the Splunk Community here! News From Splunk Answers ✍️ Splunk Answers is ...