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

[Puzzles] Solve, Learn, Repeat: Reprocessing XML into Fixed-Length Events

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

Data Management Digest – December 2025

Welcome to the December edition of Data Management Digest! As we continue our journey of data innovation, the ...

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 ...