From ca248917bcd8651c5f73d274a0d72d172fe51bb1 Mon Sep 17 00:00:00 2001 From: Raj Nishtala Date: Tue, 8 Oct 2024 18:43:56 -0400 Subject: [PATCH] fix(timestamp): Fix the timestamp locator for log sources --- .../testdata/goldenfile/terraform/all_fields.output.yaml | 8 ++++---- .../goldenfile/terraform/collector_fields.output.yaml | 8 ++++---- .../testdata/goldenfile/terraform/default.output.yaml | 8 ++++---- .../terraform/disable_default_metrics.output.yaml | 8 ++++---- .../goldenfile/terraform/disabled_dashboards.output.yaml | 8 ++++---- .../goldenfile/terraform/disabled_monitors.output.yaml | 8 ++++---- .../testdata/goldenfile/terraform/logs_fields.output.yaml | 8 ++++---- .../monitors_with_email_notifications.output.yaml | 8 ++++---- .../terraform/monitors_with_single_email.output.yaml | 8 ++++---- .../goldenfile/terraform/strip_extrapolation.output.yaml | 8 ++++---- .../terraform/tracing-metrics-disabled.output.yaml | 8 ++++---- 11 files changed, 44 insertions(+), 44 deletions(-) diff --git a/tests/helm/testdata/goldenfile/terraform/all_fields.output.yaml b/tests/helm/testdata/goldenfile/terraform/all_fields.output.yaml index a32a0e408..c8fe20e7c 100644 --- a/tests/helm/testdata/goldenfile/terraform/all_fields.output.yaml +++ b/tests/helm/testdata/goldenfile/terraform/all_fields.output.yaml @@ -597,7 +597,7 @@ data: "default_date_formats": [ { "format": "epoch", - "locator": "\\\"timestamp\\\":(\\\\d+)" + "locator": "\"timestamp\":(\\d+)" } ] } @@ -609,7 +609,7 @@ data: "default_date_formats": [ { "format": "epoch", - "locator": "\\\"timestamp\\\":(\\\\d+)" + "locator": "\"timestamp\":(\\d+)" } ] } @@ -758,7 +758,7 @@ data: "default_date_formats": [ { "format": "epoch", - "locator": "\\\"timestamp\\\":(\\\\d+)" + "locator": "\"timestamp\":(\\d+)" } ], "name": "events" @@ -768,7 +768,7 @@ data: "default_date_formats": [ { "format": "epoch", - "locator": "\\\"timestamp\\\":(\\\\d+)" + "locator": "\"timestamp\":(\\d+)" } ], "name": "logs" diff --git a/tests/helm/testdata/goldenfile/terraform/collector_fields.output.yaml b/tests/helm/testdata/goldenfile/terraform/collector_fields.output.yaml index 7023674cf..d86ee7754 100644 --- a/tests/helm/testdata/goldenfile/terraform/collector_fields.output.yaml +++ b/tests/helm/testdata/goldenfile/terraform/collector_fields.output.yaml @@ -597,7 +597,7 @@ data: "default_date_formats": [ { "format": "epoch", - "locator": "\\\"timestamp\\\":(\\\\d+)" + "locator": "\"timestamp\":(\\d+)" } ] } @@ -609,7 +609,7 @@ data: "default_date_formats": [ { "format": "epoch", - "locator": "\\\"timestamp\\\":(\\\\d+)" + "locator": "\"timestamp\":(\\d+)" } ] } @@ -707,7 +707,7 @@ data: "default_date_formats": [ { "format": "epoch", - "locator": "\\\"timestamp\\\":(\\\\d+)" + "locator": "\"timestamp\":(\\d+)" } ], "name": "events" @@ -717,7 +717,7 @@ data: "default_date_formats": [ { "format": "epoch", - "locator": "\\\"timestamp\\\":(\\\\d+)" + "locator": "\"timestamp\":(\\d+)" } ], "name": "logs" diff --git a/tests/helm/testdata/goldenfile/terraform/default.output.yaml b/tests/helm/testdata/goldenfile/terraform/default.output.yaml index 2352e9bf1..83165842a 100644 --- a/tests/helm/testdata/goldenfile/terraform/default.output.yaml +++ b/tests/helm/testdata/goldenfile/terraform/default.output.yaml @@ -597,7 +597,7 @@ data: "default_date_formats": [ { "format": "epoch", - "locator": "\\\"timestamp\\\":(\\\\d+)" + "locator": "\"timestamp\":(\\d+)" } ] } @@ -609,7 +609,7 @@ data: "default_date_formats": [ { "format": "epoch", - "locator": "\\\"timestamp\\\":(\\\\d+)" + "locator": "\"timestamp\":(\\d+)" } ] } @@ -707,7 +707,7 @@ data: "default_date_formats": [ { "format": "epoch", - "locator": "\\\"timestamp\\\":(\\\\d+)" + "locator": "\"timestamp\":(\\d+)" } ], "name": "events" @@ -717,7 +717,7 @@ data: "default_date_formats": [ { "format": "epoch", - "locator": "\\\"timestamp\\\":(\\\\d+)" + "locator": "\"timestamp\":(\\d+)" } ], "name": "logs" diff --git a/tests/helm/testdata/goldenfile/terraform/disable_default_metrics.output.yaml b/tests/helm/testdata/goldenfile/terraform/disable_default_metrics.output.yaml index 180a9068c..f519147f9 100644 --- a/tests/helm/testdata/goldenfile/terraform/disable_default_metrics.output.yaml +++ b/tests/helm/testdata/goldenfile/terraform/disable_default_metrics.output.yaml @@ -597,7 +597,7 @@ data: "default_date_formats": [ { "format": "epoch", - "locator": "\\\"timestamp\\\":(\\\\d+)" + "locator": "\"timestamp\":(\\d+)" } ] } @@ -609,7 +609,7 @@ data: "default_date_formats": [ { "format": "epoch", - "locator": "\\\"timestamp\\\":(\\\\d+)" + "locator": "\"timestamp\":(\\d+)" } ] } @@ -702,7 +702,7 @@ data: "default_date_formats": [ { "format": "epoch", - "locator": "\\\"timestamp\\\":(\\\\d+)" + "locator": "\"timestamp\":(\\d+)" } ], "name": "events" @@ -712,7 +712,7 @@ data: "default_date_formats": [ { "format": "epoch", - "locator": "\\\"timestamp\\\":(\\\\d+)" + "locator": "\"timestamp\":(\\d+)" } ], "name": "logs" diff --git a/tests/helm/testdata/goldenfile/terraform/disabled_dashboards.output.yaml b/tests/helm/testdata/goldenfile/terraform/disabled_dashboards.output.yaml index 2352e9bf1..83165842a 100644 --- a/tests/helm/testdata/goldenfile/terraform/disabled_dashboards.output.yaml +++ b/tests/helm/testdata/goldenfile/terraform/disabled_dashboards.output.yaml @@ -597,7 +597,7 @@ data: "default_date_formats": [ { "format": "epoch", - "locator": "\\\"timestamp\\\":(\\\\d+)" + "locator": "\"timestamp\":(\\d+)" } ] } @@ -609,7 +609,7 @@ data: "default_date_formats": [ { "format": "epoch", - "locator": "\\\"timestamp\\\":(\\\\d+)" + "locator": "\"timestamp\":(\\d+)" } ] } @@ -707,7 +707,7 @@ data: "default_date_formats": [ { "format": "epoch", - "locator": "\\\"timestamp\\\":(\\\\d+)" + "locator": "\"timestamp\":(\\d+)" } ], "name": "events" @@ -717,7 +717,7 @@ data: "default_date_formats": [ { "format": "epoch", - "locator": "\\\"timestamp\\\":(\\\\d+)" + "locator": "\"timestamp\":(\\d+)" } ], "name": "logs" diff --git a/tests/helm/testdata/goldenfile/terraform/disabled_monitors.output.yaml b/tests/helm/testdata/goldenfile/terraform/disabled_monitors.output.yaml index 2352e9bf1..83165842a 100644 --- a/tests/helm/testdata/goldenfile/terraform/disabled_monitors.output.yaml +++ b/tests/helm/testdata/goldenfile/terraform/disabled_monitors.output.yaml @@ -597,7 +597,7 @@ data: "default_date_formats": [ { "format": "epoch", - "locator": "\\\"timestamp\\\":(\\\\d+)" + "locator": "\"timestamp\":(\\d+)" } ] } @@ -609,7 +609,7 @@ data: "default_date_formats": [ { "format": "epoch", - "locator": "\\\"timestamp\\\":(\\\\d+)" + "locator": "\"timestamp\":(\\d+)" } ] } @@ -707,7 +707,7 @@ data: "default_date_formats": [ { "format": "epoch", - "locator": "\\\"timestamp\\\":(\\\\d+)" + "locator": "\"timestamp\":(\\d+)" } ], "name": "events" @@ -717,7 +717,7 @@ data: "default_date_formats": [ { "format": "epoch", - "locator": "\\\"timestamp\\\":(\\\\d+)" + "locator": "\"timestamp\":(\\d+)" } ], "name": "logs" diff --git a/tests/helm/testdata/goldenfile/terraform/logs_fields.output.yaml b/tests/helm/testdata/goldenfile/terraform/logs_fields.output.yaml index be1e22e8a..6b1e0d1a3 100644 --- a/tests/helm/testdata/goldenfile/terraform/logs_fields.output.yaml +++ b/tests/helm/testdata/goldenfile/terraform/logs_fields.output.yaml @@ -597,7 +597,7 @@ data: "default_date_formats": [ { "format": "epoch", - "locator": "\\\"timestamp\\\":(\\\\d+)" + "locator": "\"timestamp\":(\\d+)" } ] } @@ -609,7 +609,7 @@ data: "default_date_formats": [ { "format": "epoch", - "locator": "\\\"timestamp\\\":(\\\\d+)" + "locator": "\"timestamp\":(\\d+)" } ] } @@ -707,7 +707,7 @@ data: "default_date_formats": [ { "format": "epoch", - "locator": "\\\"timestamp\\\":(\\\\d+)" + "locator": "\"timestamp\":(\\d+)" } ], "name": "events" @@ -717,7 +717,7 @@ data: "default_date_formats": [ { "format": "epoch", - "locator": "\\\"timestamp\\\":(\\\\d+)" + "locator": "\"timestamp\":(\\d+)" } ], "name": "logs" diff --git a/tests/helm/testdata/goldenfile/terraform/monitors_with_email_notifications.output.yaml b/tests/helm/testdata/goldenfile/terraform/monitors_with_email_notifications.output.yaml index 2352e9bf1..83165842a 100644 --- a/tests/helm/testdata/goldenfile/terraform/monitors_with_email_notifications.output.yaml +++ b/tests/helm/testdata/goldenfile/terraform/monitors_with_email_notifications.output.yaml @@ -597,7 +597,7 @@ data: "default_date_formats": [ { "format": "epoch", - "locator": "\\\"timestamp\\\":(\\\\d+)" + "locator": "\"timestamp\":(\\d+)" } ] } @@ -609,7 +609,7 @@ data: "default_date_formats": [ { "format": "epoch", - "locator": "\\\"timestamp\\\":(\\\\d+)" + "locator": "\"timestamp\":(\\d+)" } ] } @@ -707,7 +707,7 @@ data: "default_date_formats": [ { "format": "epoch", - "locator": "\\\"timestamp\\\":(\\\\d+)" + "locator": "\"timestamp\":(\\d+)" } ], "name": "events" @@ -717,7 +717,7 @@ data: "default_date_formats": [ { "format": "epoch", - "locator": "\\\"timestamp\\\":(\\\\d+)" + "locator": "\"timestamp\":(\\d+)" } ], "name": "logs" diff --git a/tests/helm/testdata/goldenfile/terraform/monitors_with_single_email.output.yaml b/tests/helm/testdata/goldenfile/terraform/monitors_with_single_email.output.yaml index 2352e9bf1..83165842a 100644 --- a/tests/helm/testdata/goldenfile/terraform/monitors_with_single_email.output.yaml +++ b/tests/helm/testdata/goldenfile/terraform/monitors_with_single_email.output.yaml @@ -597,7 +597,7 @@ data: "default_date_formats": [ { "format": "epoch", - "locator": "\\\"timestamp\\\":(\\\\d+)" + "locator": "\"timestamp\":(\\d+)" } ] } @@ -609,7 +609,7 @@ data: "default_date_formats": [ { "format": "epoch", - "locator": "\\\"timestamp\\\":(\\\\d+)" + "locator": "\"timestamp\":(\\d+)" } ] } @@ -707,7 +707,7 @@ data: "default_date_formats": [ { "format": "epoch", - "locator": "\\\"timestamp\\\":(\\\\d+)" + "locator": "\"timestamp\":(\\d+)" } ], "name": "events" @@ -717,7 +717,7 @@ data: "default_date_formats": [ { "format": "epoch", - "locator": "\\\"timestamp\\\":(\\\\d+)" + "locator": "\"timestamp\":(\\d+)" } ], "name": "logs" diff --git a/tests/helm/testdata/goldenfile/terraform/strip_extrapolation.output.yaml b/tests/helm/testdata/goldenfile/terraform/strip_extrapolation.output.yaml index 262742544..c5012e221 100644 --- a/tests/helm/testdata/goldenfile/terraform/strip_extrapolation.output.yaml +++ b/tests/helm/testdata/goldenfile/terraform/strip_extrapolation.output.yaml @@ -598,7 +598,7 @@ data: "default_date_formats": [ { "format": "epoch", - "locator": "\\\"timestamp\\\":(\\\\d+)" + "locator": "\"timestamp\":(\\d+)" } ] } @@ -610,7 +610,7 @@ data: "default_date_formats": [ { "format": "epoch", - "locator": "\\\"timestamp\\\":(\\\\d+)" + "locator": "\"timestamp\":(\\d+)" } ] } @@ -708,7 +708,7 @@ data: "default_date_formats": [ { "format": "epoch", - "locator": "\\\"timestamp\\\":(\\\\d+)" + "locator": "\"timestamp\":(\\d+)" } ], "name": "events" @@ -718,7 +718,7 @@ data: "default_date_formats": [ { "format": "epoch", - "locator": "\\\"timestamp\\\":(\\\\d+)" + "locator": "\"timestamp\":(\\d+)" } ], "name": "logs" diff --git a/tests/helm/testdata/goldenfile/terraform/tracing-metrics-disabled.output.yaml b/tests/helm/testdata/goldenfile/terraform/tracing-metrics-disabled.output.yaml index 2352e9bf1..83165842a 100644 --- a/tests/helm/testdata/goldenfile/terraform/tracing-metrics-disabled.output.yaml +++ b/tests/helm/testdata/goldenfile/terraform/tracing-metrics-disabled.output.yaml @@ -597,7 +597,7 @@ data: "default_date_formats": [ { "format": "epoch", - "locator": "\\\"timestamp\\\":(\\\\d+)" + "locator": "\"timestamp\":(\\d+)" } ] } @@ -609,7 +609,7 @@ data: "default_date_formats": [ { "format": "epoch", - "locator": "\\\"timestamp\\\":(\\\\d+)" + "locator": "\"timestamp\":(\\d+)" } ] } @@ -707,7 +707,7 @@ data: "default_date_formats": [ { "format": "epoch", - "locator": "\\\"timestamp\\\":(\\\\d+)" + "locator": "\"timestamp\":(\\d+)" } ], "name": "events" @@ -717,7 +717,7 @@ data: "default_date_formats": [ { "format": "epoch", - "locator": "\\\"timestamp\\\":(\\\\d+)" + "locator": "\"timestamp\":(\\d+)" } ], "name": "logs"