-
Notifications
You must be signed in to change notification settings - Fork 205
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
Inconsistent format of error field in JSON logs #3335
Comments
Can we please fix this?
|
For now I'm going to just ignore these fields in beacon node logs: https://github.com/status-im/infra-hq/commit/d0defdcf |
the log names are "free form", there's no standard - in an application composed of several libraries, it's difficult to keep all logs in sync globally (different libraries, different devs etc) |
So couldn't they just be stringified into a single text field? I don't know of a way to index fields that have mixed type. What I could do is apply |
can you do this only for the conflicty fields? |
No, I don't think it's that clever. |
sgtm |
it'll still index message, right? |
because sometimes errors contain error-specific data beyond a string, and ideally that should be captured in a structured way |
A field that's not indexed is still available in the store, just won't be easily or quickly searchable. |
One idea I had, is that maybe I could force these fields to be strings on Logstash level, that way they can be indexed. I'll see about that next week. |
Most probably coming from
libp2p expects that conn event handlers don't fail, but errors are not handled properly in this conn handler Shouldn't cause anything bad though |
I though I could use
|
I've added configuration in Logstash to stringify
Which results in a string that's unnecessarily quotes bare strings, but at least any format of error will be parsed and indexed: What do you think @arnetheduck ? |
I think this can be closed. Thanks. |
Similar as in #2287, #2252, and #2283 I've found another JSON field in logs that causes Logstash parsing errors:
Log examples:
Once as string, once as object.
Also, why is there both
err
anderror
used in log messages?The text was updated successfully, but these errors were encountered: