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!

Enter the Dashboard Challenge and Watch the .conf24 Global Broadcast!

The Splunk Community Dashboard Challenge is still happening, and it's not too late to enter for the week of ...

Join Us at the Builder Bar at .conf24 – Empowering Innovation and Collaboration

What is the Builder Bar? The Builder Bar is more than just a place; it's a hub of creativity, collaboration, ...

Combine Multiline Logs into a Single Event with SOCK - a Guide for Advanced Users

This article is the continuation of the “Combine multiline logs into a single event with SOCK - a step-by-step ...