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,",")
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

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

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...