Splunk Search

How to group each full iteration into single fields?

ABSplunker93
Engager

I have a stats table with output in the below format:

Device                          Timestamp        Action

some value                some value.             1

some value              some value.              2

..                     ..                                .. 

some value                some value              10

some value                 some value               1

some value              some value.                  2

..                     ..                                .. 

some value                some value              10

 

So, the action column repeats the pattern after a certain number of iterations. How to group these into single fields, that is, each full iteration should be stored as a mv field.

 

Labels (1)
0 Karma

richgalloway
SplunkTrust
SplunkTrust

The stats command doesn't create arbitrary patterns the results.  Either the pattern exists in the data or it's introduced in the query.  You may need to add or change the by clause in the stats command.  For more specifics, please share the SPL and a sanitized data sample.

---
If this reply helps you, Karma would be appreciated.
0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

[Puzzles] Solve, Learn, Repeat: Tiling

This puzzle (first published here) is based on finding groups of tessellated tiles (inspired by floor tiles I ...

SOK it to Me: Top 3 Benefits of Using Splunk Operator on Kubernetes that’ll Make ...

    Thursday, July 9, 2026  |  11:00AM–12:00PM PDT Duration: 1 hour (includes Q&A) Managing can feel like a ...

Upgrade Prep for 10.4, Network Observability Deep Dives, and More from Splunk Lantern

Splunk Lantern is Splunk’s customer success center that provides practical guidance from Splunk experts on key ...