Skip to content

[BUG] urlparams is not set properly #179

@knjkmd

Description

@knjkmd

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.

506a938

To Reproduce

  1. Install eventgen as a python package
  2. Set index, source, sourcetype and hostRegex in a config file
  3. 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:"

Metadata

Metadata

Assignees

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