Skip to content

gcloud logging not handling correctly entry timestamp #1270

@idoshamun

Description

@idoshamun

I am trying to send logs through my application server using GCP logging api.
When providing a timestamp to the entry I can't find it in the logs viewer but when omitting it I can easily find it.
This is my snippet for creating a log entry:

const entry = log.entry(resource, {
    delegate: 'ido'
});
entry.severity = 'INFO';
entry.timestamp = new Date();
entry.labels = {
    tag1: 'true',
    tag2: 'true'
};

Metadata

Metadata

Assignees

Labels

api: loggingIssues related to the Cloud Logging API.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions