splunk / eventgen

Splunk Event Generator: Eventgen
Apache License 2.0
376 stars 180 forks source link

Additional debug to identify base directory for relative samples directory search #418

Open mark-sivill-splunk opened 3 years ago

mark-sivill-splunk commented 3 years ago

I added the following debug to help determine the base directory from where the relative search for the samples directory happens.

I'm running eventgen as a standalone program and debugging the files that were being searched for in the directory structure took me some time. Perhaps the following might help somebody else.

Change as sed command ....

sed -i 's/ s.sampleDir = os.path.join(base_path, s.sampleDir)/ logger.debug("Using base directory %s" % (base_path) )\n s.sampleDir = os.path.join(base_path, s.sampleDir)/g' ./eventgen/splunk_eventgen/lib/eventgenconfig.py