Replies: 1 comment
-
Time parsing used in regex is |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
What is a problem?
I am using below method to convert the time to zulu format but i observed there is 3-7 seconds of time difference in conversion
Time.at(time.to_r).utc.strftime('%Y-%m-%dT%H:%M:%S.%LZ')
the time is 2025-05-12T04:40:27.452265 and after above statement the conversion is
Time Format(required): %FT%T.%N
2025-05-12T04:40:29.877Z
Can anybody help why there is few seconds difference after conversion? Is there any other way to convert time to other format?
Describe the configuration of Fluentd
Any configuration with below filter
<filter *>
@type record_modifier
remove_keys dummy
dummy ${record['convertedtimestamp'] = Time.at(time.to_r).utc.strftime('%Y-%m-%dT%H:%M:%S.%LZ')}
Describe the logs of Fluentd
There is no log error
Environment
Beta Was this translation helpful? Give feedback.
All reactions