Open nhoad opened 5 years ago
Hi @nathan-hoad, thank you for your input. We'll look into how best to accommodate your request.
@nhoad nhoad have you later managed to render new lines in json inside humio?
I haven't, no.
Neither have I!
Closest I can get is repeating each event, with a single traceback line in each event.
splitString(field=traceback, by="\n", as=traceback)
| split(traceback)
| traceback != ""
| select([message, traceback])
| sort(logSeqNum, order=asc)
But it's pretty ugly.
Eg:
message, traceback
this problem happened, Traceback (most recent call last):
this problem happened, File "<stdin>", line 2, in <module>
this problem happened, Exception: no
I'm using JSON logging, with a JSON object per line. For example:
And I'm using the following query to make it more readable:
The UI at the moment renders fields with newlines as though they have no newlines, so e.g. the traceback field above is rendered as a single line, which makes following errors difficult. It would be great if there was a filter or something that could be applied to fields to render literal newlines. This way the traceback field from the example JSON would render in Humio like this:
Which would make it much easier to read.