I am using Python logging library to push logs to splunk. This package use HEC method to push logs to splunk. Issue I am facing is that out of many logger statements in my application, I want selectively only few logger statements to splunk not all. So i created one method below method which converts string logs in json (key/value)