marrel
April 15, 2020, 7:11pm
1
Hello!
I have developed a graph in Timelion but I faced a problem with the query. I do not get any line.
.es(index=machinebeat*, timefield=@timestamp, q='topic: product/group_a/*').label('Group A')
The query should collect all products from group A.
Topic field contains the following values:
product/group_a/102
product/group_a/506
product/group_a/964
product/group_b/102 .. etc
Is my query correct? Any advice?
Thank you in advance!
Well the first question would be what kind of field is the topic
field? Is it analyzed or not?
marrel
April 21, 2020, 9:00am
3
The mapping for the topic
field is as following:
"prdcat" : {
"properties" : {
"topic" : {
"type" : "text",
"fields" : {
"keyword" : {
"type" : "keyword"
}
}
}
}
}
Can you try with the field topic.keyword
?
I deleted the index, in order to change the mapping and use the "keyword" analyzer for my case. then I used:
.es(index=machinebeat*, timefield=@timestamp, q=topic:product\/group_a\/*).label('Group A')
Now it is working. Thank you for your support.
1 Like
system
(system)
Closed
June 4, 2020, 8:07am
6
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.