Timelion query

I'm trying to get query working in Timelion with no success.
The query: .es(index=testindex_tag-*, metric='max:cooldata', q='tags:server_type-test-x2')
The problem is Timelion gets me data containing not only the exact tag server_type-test-x2 but also gets me anytag that contains server type test x2
In my case i have tag server_type-test-x2 and server_type-test-x5,the query above gets me data from both tags.
It seems that it treats - and _ as wildcard of some sort.
How can I get data with exact tag?

Try using either quotes, or if you have a non-analyzed field with the same data, you can point to that. Elasticsearch might have created one for you automatically depending on how you set up your mappings, and what version you are using - you can check this out in the Index patterns page of management:

the .keyword one above is the one that won't strip out special characters. So here are a few examples:

The query as you wrote it, returns too many matches:

Adding quotes removes them:

As does using the .keyword variation:

Here is my data for reference in this example:
29 AM

Hope that helps!

1 Like

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