Splunk Enterprise

How to group same events in timeline until event change and so on?

nathanluke1986
Engager

Hi I would like to group events in a timeline as a count until a different event occurs

 

Example:

nathanluke1986_0-1670850089377.png

 

So basically achieve the following:

A user account was locked out   (count 13)

A process has exited (count 1)

A new process has been created (count 1)

Permissions on an object were changed (count 2)

A process has exited (count 1)

And so on ......

 

 

0 Karma

richgalloway
SplunkTrust
SplunkTrust

Grouping by signature is not the same as a "timeline".  Which is it you want?

To group by signature, use this SPL

... | stats count by signature
---
If this reply helps you, Karma would be appreciated.
0 Karma

nathanluke1986
Engager

Sorry if this has confused you.

 

What I want a timeline of the events but grouped if they same signature but only up to the point where the signature value changes in the time line.

so if there are 20 successful logins then a failure then 3 successful I would like it to show:

successful login (count 20)

failure (count 1)

successful (count 3)

|table firsttime signature count.

 

The issue I am having is there could be pages of successful logins before another event of interest occurs.

 

I want to tidy up the time line to make it easily readable

 

0 Karma

richgalloway
SplunkTrust
SplunkTrust

What visualization do you have in mind?  When I read "timeline" I think of the timechart command, but I'm not sure that's what you're looking for.

... | timechart span=5m count by signature

 

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

[Puzzles] Solve, Learn, Repeat: Dynamic formatting from XML events

This challenge was first posted on Slack #puzzles channelFor a previous puzzle, I needed a set of fixed-length ...

Enter the Agentic Era with Splunk AI Assistant for SPL 1.4

  🚀 Your data just got a serious AI upgrade — are you ready? Say hello to the Agentic Era with the ...

Stronger Security with Federated Search for S3, GCP SQL & Australian Threat ...

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...