Splunk Search

Is there a unique event ID for each event in the index?

andy_lee
New Member

Hi

My auditors are questioning and requiring that each event we log into Splunk has a unique identifier added by Splunk. I see where they are coming from, but cannot produce evidence of something I know intuitively to be true. Splunk must maintain an internal index of events to enable the searching to work so each recorded event must have a unique id from that. I just need to evidence it for the Auditors

0 Karma
1 Solution

javiergn
Super Champion

Enterprise Security provides this already.
If you don't have ES, then try the following:

| eval myUniqueId = index + "_" + _cd + "_" + splunk_server

View solution in original post

javiergn
Super Champion

Enterprise Security provides this already.
If you don't have ES, then try the following:

| eval myUniqueId = index + "_" + _cd + "_" + splunk_server

andy_lee
New Member

Many thanks I assume in the search string there are some values I need to input? I guess splunk_server = host name or IP or search head or indexer is index to be replaced with a specific value and how about myUniqueId does that need a specific value in there as well

0 Karma

andy_lee
New Member

Thanks again I have now managed to understand this and have generated the search with the id attached. My Auditors will now be happy!!!

0 Karma

javiergn
Super Champion

Yeah. For instance, if you want to return all your non-internal events for the last 10 minutes:

 index=* earliest=-10m | eval myUniqueId = index + "_" + _cd + "_" + splunk_server | table _raw myUniqueId

The ID is there, you just need to build it

By the way, splunk_server is different from host. The first one specifies the server where your data is stored (normally your indexer). Host could be multiple things but it normally refers to the host that generated the event.

0 Karma
Get Updates on the Splunk Community!

Updated Team Landing Page in Splunk Observability

We’re making some changes to the team landing page in Splunk Observability, based on your feedback. The ...

New! Splunk Observability Search Enhancements for Splunk APM Services/Traces and ...

Regardless of where you are in Splunk Observability, you can search for relevant APM targets including service ...

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...