def determine_syslog_daemon(self):
        """
        This function is in order to determine what Syslog daemon is running on the machine (Rsyslog or Syslog-ng)
        """
        is_rsyslog_running = CommandVerification("find_Rsyslog_daemon",
                                                 "if [ `ps -ef | grep rsyslog | grep -v grep | wc -l` -gt 0 ]; then echo \"True\"; else echo \"False\"; fi")
        is_syslog_ng_running = CommandVerification("find_Syslog-ng_daemon",
                                                   "if [ `ps -ef | grep syslog-ng | grep -v grep | wc -l` -gt 0 ]; then echo \"True\"; else echo \"False\"; fi")
        is_rsyslog_running.run_command(), is_syslog_ng_running.run_command()
        if "True" in str(is_rsyslog_running.command_result):
            self.SYSLOG_DAEMON = "rsyslog"
            return True
        elif "True" in str(is_syslog_ng_running.command_result):
            self.SYSLOG_DAEMON = "syslog-ng"
            return True
        is_rsyslog_running.log_result_to_file()
        is_syslog_ng_running.log_result_to_file()
        return False

        This function is in order to determine what Syslog daemon is running on the machine (Rsyslog or Syslog-ng)
        
DataConnectors/Syslog/Sentinel_AMA_troubleshoot.py