Hi, Im trying to display data from the .ml-anomalies-* index on Canvas, but it doesnt show the values in the metric visualization. (the index pattern exists)
SELECT COUNT(*) as count_documents FROM ".ml-anomalies-*" WHERE
anomaly_score > 75 AND job_id = 'my-job
when I run the query I get data
then I use the field that I need in the visualization
No, my example is from a Canvas workpad that is running that exact query to .ml-anomalies-*
Do you have a time filter on your Canvas workpad (on any of the panels, not just the visible one) that is limiting the scope of your query to a certain date range where there are no actual anomalies?
The strange thing is if I remove the time filter element from the canvas the metric works....so the problem seems to be the time filter...
Maybe because the time field in the .ml-anomalies-* index is "timestamp" not "@timestamp" like in a regular index?, maybe the time filter doesnt recognize the field?
the problem is that I need the time filter in the canvas
Ah yes, that's the issue. You could perhaps investigate creating a field alias in the .ml-anomalies-* index to map timestamp to an alias field called @timestamp
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.