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
TSVB Make mustache template field accessors consistent #59435
Comments
I found that the problem arise when user.name is indexed as a plain field instead of an object. "user.name" : "Test" make this error appears, while { "user" : { "name" : "Test" }} does not. |
Pinging @elastic/kibana-app (Team:KibanaApp) |
Anyone here? |
@fpompermaier could you check whether this syntax works for you:
|
Right now I can't..I have to set up an empty local Kibana and test it..I'll come back to you in some days.. |
{{this.[user.name]}} works if I index documents using the flat version (i.e. "user.name" : "xxx"). |
When compiling these templates TSVB takes the
The search will return the following:
I don't think TSVB should preprocess If you actually have data coming in both ways, you can normalize it in Elasticsearch by defining an ingest pipeline using the |
Yes they are 2 different structures but this is how elastic works..you don't see any difference if you index in one way or the other. Moreover the dot expand processor does not have a Logstash equivalent at the moment (the fact that the ingestion pipelines and Logstash are diverging is VERY BAD IMHO..I also complained about this on the ES forum [1] but it looks like I'm the only one concerned about that) |
It's not a difference for the indexed fields, but TSVB annotations are not operating on the indexed values, but on the raw I will change the title to reflect the problem we are seeing here. |
@flash1293 - is this bug/ER related to the issue seen in this discuss post: https://discuss.elastic.co/t/fields-and-row-template-in-annotations-tsvb/272433 |
@richcollier Answered on the discuss post, this is related but your case is actually solvable. |
Thank you for contributing to this issue, however, we are closing this issue due to inactivity as part of a backlog grooming effort. If you believe this feature/bug should still be considered, please reopen with a comment. |
Kibana version:
7.5.0
Elasticsearch version:
7.5.0
Server OS version:
Centos 7
Browser version:
Chrome 80.0.3987.122 (Official Build) (64-bit) or Firefox 72.0.2 (64-bit)
Browser OS version:
Windows 10
Original install method (e.g. download page, yum, from source, etc.):
yum
Describe the bug:
On TSVB Annotations I can't use fields with dots (e.g. user.name)
Steps to reproduce:
Expected behavior:
See the value of user.name
Screenshots (if relevant):
Any additional context:
If I do the same but using fields that does not contain a dot it works
The text was updated successfully, but these errors were encountered: