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!

Fun with Regular Expression - multiples of nine

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

[Live Demo] Watch SOC transformation in action with the reimagined Splunk Enterprise ...

Overwhelmed SOC? Splunk ES Has Your Back Tool sprawl, alert fatigue, and endless context switching are making ...

What’s New & Next in Splunk SOAR

Security teams today are dealing with more alerts, more tools, and more pressure than ever.  Join us on ...