Splunk Search

Identify a sequence of events on the consecutive change of value of a field

vburgun
Engager

Hi


We index the accesses made on a filer. For each action on a file, events are generated and indexed in Splunk.


The copy of a file does not directly generate a "copy" event but the "Event.System.EventName" field consecutively takes the three values "Open Object", "Get Object Attributes", "Read Object".

This corresponds to three events in Splunk with no real common fields. How to build a query that would identify this consecutive sequence of events to alert us of a file copy ?

Maybe the streamstat command could be used but I can't figure out how.

0 Karma
1 Solution

ITWhisperer
SplunkTrust
SplunkTrust

Try something like this

| streamstats window=3 list(event) as last3events
| eval last3events=mvjoin(last3events,",")
| where last3events == "Open,Get,Read"

Depending on the order of events for your initial search, you may either need to sort them, or look for "Read,Get,Open"

View solution in original post

ITWhisperer
SplunkTrust
SplunkTrust

Try something like this

| streamstats window=3 list(event) as last3events
| eval last3events=mvjoin(last3events,",")
| where last3events == "Open,Get,Read"

Depending on the order of events for your initial search, you may either need to sort them, or look for "Read,Get,Open"

vburgun
Engager

Hi,

Thanks for your help ! It's perfect !

It works for me

0 Karma
Get Updates on the Splunk Community!

Index This | What is broken 80% of the time by February?

December 2025 Edition   Hayyy Splunk Education Enthusiasts and the Eternally Curious!    We’re back with this ...

Unlock Faster Time-to-Value on Edge and Ingest Processor with New SPL2 Pipeline ...

Hello Splunk Community,   We're thrilled to share an exciting update that will help you manage your data more ...

Splunk MCP & Agentic AI: Machine Data Without Limits

Discover how the Splunk Model Context Protocol (MCP) Server can revolutionize the way your organization uses ...