Timelion query not working


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_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 topicfield? Is it analyzed or not?

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

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.