Skip to content

[BUG] Plugin config Not Found or Failed to load. #456

@lluked

Description

@lluked

Describe the bug

PyPI Installation

EventGen is not working as documented and resulting in error:

splunk_eventgen.lib.eventgenexceptions.FailedLoadingPlugin: Plugin config Not Found or Failed to load.

To Reproduce
Steps to reproduce the behavior:

python3.7 -m splunk_eventgen --version:

[vagrant@CentOS-7 eventgen]$ python3.7 -m splunk_eventgen --version
Eventgen 7.2.1

python3.7 -m splunk_eventgen -v generate tests/sample_eventgen_conf/replay/eventgen.conf.replay:

[vagrant@CentOS-7 eventgen]$ python3.7 -m splunk_eventgen -v generate tests/sample_eventgen_conf/replay/eventgen.conf.replay
Traceback (most recent call last):
  File "/home/vagrant/eventgen/splunk_eventgen/eventgen_core.py", line 527, in start
    loggingqueue=self.loggingQueue,
  File "/home/vagrant/eventgen/splunk_eventgen/lib/eventgentimer.py", line 57, in __init__
    "rater." + self.sample.rater, self.sample
  File "/home/vagrant/eventgen/splunk_eventgen/lib/eventgenconfig.py", line 366, in getPlugin
    raise targetplugin
splunk_eventgen.lib.eventgenexceptions.PluginNotLoaded: Plugin config Not Loaded, attempting to load.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.7/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/local/lib/python3.7/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/home/vagrant/eventgen/splunk_eventgen/__main__.py", line 384, in <module>
    main()
  File "/home/vagrant/eventgen/splunk_eventgen/__main__.py", line 355, in main
    eventgen.start()
  File "/home/vagrant/eventgen/splunk_eventgen/eventgen_core.py", line 537, in start
    loggingqueue=self.loggingQueue,
  File "/home/vagrant/eventgen/splunk_eventgen/lib/eventgentimer.py", line 57, in __init__
    "rater." + self.sample.rater, self.sample
  File "/home/vagrant/eventgen/splunk_eventgen/lib/eventgenconfig.py", line 368, in getPlugin
    raise FailedLoadingPlugin(name=plugin)
splunk_eventgen.lib.eventgenexceptions.FailedLoadingPlugin: Plugin config Not Found or Failed to load.

I have also built the pip module from source and eventgen still fails to run.

If you are using eventgen with pip module mode (please complete the following information):

  • python version: 3.7, also tried 3.10 with same result
  • OS: CentOS7 and Ubuntu 22.04
  • Virtual Env: Tried both with and without and failed to run samples
  • Eventgen Version: 7.2.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugMalfunctioning Eventgen due to potential bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions