Logs with day entry or separate files per day

My Kibana server is running over several days, and after I found out an error in one of my plugins, I was setting out to backtrack all the times it failed. Only then I realized that the logs do not contain any dates. I have searched through the configuration but cannot find anywhere I can change the format of Kibana's logs.

Is there any way to change the format of Kibana's logs to also contain the date, not only the time?

I think it depends on how you're running Kibana. I'm running on CentOS 7 with Kibana installed from rpm packages and my logs have timestamps like this;

[vagrant@localhost ~]$ tail /var/log/kibana/kibana.stdout 
{"type":"log","@timestamp":"2020-01-30T16:00:38Z","tags":["debug","plugins","usageCollection"],"pid":11419,"message":"Fetching data from kibana_stats collector"}
{"type":"log","@timestamp":"2020-01-30T16:00:38Z","tags":["debug","plugins","usageCollection"],"pid":11419,"message":"Fetching data from kibana_settings collector"}
{"type":"log","@timestamp":"2020-01-30T16:00:38Z","tags":["debug","plugins","usageCollection"],"pid":11419,"message":"not sending [kibana_settings] monitoring document because [undefined] is null or invalid."}
{"type":"log","@timestamp":"2020-01-30T16:00:38Z","tags":["debug","monitoring","kibana-monitoring"],"pid":11419,"message":"Uploading bulk stats payload to the local cluster"}
{"type":"log","@timestamp":"2020-01-30T16:00:38Z","tags":["debug","monitoring","kibana-monitoring"],"pid":11419,"message":"Uploaded bulk stats payload to the local cluster"}
{"type":"log","@timestamp":"2020-01-30T16:00:39Z","tags":["debug","monitoring","kibana-monitoring"],"pid":11419,"message":"Received Kibana Ops event data"}
{"type":"log","@timestamp":"2020-01-30T16:00:39Z","tags":["debug","monitoring","kibana-monitoring"],"pid":11419,"message":"Received Kibana Ops event data"}
{"type":"log","@timestamp":"2020-01-30T16:00:39Z","tags":["debug","monitoring","kibana-monitoring"],"pid":11419,"message":"Received Kibana Ops event data"}
{"type":"log","@timestamp":"2020-01-30T16:00:39Z","tags":["debug","monitoring","kibana-monitoring"],"pid":11419,"message":"Received Kibana Ops event data"}
{"type":"log","@timestamp":"2020-01-30T16:00:40Z","tags":["plugin","debug"],"pid":11419,"message":"Checking Elasticsearch version"}

How are you running Kibana?

This is how my logs look in darwin (OS X)

 log   [15:54:13.351] [info][status][plugin:reporting@7.6.0] Status changed from uninitialized to green - Ready
  log   [15:54:13.382] [info][listening] Server running at http://localhost:5601
  log   [15:54:13.534] [info][server][Kibana][http] http server running at http://localhost:5601

I changed my configuration for logging.json: true and then I get like @LeeDr. Might be that the "non-json" output is dependent on the system still. I run my using Ubuntu, and I think I installed the Elastic stack using apt-get.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.