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!

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

March Community Office Hours Security Series Uncovered!

Hello Splunk Community! In March, Splunk Community Office Hours spotlighted our fabulous Splunk Threat ...

Stay Connected: Your Guide to April Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars in April. This post ...