Splunk Search

How to extract random numbers

marinella26
Explorer


There are over 10000 events and I want to extract events of 100 random Users.
Is there any simple way to extract this?

Thanks in advance!

Tags (4)
0 Karma
1 Solution

ITWhisperer
SplunkTrust
SplunkTrust
<your search> [search <your search>|dedup user|eval number=random()|sort 0 number|head 100|table user]

View solution in original post

ITWhisperer
SplunkTrust
SplunkTrust
<your search> [search <your search>|dedup user|eval number=random()|sort 0 number|head 100|table user]

marinella26
Explorer

@ITWhisperer  it worked. Thank you so much!

0 Karma
Get Updates on the Splunk Community!

Splunk Classroom Chronicles: Training Tales and Testimonials (Episode 3)

Welcome back to Splunk Classroom Chronicles, our ongoing blog series that pulls back the curtain on Splunk ...

Operationalizing TDIR: Building a More Resilient, Scalable SOC

Optimizing SOC workflows with a unified, risk-based approach to Threat Detection, Investigation, and Response ...

Almost Too Eventful Assurance: Part 1

Modern IT and Network teams still struggle with too many alerts and isolating issues before they are notified. ...