-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Deprecate legacy logging configuration in favour of new logging system #82431
Comments
Pinging @elastic/kibana-platform (Team:Platform) |
There are a few cases left when LP logs a message. These messages aren't affected by the Kibana platform logging config, which might be confusing from the user's point of view. I'd suggest migrating these leftovers to the KP if possible.
in
|
@restrry ack, I'll circle back with you about these when I start working on this issue. |
No, but maybe we can migration some of them in 7.13 |
@restrry I'm not sure what the migration involves. Should we migrate the functionality of what these legacy logs are logging to the KP or just use the KP logger to log the messages from the LP? I'm working under the assumption that we want the logs to respond to the new logging system config (replace the legacy logger with a KP logger instance under a similar/same context). Second question: It's also not clear to me how to handle the logs in |
We should migrate the code calling the legacy logger to the Kibana Platform or delete it. If it's not possible (like in the case of
|
@restrry re: kibana/src/legacy/server/kbn_server.js Line 154 in 3fb6174
We do log a similar message from KP: kibana/src/core/server/bootstrap.ts Lines 76 to 87 in 4584a8b
The only difference is that the legacy logger outputs the content of the new LP logging config but we're not doing that in If we did want to log the new logging-specific config changes from KP, we'd probably need to move or duplicate that logging logic to the logging system and add the new config as log meta. That way we can keep the log message fairly short in |
I don't think it's necessary. I would even say undesirable: it might create a situation when Kibana logs sensitive config values. |
The |
let's just remove the flag from the script imho. This is a dev only command, after all. |
@spalger I'm nervous about editing Kibana's |
The new logging system uses a different configuration model https://github.com/elastic/kibana/blob/master/src/core/server/logging/README.mdx which is already available to the end-users but not documented nor marked as experimental. Several blockers need to be addressed #58261 before we consider the new logging system to have feature parity with the legacy version to start deprecating the legacy config.
This change affects different stakeholders inside and outside of Elastic:
LogRecord
fields: [filebeat] Upgrade Kibana module to prepare for 8.0 breaking changes beats#24136We also need to be sure to remove the
elasticsearch.logQueries
configurationThe text was updated successfully, but these errors were encountered: