Quantcast
Channel: Questions in topic: "splunk-enterprise"
Viewing all articles
Browse latest Browse all 47296

Why am I unable to set up logging to debug my python script?

$
0
0
Hello, I am trying to activate the logging in order to debug my python script. I have followed the documentation located at: http://docs.splunk.com/Documentation/Splunk/6.3.0/AdvancedDev/ModInputsLog SPLUNK_HOME/etc/log.cfg had already category.ExecProcessor=INFO And the code is basically the same as the example: # set up logging suitable for splunkd consumption logging.root logging.root.setLevel(logging.DEBUG) formatter = logging.Formatter('%(levelname)s %(message)s') handler = logging.StreamHandler(stream=sys.stderr) handler.setFormatter(formatter) logging.root.addHandler(handler) logging.info("LOGGING INFO HELLO.") logging.debug("LOGGING DEBUG HELLO") My entry is not logged in `SPLUNK_HOME/var/log/splunk/splunkd.log` I have no index=_internal ExecProcessor. I found an index names splunklogger, but it does not contain any event. Regards

Viewing all articles
Browse latest Browse all 47296

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>