All Apps and Add-ons

How to stop the eventgen and how to get the number of events generated by eventgen?

chitra
Explorer

i want to know the number of events generated by eventgen, is it update this count somewhere in the log file?
On restart of splunkd daemon, eventgen generating the file, how can i stop the eventgen when it reaches to specific event count?

Tags (1)
1 Solution

lmyrefelt
Builder

You can stop the eventgen (easiest) by "Disabling" the app under "App management".

To check how many events you have generated:
index=eventGenIndex | stats count

| metadata type=sourcetypes index=eventGenIndex

Not sure you can stop the eventgen after a specific number of events (with out writing a script) ... maybe it is a config question?
docs:

https://github.com/coccyx/eventgen

https://apps.splunk.com/app/1924/#/documentation

View solution in original post

Venkat_16
Contributor

The application can be disabled by commenting the eventgen.conf file with "#".

0 Karma

lmyrefelt
Builder

You can stop the eventgen (easiest) by "Disabling" the app under "App management".

To check how many events you have generated:
index=eventGenIndex | stats count

| metadata type=sourcetypes index=eventGenIndex

Not sure you can stop the eventgen after a specific number of events (with out writing a script) ... maybe it is a config question?
docs:

https://github.com/coccyx/eventgen

https://apps.splunk.com/app/1924/#/documentation

koshyk
Super Champion

disabling still generates event (i've tried sample tutorial2) 😞

0 Karma
Get Updates on the Splunk Community!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...