Hi,
I am trying to come up with a way to view the data from a field within Elasticsearch index called "dns.highest_registered_domain" over a 24 hour period. I have come up with the following but I am not sure if it is over 24hrs, also is there a way to just display the data in the "dns.highest_registered_domain field"? without getting getting all the other fields
Thanks. This works if I remove everything below the "filter": statement. If I leave it in I get, I just cant figure out how to structure the "filter': statement to get it to pull over 24hrs
{
"error" : {
"root_cause" : [
{
"type" : "parsing_exception",
"reason" : "Unknown key for a START_ARRAY in [filter].",
"line" : 8,
"col" : 15
}
],
"type" : "parsing_exception",
"reason" : "Unknown key for a START_ARRAY in [filter].",
"line" : 8,
"col" : 15
},
"status" : 400
}
Apologies... I am not sure what I pasted in above.. I fixed it... so that someone looking does not have the same experience as you.. Sorry again for that.
Here is the correct syntax...
This is based on the concept of Query + Filter Context its needs a bool, and both the Query and Filter can be arrays but in this case a single element can work.
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.