Splunk Search

how group a field values with the maxevents of 4, without using transaction command

vinod743374
Communicator

Hi everyone,

i need an alternative for the transaction command, bcoz its taking to much time to load the dashboard,

this is my actual data

Botid             count

1528               1 

1228               1

1015              1

1558              1

12                    1

1698              1

1589.15        1

1589              1

 

am looking for an output like below

BotId                                                               count

1528,1228,1015,1558                              1

12,1698,1589.2,1589                                2

 

 

 

thanks in advance

Labels (1)
Tags (1)
0 Karma
1 Solution

ITWhisperer
SplunkTrust
SplunkTrust
| table Botid
| streamstats count as row
| eval row=row%4
| streamstats count(eval(row=1)) as count
| stats list(Botid) as Botid by count
| eval Botid=mvjoin(Botid,",")

View solution in original post

ITWhisperer
SplunkTrust
SplunkTrust
| table Botid
| streamstats count as row
| eval row=row%4
| streamstats count(eval(row=1)) as count
| stats list(Botid) as Botid by count
| eval Botid=mvjoin(Botid,",")
Get Updates on the Splunk Community!

Dashboards: Hiding charts while search is being executed and other uses for tokens

There are a couple of features of SimpleXML / Classic dashboards that can be used to enhance the user ...

Splunk Observability Cloud's AI Assistant in Action Series: Explaining Metrics and ...

This is the fourth post in the Splunk Observability Cloud’s AI Assistant in Action series that digs into how ...

Brains, Bytes, and Boston: Learn from the Best at .conf25

When you think of Boston, you might picture colonial charm, world-class universities, or even the crack of a ...