How are you submitting the SQL queries through which interface?
One thing I notice is that you do not have a closing '
where message like '%fiscal%
should be where message like '%fiscal%'. <!---- Closing Single Quote
Perhaps try that....
You can test your Queries From Kibana Dev Tools
The look like this ... you have to do some Escaping
POST _sql?format=txt
{
"query":"SELECT \"@timestamp\", service.name, cloudfoundry.app.name as app FROM \"filebeat-*\" WHERE app LIKE '%data%' LIMIT 10"
}
Not sure what is going on... I would make a quick data table... and check everything
the %value% will not work on a data type text will only work on a keyword
Top Table and Metric
SELECT "@timestamp", url.path, cloudfoundry.app.name FROM ".ds-filebeat-8.2.3-2022.10.01-000304" WHERE cloudfoundry.app.name IS NOT NULL and url.path IS NOT NULL
Bottom Table and Metric
SELECT "@timestamp", url.path, cloudfoundry.app.name FROM ".ds-filebeat-8.2.3-2022.10.01-000304" WHERE cloudfoundry.app.name IS NOT NULL and url.path LIKE '%api%'
Ok ... Everything I stated above should be pretty valid.
There may not be the brand new metrics widget in lens.
I will go back you could create this in Lens without all the SQL.
I did get SQL to work in Canvas but it appears to be a bit "finicky"
Yes as I said Canvas + SQL seem to have a few issues and is hard to use (just my opinion especially for a simple dashboard) ... BUT I did get it to work... it is very picky / sensitive ... changing too fast can cause issues... syntax errors, large data set .. etc... wildcards etc.
My Suggestion
A regular Dashboard + Lens + KQL will get you there much faster / easier... MUCH faster / easier
Just my Suggestion
if you want help on filebeat please open a separate topic.
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.