Hi,
I'm writing a search command and need to log events from it to Splunk Web. I'm using the Python SDK in the current version 1.5.0. I already looked into answer 80712 and could not find any other concerned with logging.
I'm looking for the correct configuration of the logger already included in the SearchCommand base Class, so that I can do something like this:
class MySearchCommand(GeneratingCommand):
def generate(self):
self.logger.info('my message')
So that 'my message' will be shown in the log after clicking Job -> Inspect Job -> search.log
Thanks a lot
Johannes
... View more