Open axil76 opened 6 years ago
Hello I use the check_kafka script and I have the following error message, and I do not see where the problem is, below the logging.conf file
[loggers] keys=root
[handlers] keys=consoleHandler,fileHandler,kafkaHandler
[formatters] keys=simpleFormatter,logstashFormatter
[logger_root] level=DEBUG handlers=consoleHandler,fileHandler,kafkaHandler formatter=simpleFormatter
[handler_fileHandler] class=logging.handlers.WatchedFileHandler level=DEBUG formatter=simpleFormatter args=('/var/log/check_kafka.log', 'a')
[handler_kafkaHandler] class=python_kafka_logging.KafkaHandler.KafkaLoggingHandler level=DEBUG formatter=logstashFormatter args=("192.168.0.35:2181, 192.168.0.193:2181","apps-openshift")
[handler_consoleHandler] class=StreamHandler level=DEBUG formatter=simpleFormatter args=(sys.stdout,)
[formatter_simpleFormatter] format=%(asctime)s - %(levelname)s - %(name)s - %(message)s
[formatter_logstashFormatter] class=logstash_formatter.LogstashFormatter format={"extra": {"appName": "myPythonApp", "environment": "AWS-Test"}}
can you help me ? thanks
Hello I use the check_kafka script and I have the following error message, and I do not see where the problem is, below the logging.conf file
[loggers] keys=root
[handlers] keys=consoleHandler,fileHandler,kafkaHandler
[formatters] keys=simpleFormatter,logstashFormatter
[logger_root] level=DEBUG handlers=consoleHandler,fileHandler,kafkaHandler formatter=simpleFormatter
[handler_fileHandler] class=logging.handlers.WatchedFileHandler level=DEBUG formatter=simpleFormatter args=('/var/log/check_kafka.log', 'a')
[handler_kafkaHandler] class=python_kafka_logging.KafkaHandler.KafkaLoggingHandler level=DEBUG formatter=logstashFormatter args=("192.168.0.35:2181, 192.168.0.193:2181","apps-openshift")
[handler_consoleHandler] class=StreamHandler level=DEBUG formatter=simpleFormatter args=(sys.stdout,)
[formatter_simpleFormatter] format=%(asctime)s - %(levelname)s - %(name)s - %(message)s
[formatter_logstashFormatter] class=logstash_formatter.LogstashFormatter format={"extra": {"appName": "myPythonApp", "environment": "AWS-Test"}}
can you help me ? thanks