-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Data Generator doesn't set host field via token #194
Comments
@emk3y
|
Thanks for the fast reply! You're correct, the combination in the first example is wrong. It was one of many tests, so I made an copy+paste error. So i retried the following configuration:
This leads to the following errors:
This is due to the value of the
Just to make sure I understand the expected behavior correctly - with |
From the above query's result Regarding second query, yes host_type = event and token.2.field = host sets the host field via Data generator but once Ingested in Splunk, it's value may change depending on ADDON's props/transforms as mentioned above. |
Until now the package doesn't actually contain any real content as I was trying to get the test environment up and running as a test. So there is nothing in there that could've rewritten the host field. Additionally, looking at
|
The following configuration in
pytest-splunk-addon-data.conf
does replace the tokens as expected, but the ingested data shows a value ofBarracuda.log
for fieldhost
. Therefore testTest_App.test_indextime_key_fields
fails.The following config using
host_type = plugin
produces the exact same result.Test output:
System information:
The text was updated successfully, but these errors were encountered: