def send_message_local(self, port, amount):
        """
        Generate local CEF events in a given amount to a given port
        :param port: A destination port to send the events
        :param amount: The amount of events to send
        """
        try:
            for index in range(0, amount):
                command_tokens = ["logger", "-p", "local4.warn", "-t", self.IDENT_NAME[STREAM_SCENARIO],
                                  self.STREAM_MESSAGE[STREAM_SCENARIO], "--rfc3164", "-P", str(port), "-n", "127.0.0.1"]
                logger = subprocess.Popen(command_tokens, stdout=subprocess.PIPE)
                o, e = logger.communicate()
                if e is not None:
                    print("Error could not send mock message")
        except OSError:
            print(self.LOGGER_NOT_INSTALLED_ERROR_MESSAGE)

        Generate local CEF events in a given amount to a given port
        :param port: A destination port to send the events
        :param amount: The amount of events to send
        
DataConnectors/Syslog/Sentinel_AMA_troubleshoot.py