-
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
[core.logging] Request/Response logging cleanup tasks. #90457
Comments
Pinging @elastic/kibana-core (Team:Core) |
Elasticsearch has to use (3) because it is a
How many places in the codebase rely on this? It can be an option requiring the least amount of effort. |
@restrry
I don't see why we couldn't uncomment by default, and of course this would be a really simple solution. I suppose I just hadn't considered that as an option since there isn't any precedent for it. Although this wouldn't work for folks who don't use
AFAIK we aren't relying on the meta being in the new logging format anywhere at all -- the only place I can think of is filebeat, but it's still using legacy log fields which wouldn't be affected, so I'm +1 for this idea as well. I think the larger feature of default/"preset" configs would be easier to address in 8.x anyway once we get rid of the legacy infrastructure, so if we're comfortable with simply removing the meta from the default pattern as an interim solution, I'd be okay with that. |
How is
In this case, removing looks like the optimal option as it doesn't require significant work.
The problem with this solution that users can configure a path to a custom kibana/packages/kbn-utils/src/path/index.ts Lines 16 to 28 in e9b9bcc
We'd have to introduce another file dedicated to logging configuration. |
Yeah it is on my list to raise this with them, I plan to open an issue and will ping the team.
Good point, hadn't considered that. So that's two strikes against this idea:
++ Agreed, this feels like the best choice at this point. And I think if we wanted to, we could revisit option (3) in 8.0 once the legacy system is removed. I will move that to a separate issue. |
Opened two related issues:
To summarize the remaining scope of this issue:
|
In #87939 we merged support for request/response logging to the KP. As that PR was already quite large, there are a few cleanup tasks that we wanted to address separately:
1. Clean up default pattern layout
The response logs contain a lot of meta which clutters up the console quite a bit and makes the logs difficult to scan, as the default log pattern places the
meta
before themessage
. Here's an example:We'd like to clean these up by default, and discussed a few options for how we might do this:
meta
property from default pattern layoutmeta
property to the end of default pattern layout (doesn't decrease clutter, but makes it easier to scan the logs as the message appears first)kibana.yml
that we ship with Kibana (would require users to uncomment if they choose to use them)Overall (3) seems ideal to me because it provides the most flexibility, however creating default appender configurations poses some challenges:
LegacyObjectToConfigAdapter
as well (might be fine as a temporary solution until it is removed in 8.0?)2. Improve get_payload_bytes
The way we are calculating payload bytes can be continually improved, but there are a few immediate things we should address:
cc @restrry Any other thoughts?
The text was updated successfully, but these errors were encountered: