-
Notifications
You must be signed in to change notification settings - Fork 179
Closed
Labels
bugMalfunctioning Eventgen due to potential bugMalfunctioning Eventgen due to potential bug
Description
Describe the bug
index, source, sourcetype and hostRegex specified in a config files are not properly set as url parameters for http POST request because of the wrong if conditions.
To Reproduce
- Install eventgen as a python package
- Set index, source, sourcetype and hostRegex in a config file
- Run eventgen
Expected behavior
index, source, sourcetype and hostRegex in the pushed events are the same as specified in the config file
Actual behavior
Default values are used
index => "main"
host => ip of the sender
source = "http-simple"
sourcetype = "unknown-to_small"
Do you run eventgen with SA-eventgen?
No
If you are using eventgen with pip module mode (please complete the following information):
- python version: 2.7.14
- OS: Redhat
- Virtual Env is used: Yes
- Eventgen Version 6.3.4
Additional context
In the commit: 506a938,
"if index != None:" is replaced by "if not index:"
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugMalfunctioning Eventgen due to potential bugMalfunctioning Eventgen due to potential bug