def verify_dcr_has_valid_content(self, dcr_stream):
        """
        Verifying that the CEF DCR on the machine has valid content with all necessary DCR components
        """
        global STREAM_SCENARIO
        command_name = "verify_dcr_has_valid_content"
        command_to_run = "sudo grep -ri \"{}\" /etc/opt/microsoft/azuremonitoragent/config-cache/configchunks/".format(
            self.STREAM_NAME[dcr_stream])
        result_keywords_array = ["stream", "kind", "syslog", "dataSources", "configuration", "facilityNames",
                                 "logLevels", "SecurityInsights", "endpoint", "channels", "sendToChannels", "ods-",
                                 "opinsights.azure", "id"]
        command_object = CommandVerification(command_name, command_to_run, result_keywords_array)
        command_object.run_command(should_decode=False)
        command_object.command_result = command_object.command_result.decode('UTF-8').split('\n')[:-1]
        for dcr in command_object.command_result:
            dcr_path = re.search("(/etc/opt/microsoft/azuremonitoragent/config-cache/configchunks/.*.json)",
                                 str(dcr)).group()
            for key_word in command_object.result_keywords_array:
                if str(key_word) not in str(dcr):
                    command_object.is_command_successful(should_fail=True)
                    print_error(
                        "Found an invalid DCR. It is missing this key-word \'{}\'. It's path is {}".format(key_word,
                                                                                                           dcr_path))
                    return False
        command_object.run_full_verification()

        Verifying that the CEF DCR on the machine has valid content with all necessary DCR components
        
DataConnectors/Syslog/Sentinel_AMA_troubleshoot.py