splunk-sdk-python icon indicating copy to clipboard operation
splunk-sdk-python copied to clipboard

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

Open mrkprdo opened this issue 5 years ago • 1 comments

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

mrkprdo avatar Apr 26 '21 16:04 mrkprdo

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

mrkprdo avatar Apr 26 '21 17:04 mrkprdo