Hi everybody!
I need to align log fields vertically on a log dashboard. In my case, since the 3rd field differs on length, message strings are not aligned.
At first I thought I can make it through regex but there’s no way to do that without getting the length of the string. So, I guess we need a template function for that. Or anyone have a solution, thanks a lot!
I already opened up an issue on github Template function for making string on exact length by adding space · Issue #34443 · grafana/grafana · GitHub
As it splits the rows it’s not gonna be good on style, do you think is there a way to get string length on grafana, maybe I can try something like;
add x spaces at the end of the string,
x = (maximum length of that field) - (length of the string)
that way,
Thanks!
One thing, it’s not working while “wrap lines” option is disabled. I’m disabling it for showing logs line by line. Is it something on purpose or we can fix that?