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
Explore: Prettify json log #18522
Comments
The absence of this feature is the only reason we still use Kibana for reading logs. When this feature gets implemented it would mean we could use just Grafana, which would be great. |
Would this issue also include a mechanism for selecting just certain fields out of the json object? Taking the above example being able to add to the query something like |
+1 @slim-bean would be awesome |
+1 Thie is actually pretty important for readability. I see that the TODO backlog is already pretty huge but hopes to see this landing soon |
Being table to select dispayed fields would be awesome. Don't know if this could be done also for Loki datasource ? One raison we cannot switch from Kibana to Explore/Logpanel on grafana is this missing fields selection feature :( |
I think that it would need a full text indexing which is not in the scope
of Loki. When I upgraded to lastest grafana I finally get the json being
pretty printed.
Le dim. 19 janv. 2020 à 23:22, JC Dauchy <notifications@github.com> a
écrit :
… Being table to select dispayed fields would be awesome. Don't if this
could be done also for Loki datasource ?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#18522?email_source=notifications&email_token=AA2SDKONZ57UHPJSX7QB3E3Q6R43XA5CNFSM4ILEQHJKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJKWE4I#issuecomment-576021105>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA2SDKLP3S6TTJQPYPG2KM3Q6R43XANCNFSM4ILEQHJA>
.
|
I understand that loki uses only labels as "index". But why do you need to display all labels and fields as they seem to be already "parsed" as show in the details of each line ? |
There are two reasons why we still need to use Kibana: |
+1 I'd be really good to have this feature. |
I made a POC/Proposal/discussion starter for something like that in pr #26178 |
Also interesting issue with nested string fields that user also may want formatted #27964 |
Any movement on this issue? It's makes debugging Java pretty painful... |
Lack of that feature is a deal breaker for our company to move from Sumo Logic. |
Any updates on this feature? This is really needed for our company. Reading java stack traces is almost impossible without some kind of formatting. |
I also need this ASAP! |
Any updates on this? Reading Java logs in Grafana is not fun |
Our team needs this! It's impossible to read the json output we have. We end up having to copy and paste the json into some other tool. We're wasting a ton of time and adding frustration! |
So how about this ? |
As a first step we can try to parse and prettify the first level of each log entry. We can then see what would be needed to better improve readability for log entries. |
I think that we could, as a first step, just check if message is JSON.parsable. And if it is, we can use Not sure if any library would be faster than these native js functions. Also, not sure if we want to do it automatically for all parsable messages, or if we want to add button/switch. |
What would you like to be added:
Some way to pretty print the searchable json logs in the explore ui. Either through an option in the configuration menu or a checkbox in the explore view itself to enable it globally for all json data.
Why is this needed:
Reading big chunks of json data is hard and its easy to get lost in it. If there was a way to prettify the data it would be much easier to review and find the thing that you are searching for in the log line.
Example:
Non prettified data:
Prettified data:
One of the problems with this is that the log field has the log data with escaped
"
characters. This makes the inner json structure harder to prettify as one needs to take that in consideration when it is prettified.Prettified data with unescaped
"
:The text was updated successfully, but these errors were encountered: