You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have encountered a problem when trying to ingest logs with the "time" field specified. For instance, when I try to ingest the log specified in the code snippet below; nothing appears in Google Cloud Logger.
However, if I run the following ruby snippet to extract the second and nano second component from the timestamp from the log above:
require 'time'
t = "2020-05-07T08:58:24.222947063Z"
puts Time.iso8601(t).tv_nsec
puts Time.iso8601(t).tv_sec
and supply the second and nanosecond component that I received from the above snippet like in the log below, then the log is getting ingested properly.
I am encountering the same issue. I put some rudimentary debug logs in the ruby code for the plugin and found that the "time" field is missing from the record when the plugin executes.
I have encountered a problem when trying to ingest logs with the "time" field specified. For instance, when I try to ingest the log specified in the code snippet below; nothing appears in Google Cloud Logger.
However, if I run the following ruby snippet to extract the second and nano second component from the timestamp from the log above:
and supply the second and nanosecond component that I received from the above snippet like in the log below, then the log is getting ingested properly.
I have had a look at the source code and I cannot understand why one works but not the other.
All help is appreciated, Thanks!
The text was updated successfully, but these errors were encountered: