def postMessages(self, body):
        """
        Function to post messages to log analytics
        :param body: payload body for post call
        """
        method = 'POST'
        contentType = 'application/json'
        resource = '/api/logs'
        rfc1123date = datetime.datetime.utcnow().strftime('%a, %d %b %Y %H:%M:%S GMT')
        contentLength = len(json.dumps(body))
        signature = self.buildSignature(rfc1123date, contentLength , method, contentType, resource)
        uri = "https://" + WORKSPACEID + ".ods.opinsights.azure.com" + resource + "?api-version=2016-04-01"
        headers = {
            'content-type': contentType,
            'Authorization': signature,
            'Log-Type': TABLENAME,
            'x-ms-date': rfc1123date
        }
        try:
            response = retryRequest(uri, headers, body)
        except Exception as err:
            logging.error("Error during sending logs to Azure Sentinel: {}".format(err))
        else:
            if response:
                if response.status_code == HTTPStatus.OK:
                    logging.info("Messages have been successfully sent to Azure Sentinel.")
                else:
                    logging.error("Error during sending messages to Azure Sentinel. Response code: {}".format(response.status_code))
            else:
                logging.error("Failed to post data to Azure Sentinel")

        Function to post messages to log analytics
        :param body: payload body for post call
        
Solutions/Cisco ETD/Data Connectors/CiscoETDAzureSentinelConnector/__init__.py