Is it possible to do this sql query:
SELECT icID, icmID, message from logstash*
WHERE @timesstamp in (
SELECT @timestamp from logstash*
WHERE icID = 8676 )
with a query from elasticsearch? The problem is, that i can't do a subquery with elasticsearch if I don't want to type in my special @timestamp value
{
"query": {
"bool": {
"must": {
"bool": {
"should": [
{
"match": {
"@timestamp": {
"query": "2016-04-27T05:01:20.055Z",
"type": "phrase"
}
}
},
{
...
"_source": {
"includes": [
"icID",
"message"
],
"excludes": []
}
}
This is want I don't want.
Can someone help me out with this problem? Or is it impossible to do a "subquery" in elasticsearch?
Thanks for your help!