All Apps and Add-ons

How to Set Varying Limit of Events Generated per Hour in SA-Eventgen to Emulate a Pattern from 1 Line of Sample?

Amusthofa
Explorer

Hi, Folks.

Say, I have a file with 1 line of sample text. My goal is to emulate patterns like this:

1 AM = 10 events
2 AM = 10 events
3 AM = 15 events
4 AM = 20 events
...
1 PM = 1000 events
2 PM = 1200 events
3 PM = 700 events
4 PM = 300 events
...

and so forth.

I understand that I can use the likes of minuteOfHourRate, hourOfDayRate, etc to have this kind of pattern IF I have sample files with multiple lines of sample event in it.

Is it possible to do the same if I only have 1 line in my sample file? Please advise.

Thank you.

Tags (1)
0 Karma

lwu_splunk
Splunk Employee
Splunk Employee

It should be fine to get it work though I have not tested it. But why do you provide only one line sample file, it is not hard to provide a multiple lines sample file.

0 Karma
Get Updates on the Splunk Community!

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer at Splunk .conf24 ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

Splunk Lantern is Splunk’s customer success center that provides advice from Splunk experts on valuable data ...

Combine Multiline Logs into a Single Event with SOCK: a Step-by-Step Guide for ...

Combine multiline logs into a single event with SOCK - a step-by-step guide for newbies Olga Malita The ...