I have a platform requirement to log a number of different applications living in a GKE cluster (currently logging to Stackdriver via Fluentd-gcp agent) in milliseconds. By default, Stackdriver logs the "receiveTimestamp" in nanoseconds:
receiveTimestamp: "2018-10-19T16:02:37.147760051Z"
The actual timestamp in seconds, however:
timestamp: "2018-10-19T16:02:36Z"
I know the logging internal to the containers is capturing a more detailed timestamp though:
textPayload: "2018-10-19T16:02:36,036244860+00:00 ..."
I cannot find anything online on how to enable the timestamp to log a more precise time. I have tried altering the ConfigMap for Fluentd without any success. It may be that I am altering the wrong part of that config file, but at this point, I am just hoping for some GCP expert guidance to point me in the right direction. Thanks in advance.
Cheers!