From c2881050e9624bb906238892c604868fed161027 Mon Sep 17 00:00:00 2001 From: J Stickler Date: Mon, 17 Jun 2024 14:10:09 -0400 Subject: [PATCH] docs: Update timestamp topic (#13207) (cherry picked from commit ae22f396b7e05625b44a6a5d9ac1d6e8a26297c2) --- docs/sources/send-data/promtail/stages/timestamp.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/sources/send-data/promtail/stages/timestamp.md b/docs/sources/send-data/promtail/stages/timestamp.md index 2512fedaa60f0..f1b08143fd579 100644 --- a/docs/sources/send-data/promtail/stages/timestamp.md +++ b/docs/sources/send-data/promtail/stages/timestamp.md @@ -89,6 +89,11 @@ should be used in the custom format. | Timezone offset | `-0700`, `-070000` (with seconds), `-07`, `07:00`, `-07:00:00` (with seconds) | | Timezone ISO-8601 | `Z0700` (Z for UTC or time offset), `Z070000`, `Z07`, `Z07:00`, `Z07:00:00` | +In order to correctly format the time, for the timestamp `2006/01/02 03:04:05.000`: + +- If you want a 24-hour format you should be using `15:04:0.000`. +- If you want a 12-hour format you should be using either `3:04:05.000 PM` or `03:04:05.000 PM`. + ### Action on Failure The `action_on_failure` setting defines which action should be taken by the