#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
SplunkTrust
SplunkTrust

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
SplunkTrust
SplunkTrust

Don't think there is any other simpler option.

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...