splunk-sdk-python
splunk-sdk-python copied to clipboard
Error in 'lookup' command: Could not construct lookup 'errorcodes.csv, eventCode, OUTPUT, Description'
How can i make this query work on this python library? Am i missing some auth headers when i send my query?
Nevermind, just need to declare app name when connecting to splunk client:
client.connect(**self._config, app='app_name')
Refer to app keyword, https://github.com/splunk/splunk-sdk-python/blob/b36d6ebd988c9884a4eeb875e2c8fb50f1068d73/splunklib/client.py#L303