def _factor_client(self, use_logging): return pylogbeat.PyLogBeatClient(host=None, port=None, timeout=None, ssl_enable=False, ssl_verify=True, keyfile=None, certfile=None, ca_certs=None, use_logging=use_logging)
def _factor_client(self): return pylogbeat.PyLogBeatClient(host=SOCKET_HOST, port=SOCKET_PORT, timeout=SOCKET_TIMEOUT, ssl_enable=False, ssl_verify=True, keyfile=None, certfile=None, ca_certs=None, use_logging=True)
def _factor_client(self, ssl_enable, ssl_verify=True, timeout=None): return pylogbeat.PyLogBeatClient( host=SOCKET_HOST, port=SOCKET_PORT, timeout=timeout, ssl_enable=ssl_enable, ssl_verify=ssl_verify, keyfile=SSL_KEYFILE, certfile=SSL_CERTFILE, ca_certs=SSL_CACERTS, use_logging=True)
def send(self, events, use_logging=False): client = pylogbeat.PyLogBeatClient(use_logging=use_logging, **self._client_arguments) with client: for events_subset in ichunked(events, self._batch_size): client.send(events_subset)