We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 52e3180 commit a62cd27Copy full SHA for a62cd27
internal/collector/otel_collector_plugin.go
@@ -37,7 +37,7 @@ const (
37
// 2024-11-16T17:19:24+00:00 ---> Nov 16 17:19:24
38
timestampConversionExpression = `'EXPR(let timestamp = split(split(body, ">")[1], " ")[0]; ` +
39
`let newTimestamp = ` +
40
- `timestamp matches "(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2}):(\\d{2})([+-]\\d{2}:\\d{2}|Z)" ` +
+ `timestamp matches "(\\d{4})-(\\d{2})-(0\\d{1})T(\\d{2}):(\\d{2}):(\\d{2})([+-]\\d{2}:\\d{2}|Z)" ` +
41
`? (let utcTime = ` +
42
`date(timestamp).UTC(); utcTime.Format("Jan 2 15:04:05")) : date(timestamp).Format("Jan 02 15:04:05"); ` +
43
`split(body, ">")[0] + ">" + newTimestamp + " " + split(body, " ", 2)[1])'`
0 commit comments