splunk / splunk-sdk-python

Splunk Software Development Kit for Python
http://dev.splunk.com
Apache License 2.0
687 stars 369 forks source link

Error in 'lookup' command: Could not construct lookup 'errorcodes.csv, eventCode, OUTPUT, Description' #375

Closed mrkprdo closed 3 years ago

mrkprdo commented 3 years ago

How can i make this query work on this python library? Am i missing some auth headers when i send my query?

mrkprdo commented 3 years ago

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