Splunk Enterprise Security

How to capture the time when the notable alert was fired, in a field?

Vnam
Engager

I have to populate a field called event_generation_time. I want to populate the time when notable event was created for a correlation search in this field, is there any way to capture this timestamp?

0 Karma

woodcock
Esteemed Legend

Just add this to the end of your SPL:

| eval now=now(), time=time()

The difference is that now is when the report was supposed to run, but time is when it actually ran (there are features to delay start times to skew the demand).
To keep them "invisible", do this:

| eval _now=now(), _nowtime=time()
0 Karma

Vnam
Engager

Is there a way to do this without changing SPL, because it was not configured before and would require a change in all the correlation searches? Is there some metadata field which can be used, for instance I saw there was a field "info_max_time" in Notable event stash, will this be the correct field to use for this purpose? (Ref: http://dev.splunk.com/view/enterprise-security/SP-CAAAFBA).
Thanks in Advance!

0 Karma

woodcock
Esteemed Legend

Nothing that I know.

0 Karma
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

Splunk Decoded: Service Maps vs Service Analyzer Tree View vs Flow Maps

It’s Monday morning, and your phone is buzzing with alert escalations – your customer-facing portal is running ...

What’s New in Splunk Observability – September 2025

What's NewWe are excited to announce the latest enhancements to Splunk Observability, designed to help ITOps ...

Fun with Regular Expression - multiples of nine

Fun with Regular Expression - multiples of nineThis challenge was first posted on Slack #regex channel ...