-
Notifications
You must be signed in to change notification settings - Fork 8.5k
Description
Kibana version: 7.3
Elasticsearch version: -
Server OS version: macOS 10.14.6
Browser version: -
Browser OS version: -
Original install method (e.g. download page, yum, from source, etc.): download page
Describe the bug:
Sending the SIGHUP signal to the Kibana process should reload the logging configuration and start logging to the new location. The logging configuration is not reloaded on macOS, but Kibana monitoring reloads properly.
Steps to reproduce:
- Configure Kibana (no other settings):
logging.dest: /path/to/kibana.log
pid.file: /path/to/kibana.pid
- Start Kibana via
./bin/kibana - Observe logs flowing into
kibana.log - Move log file to
kibana.oldand observe logs still flowing into same file (as expected) - Send sighup by
kill -HUP $(cat kibana.pid) - The following message is logged:
{"type":"log","@timestamp":"2019-08-19T04:33:57Z","tags":["info","monitoring","kibana-monitoring"],"pid":42073,"message":"Re-initializing Kibana Monitoring due to SIGHUP"}
- Logs continue to flow into
kibana.old
Expected behavior:
It should log to kibana.log again and log Reloading logging configuration due to SIGHUP. because of src/core/server/bootstrap.ts:91
This test should make sure it's happening: https://github.com/elastic/kibana/blob/master/src/cli/serve/integration_tests/reload_logging_config.test.js
Not sure why it doesn't fail.