How can visualize the result of a sql query in Kibana?
For example:
Query:
POST _xpack/sql?format=txt
{
"query":"SELECT ip_client, count(*) AS Number_Logins FROM splunk_logs WHERE result='000' AND channel='WEB' AND action='LOGIN' GROUP BY ip_client"
}
Thanks, i just tried Canvas but still have the same problem.
Query:
SELECT(SELECT * FROM splunk_logs WHERE action='LOGIN')-(SELECT * FROM splunk_logs WHERE action = 'VOTST') AS Diff
No result.. and if i execute this query in Dev Tools:
POST _xpack/sql?format=txt
{
"query":"SELECT(SELECT * FROM splunk_logs WHERE action='LOGIN')-(SELECT * FROM splunk_logs WHERE action = 'VOTST') AS Diff"
}
There are definitely some differences but I'm not intimately familiar with the details myself. For help with specific SQL queries, try the Elasticsearch forum.
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.