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
Get Updates on the Splunk Community!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...