Splunk Search

Forcing eventgen to refresh normalised replacement files

bowesmana
SplunkTrust
SplunkTrust

I am using eventgen to generate transaction type data, where I create an event in Splunk and then at some point in the future, I create a new event to revoke the initial event. It works like this

  1. my first event is using a guid in the event
  2. a saved search runs periodically and searches for a select set of these events and writes the guids to an outputlookup
  3. this csv is then used by another eventgen sample to create the second revocation transaction

However, it seems that as eventgen randomises the replacement file at startup, when the saved search rewrites the outputlookup, eventgen is not aware of that change, so will continue to use the file. This means that the same guid can be potentially reused in (2) and new guids created in (1) are not candidates.

I can see this in the log file

Normalized replacement file /opt/splunk/etc/apps/app/lookups/guids.csv

is there a way to force this to refresh?

Tags (1)
0 Karma
1 Solution

lwu_splunk
Splunk Employee
Splunk Employee

TLDR:
You can not force it to use the updated replacement file.

Long answer:
EventGen is designed for large data volume generation. So EventGen will read the replacement file once and cache it for event token replacement. Think if when you generate every event, you read from file and replace it with a random value from the file, it will have unacceptable I/O latency.

If you think it is critical for your requirement, you can make a feature request here: https://github.com/splunk/eventgen/issues/new/choose

Thanks for your feedback.

View solution in original post

lwu_splunk
Splunk Employee
Splunk Employee

TLDR:
You can not force it to use the updated replacement file.

Long answer:
EventGen is designed for large data volume generation. So EventGen will read the replacement file once and cache it for event token replacement. Think if when you generate every event, you read from file and replace it with a random value from the file, it will have unacceptable I/O latency.

If you think it is critical for your requirement, you can make a feature request here: https://github.com/splunk/eventgen/issues/new/choose

Thanks for your feedback.

bowesmana
SplunkTrust
SplunkTrust

Thanks. That's as I suspected, so no big deal. I am shutting down my instance daily for the night and I don't need nightly data, so I have saved searches that will update the file before shutdown, so will be in place for the next restart.

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

SOK it to Me: Top 3 Benefits of Using Splunk Operator on Kubernetes that’ll Make ...

    Thursday, July 9, 2026  |  11:00AM–12:00PM PDT Duration: 1 hour (includes Q&A) Managing can feel like a ...

Upgrade Prep for 10.4, Network Observability Deep Dives, and More from Splunk Lantern

Splunk Lantern is Splunk’s customer success center that provides practical guidance from Splunk experts on key ...

Splunk Developer Day announcements: AI agents, MCP tools, Forecasting, and Custom ...

Splunk Developer Day was packed with product and platform updates for developers building in the AI ...