-
Notifications
You must be signed in to change notification settings - Fork 18
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
Override name of log record field #45
Comments
Hi. Do you mean that you would like your logs to look like:
If so, you can do that by tweaking the
If you'd prefer having "correlation_id" instead of "cid", you can do so by changing the
Does that answer your request? |
Hi, I know all this but unfortunately, we do not process log files using I can create PR to illustrate to you what we want. |
I am missing a piece of information in your setup. How does changing the name of the attribute in the LogRecord, affects what is sent by Logstash? Do you use a custom handler that automatically sends all attributes of the LogRecord, something like this:
That's indeed what python-logstash seems to do: https://github.com/vklochan/python-logstash/blob/a8be251ad9fc102af668c38a5397515b0804da75/logstash/formatter.py#L40-L45. If so, then your pull request #46 seems right. If you could add some documentation for the setting and a test, that would be great. :) |
@dbaty exactly we are using Thanks. |
I would like to request feature to being able to override log record attribute using setting.
We use kibana and would like to see something more meaningful rather than
cid
.The text was updated successfully, but these errors were encountered: