#Random
This is a place to discuss all things outside of Splunk, its products, and its use cases.

Does splunk have a primitive to generate test records?

DalJeanis
Legend

I'm trying to generate some trivial data records (in this example, records with TheRecordNumber from 1 to 400).

Is there a simpler way to do it than this?

| makeresults count=400
| eval TheNum = 1 
| accum TheNum as TheRecordNumber 

I'm aware of makeresults and gentimes.

Tags (1)
0 Karma
1 Solution

rjthibod
Champion

The only thing simpler I can think of is this

| makeresults count=400
| streamstats count as TheRecordNumber

View solution in original post

rjthibod
Champion

The only thing simpler I can think of is this

| makeresults count=400
| streamstats count as TheRecordNumber

somesoni2
Revered Legend

Don't think there is any other simpler option.

0 Karma
Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...