Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some Kibana log messages have timestamp 1970-01-01T00:00:00Z #23419

Closed
LeeDr opened this issue Sep 21, 2018 · 3 comments
Closed

Some Kibana log messages have timestamp 1970-01-01T00:00:00Z #23419

LeeDr opened this issue Sep 21, 2018 · 3 comments
Assignees
Labels
bug Fixes for quality problems that affect the customer experience Feature:New Platform Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc

Comments

@LeeDr
Copy link

LeeDr commented Sep 21, 2018

Kibana version: 6.5.0-SNAPSHOT

Elasticsearch version: 6.5.0-SNAPSHOT

Server OS version: Ubuntu 14

Browser version: n/a

Browser OS version: n/a

Original install method (e.g. download page, yum, from source, etc.): tar.gz

Describe the bug: Some log messages must be sending 0 for the timestamp to log?

{"type":"log","@timestamp":"1970-01-01T00:00:00Z","tags":["debug","legacy","service"],"pid":1900,"message":"Kibana server is not ready yet GET:/app/kibana."}
{"type":"log","@timestamp":"1970-01-01T00:00:00Z","tags":["debug","legacy","proxy"],"pid":1900,"message":"Event is being forwarded: connection"}
{"type":"log","@timestamp":"1970-01-01T00:00:00Z","tags":["debug","legacy","service"],"pid":1900,"message":"Kibana server is not ready yet GET:/favicon.ico."}
{"type":"log","@timestamp":"2018-09-21T21:14:26Z","tags":["info","optimize"],"pid":1900,"message":"Optimization of bundles for ml, stateSessionStorageRedirect, status_page, timelion, graph, monitoring, login, logout, dashboardViewer, apm and kibana complete in 357.33 seconds"}

Steps to reproduce:

  1. watch kibana.stdout

Expected behavior: Should have current date/time timestamps

Screenshots (if relevant):

Errors in browser console (if relevant):

Provide logs and/or server output (if relevant):

Any additional context:

@LeeDr LeeDr added bug Fixes for quality problems that affect the customer experience Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc labels Sep 21, 2018
@tylersmalley
Copy link
Contributor

@elastic/kibana-platform

@epixa
Copy link
Contributor

epixa commented Sep 22, 2018

@azasypkin Think it's possible for the debug log type to have different behaviors than others? That or logs from the new platform aren't setting date properly...

@azasypkin
Copy link
Member

azasypkin commented Sep 22, 2018

Think it's possible for the debug log type to have different behaviors than others?

Nope, log level shouldn't affect the behaviour.

That or logs from the new platform aren't setting date properly...

Yeah, looks like it's. New platform uses timestamp property, but log reporter expects @timestamp. We use Date.getMilliseconds() in the core, when we should use Date.getTime().

I'm surprised I haven't noticed that earlier, my bad. Luckily new platform doesn't log anything important right now, 6.4 isn't affected and the fix is trivial - I'll take care of it on Monday.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience Feature:New Platform Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc
Projects
None yet
Development

No branches or pull requests

4 participants