From a020b402492cefa4f7b0dfa920471624df8e2bce Mon Sep 17 00:00:00 2001 From: ITO Shogo Date: Wed, 10 Jul 2024 00:38:06 +0900 Subject: [PATCH] Split unmatched file by line (#811) --- aws/logs_monitoring/steps/handlers/s3_handler.py | 1 + 1 file changed, 1 insertion(+) diff --git a/aws/logs_monitoring/steps/handlers/s3_handler.py b/aws/logs_monitoring/steps/handlers/s3_handler.py index 03614ec9..2ac32063 100644 --- a/aws/logs_monitoring/steps/handlers/s3_handler.py +++ b/aws/logs_monitoring/steps/handlers/s3_handler.py @@ -296,6 +296,7 @@ def _extract_other_logs(self): "DD_MULTILINE_LOG_REGEX_PATTERN %s did not match start of file, splitting by line", DD_MULTILINE_LOG_REGEX_PATTERN, ) + self.data_store.data = self.data_store.data.splitlines() for line in self.data_store.data: yield self._format_event(line)