Can you share the expression behind the metric in canvas? Also, could you make sure the time range is the same in visualize by clicking the "Inspect" button in the top right and switch to request?
I think a SELECT query won't give you the full data because of the cost - it has to transfer all documents into the browser. Doing essql query="SELECT COUNT(*) as count FROM \"smartperform_statistics*\"" instead of size in the math moves this into Elasticsearch and makes sure it's executed on the full data. The math can be replaced by a getCell.
Hi Joe,
I have not created this query. I have just used the menu from the selected element.
Question: Can I simply replace the query inside the Expression editor? And / or how can I save this query?
following your advice, I have tried another visual and created the following SELECT query to perform the work on the server:
SELECT COUNT(fields.Event) FROM "smartperform_statistics*"
WHERE "fields.Event" = View.End
I get the error message
Expression failed with the message:
[essql] > Couldn't parse Elasticsearch SQL query. You may need to add double quotes to names containing special characters. Check your query and try again. Error: line 2:29: no viable alternative at input 'View.End'
I cannot find a hint inside the documentation. All examples I have found so far, are looking quit similar to me.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.