Thank you for your answer! I already made some Visualizations in kibana with some very simple filters, but this is first time when I need this kind of filter
Let me understand, in Kibana I cannot create a simple filter who in sql looks like that:
select MAX([date]) max_date
,pc_id
from hist
group by pc_id
And in order to do that I should export this data into a relational database? Or there is any other option?
it is dangerous to think of a sql statement and ELK Query language in the same way. While you can do similar things the concepts are very different. Especially on things like subqueries which "MAX" sort of is doing in your example Go find the MAX date in the table, then query the rest.
So the groupby you might consider it as the "Aggregation" either "Count" or Math like (SUM , MAX, MIN) of a number
Think of it this way, (Sorry my sql is rusty)
select between(now-10, NOW) from INDEX where verb is "GET" groupby URL
or
select between(now-10, NOW) from INDEX where verb is "GET" groupby (@TIMESTAMP/1m) and URL
This would be closer on how Kibana works with aggregations,
{
query: {
"This of this as the where clause"
}
filter: {
"Think of this as the select statement between being the timepicker"
}
aggro{
This of this as the groupby
}
}
I am sure you get very close to the results you want, it just takes a bit to get used to the interface.
You may want to start a new thread with details on your data (right from Elasticsearch) and a DSL that you have come up with and someone who is more advanced in the query language can help you out.
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.