def METHOD_NAME(self, entry):
    if (
        entry["eventid"] == "cowrie.login.success"
        or entry["eventid"] == "cowrie.login.failed"
    ):
        date = dateutil.parser.parse(entry["timestamp"])
        self.batch.append(
            {
                "date": str(date.date()),
                "time": date.time().strftime("%H:%M:%S"),
                "timezone": time.strftime("%z"),
                "source_ip": entry["src_ip"],
                "user": entry["username"],
                "password": entry["password"],
            }
        )
        if len(self.batch) >= self.batch_size:
            batch_to_send = self.batch
            self.submit_entries(batch_to_send)
            self.batch = []