Create complex queries in timelion - divide and substract in one query

Dear Community,

I would like to know if there is any way to analyze in Kibana the following type of equation: a/(b-c).
The difference I managed to get in timelion, but my attempt to calculate a.divide(b-c) failed.
Is this even possible in timelion?

The syntax here should be:

.es().divide(.es().subtract(.es()))

If you can't get that to work, could you post a more complete example of what your query looks like?

Thanks for the answer! I have found the error in the query, there was an additional space there. Not this works.

1 Like

Now, I have another question related to the same query.

How it will look like if I want to compare the same query for two sensors in the same graph?

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