Closed TheFausap closed 1 year ago
Hi @TheFausap , We have tried to reproduce issue on our end with similar environment setup (without ipam_api
package), and code is working fine without any error. As we don't have access to the ipam_api
package requesting you to share how we can install the package, so we can reproduce the issue.
Hi @akaila-splunk, yesterday I found the cause for this error. In my logging.conf I had an entry for "splunklib". That logging.conf was working in the past, with an older splunklib SDK. So I removed the entries below and the error disappeared.
[logger_splunklib]
qualname = splunklib
level = NOTSET
handlers = splunklib
propagate = 0
[handler_splunklib]
# Select this handler to log events to $SPLUNK_HOME/var/log/splunk/splunklib.log
class = logging.handlers.RotatingFileHandler
args = ('/opt/splunk/var/log/splunk/splunklib.log', 'a', 524288000, 9, 'utf-8', True)
level = NOTSET
formatter = searchcommands
Hello,
I had a custom search command working with the python2 version of splunklib. I moved now to python3 and I have this error:
I'm running Splunk 8.1.12 (under Linux) and I am using the latest SDK 1.7.2 My env python is 3.8
The script I am using is:
Please can you help me to fix this?
thanks, Fausto