# \#eql-elastic-query-language

**URL:** https://discuss.elastic.co/tag/eql-elastic-query-language/93.md?page=1

[Latest](https://discuss.elastic.co/latest.md) · [Categories](https://discuss.elastic.co/categories.md) · [Tags](https://discuss.elastic.co/tags.md)

**Page:** 2

---

## [Full-text queries with date filter](https://discuss.elastic.co/t/full-text-queries-with-date-filter/344391)

<div class="topic-metadata">

**Author:** [@combbbbinator](https://discuss.elastic.co/u/combbbbinator)\
**Replies:** 3\
**Last updated:** [October 4, 2023, 2:17pm UTC](https://discuss.elastic.co/t/full-text-queries-with-date-filter/344391 "2023-10-04T14:17:51Z")

</div>

Hello. I'm trying to understand whether it is possible to make a full-text request and specify a time filter in the request, for example, for the last 15 minutes? A request that I would like to improve : { "query": { …

---

## [Multi-level nested query structure — bug or feature](https://discuss.elastic.co/t/multi-level-nested-query-structure-bug-or-feature/343475)

<div class="topic-metadata">

**Author:** [@jonnyeom](https://discuss.elastic.co/u/jonnyeom)\
**Replies:** 0\
**Last updated:** [September 20, 2023, 3:42pm UTC](https://discuss.elastic.co/t/multi-level-nested-query-structure-bug-or-feature/343475 "2023-09-20T15:42:00Z")

</div>

Hello, Im working with multi-level nested query filters. Documentation in Nested query | Elasticsearch Guide \[8.10\] | Elastic shows an example where each level is nested as part of the search query. i.e. Query Example…

---

## [Min\_score not working as expected](https://discuss.elastic.co/t/min-score-not-working-as-expected/342970)

<div class="topic-metadata">

**Author:** [@Ayush\_Mehta\_Engineer](https://discuss.elastic.co/u/Ayush_Mehta_Engineer)\
**Replies:** 0\
**Last updated:** [September 13, 2023, 3:06pm UTC](https://discuss.elastic.co/t/min-score-not-working-as-expected/342970 "2023-09-13T15:06:37Z")

</div>

I am trying to fetch the results with a minimum score of 1 using min\_score using the following query but I am still getting responses with null score I know that my query is bit complex and there could be better ways to…

---

## [Elastic Search .Net client doesnt have Fuzziness?](https://discuss.elastic.co/t/elastic-search-net-client-doesnt-have-fuzziness/343176)

<div class="topic-metadata">

**Author:** [@senadk](https://discuss.elastic.co/u/senadk)\
**Replies:** 0\
**Last updated:** [September 16, 2023, 12:30pm UTC](https://discuss.elastic.co/t/elastic-search-net-client-doesnt-have-fuzziness/343176 "2023-09-16T12:30:24Z")

</div>

Hello, Im having trouble with adding Fuzziness to my Match query, see the below code: var client = new ElasticsearchClient(new Uri("http://elasticsearch:9200")); var response = await client.SearchAsync\<Ex…

---

## [EQL Language trouble when creating custom rule](https://discuss.elastic.co/t/eql-language-trouble-when-creating-custom-rule/343144)

<div class="topic-metadata">

**Author:** [@Brandon\_Duffy](https://discuss.elastic.co/u/Brandon_Duffy)\
**Replies:** 0\
**Last updated:** [September 15, 2023, 2:02pm UTC](https://discuss.elastic.co/t/eql-language-trouble-when-creating-custom-rule/343144 "2023-09-15T14:02:43Z")

</div>

Hello, I've been working on this rule for some time now, and it is only partially working. I am able to see the net.exe related alerts populate, and used to see 'systeminfo', 'hostname', 'nslookup', now i do not. I can…

---

## [Availavility reports](https://discuss.elastic.co/t/availavility-reports/340659)

<div class="topic-metadata">

**Author:** [@zenkovac](https://discuss.elastic.co/u/zenkovac)\
**Replies:** 4\
**Last updated:** [August 24, 2023, 7:03pm UTC](https://discuss.elastic.co/t/availavility-reports/340659 "2023-08-24T19:03:30Z")

</div>

hi, im looking for a way to have an availability report with maintenance windows exluded from the calculation. I have an index with availavility events that have basic status of 0 or 1, i can easily calculate the percen…

---

## [Elaticsearch SQL CLI is not working](https://discuss.elastic.co/t/elaticsearch-sql-cli-is-not-working/341258)

<div class="topic-metadata">

**Author:** [@SivaPrasadELK](https://discuss.elastic.co/u/SivaPrasadELK)\
**Replies:** 0\
**Last updated:** [August 21, 2023, 2:02pm UTC](https://discuss.elastic.co/t/elaticsearch-sql-cli-is-not-working/341258 "2023-08-21T14:02:32Z")

</div>

Hi team, I am not able to run the SQL commands in SQL CLI tool. Any pointers how to use it or any supporting docs to refer. i am getting different kind of error messages when trying to run the queries in SQL CLI . "er…

---

## [Can we run bool query in constant\_score](https://discuss.elastic.co/t/can-we-run-bool-query-in-constant-score/341040)

<div class="topic-metadata">

**Author:** [@kannan\_raj](https://discuss.elastic.co/u/kannan_raj)\
**Replies:** 1\
**Last updated:** [August 17, 2023, 6:04pm UTC](https://discuss.elastic.co/t/can-we-run-bool-query-in-constant-score/341040 "2023-08-17T18:04:24Z")

</div>

can we run bool query in constant\_score sample query { "query": { "constant\_score": { "filter": { "bool": { "must": \[ { "term": { "account\_id": { …

---

## [Multiterms on multi index](https://discuss.elastic.co/t/multiterms-on-multi-index/340519)

<div class="topic-metadata">

**Author:** [@Suresh\_Ghatuwa](https://discuss.elastic.co/u/Suresh_Ghatuwa)\
**Replies:** 0\
**Last updated:** [August 10, 2023, 7:47am UTC](https://discuss.elastic.co/t/multiterms-on-multi-index/340519 "2023-08-10T07:47:46Z")

</div>

Currently I am testing on ES Multi Terms feature. Please find the sample data with indices. PUT multi\_terms\_test1 { "settings": { "number\_of\_shards": 1, "number\_of\_replicas": 0 } } PUT multi\_terms\_test1/\_ma…

---

## [Event correlation (with EQL)](https://discuss.elastic.co/t/event-correlation-with-eql/339077)

<div class="topic-metadata">

**Author:** [@Adamsb01](https://discuss.elastic.co/u/Adamsb01)\
**Replies:** 1\
**Last updated:** [August 9, 2023, 1:48pm UTC](https://discuss.elastic.co/t/event-correlation-with-eql/339077 "2023-08-09T13:48:03Z")

</div>

Hello everyone, I am currently deploying a Elastic, Kibana, Fleet & agents stack for a project. Details: Elastic (three nodes), in a cluster, version 8.6 Kibana (one node), version 8.6 Fleet servers (on each node) El…

---

## [Group by id base of sum of range of value](https://discuss.elastic.co/t/group-by-id-base-of-sum-of-range-of-value/340322)

<div class="topic-metadata">

**Author:** [@Suresh\_Ghatuwa](https://discuss.elastic.co/u/Suresh_Ghatuwa)\
**Replies:** 4\
**Last updated:** [August 8, 2023, 8:05am UTC](https://discuss.elastic.co/t/group-by-id-base-of-sum-of-range-of-value/340322 "2023-08-08T08:05:45Z")

</div>

I had some data as below: \[ { "PAY\_DATE": "2019-10-24", "STATE": "Utah", "id": "1", "SALARY": 6045, "UUID": "a879492b-b402-40bd-8f5d-afc34d66d152" }, { "PAY\_DATE": "2021-01-17", "STATE"…

---

## [Match query not returning results](https://discuss.elastic.co/t/match-query-not-returning-results/337815)

<div class="topic-metadata">

**Author:** [@senadk](https://discuss.elastic.co/u/senadk)\
**Replies:** 6\
**Last updated:** [July 24, 2023, 5:14pm UTC](https://discuss.elastic.co/t/match-query-not-returning-results/337815 "2023-07-24T17:14:06Z")

</div>

Hi everyone, I started today with Elastic Search and have been working on some endpoints to get and post data. I do get a problem when trying to get results back on a match query. This is my document: { exception: \[…

---

## [Kibana metric help OR ( Bucket selector on a top metrics aggregation AND OR VEGA debug )](https://discuss.elastic.co/t/kibana-metric-help-or-bucket-selector-on-a-top-metrics-aggregation-and-or-vega-debug/336899)

<div class="topic-metadata">

**Author:** [@LucasE](https://discuss.elastic.co/u/LucasE)\
**Replies:** 1\
**Last updated:** [July 19, 2023, 10:36am UTC](https://discuss.elastic.co/t/kibana-metric-help-or-bucket-selector-on-a-top-metrics-aggregation-and-or-vega-debug/336899 "2023-07-19T10:36:15Z")

</div>

Hello everyone, I stumbled across an issue I cannot resolve and I have no idea how to continue from here. My initial situation is simple : I have logs of 'problems' every minute in this format : ID|Status. Open logs …

---

## [Can we use sub aggregation after top metric aggregation](https://discuss.elastic.co/t/can-we-use-sub-aggregation-after-top-metric-aggregation/330957)

<div class="topic-metadata">

**Author:** [@Fiza](https://discuss.elastic.co/u/Fiza)\
**Replies:** 7\
**Last updated:** [May 3, 2023, 8:53am UTC](https://discuss.elastic.co/t/can-we-use-sub-aggregation-after-top-metric-aggregation/330957 "2023-05-03T08:53:41Z")

</div>

I want to get sum of latest value of a field . With several conditions which is applied over other fields. I am working on time series data and want to get information from last poled value. Example Data:- A B C …

---

## [Inconsistency with queries on unknown fields](https://discuss.elastic.co/t/inconsistency-with-queries-on-unknown-fields/335841)

<div class="topic-metadata">

**Author:** [@yfful](https://discuss.elastic.co/u/yfful)\
**Replies:** 4\
**Last updated:** [June 22, 2023, 6:56pm UTC](https://discuss.elastic.co/t/inconsistency-with-queries-on-unknown-fields/335841 "2023-06-22T18:56:35Z")

</div>

Hello, If you make a search request with a geo\_bounding\_box query, it will fail with a QueryShardException with message failed to find geo field \[my-field\] in the case where the index doesn't have a mapping for my-field.…

---

## [Top hits aggregation does not work on nested object](https://discuss.elastic.co/t/top-hits-aggregation-does-not-work-on-nested-object/336347)

<div class="topic-metadata">

**Author:** [@JasonREC](https://discuss.elastic.co/u/JasonREC)\
**Replies:** 1\
**Last updated:** [June 21, 2023, 10:29am UTC](https://discuss.elastic.co/t/top-hits-aggregation-does-not-work-on-nested-object/336347 "2023-06-21T10:29:19Z")

</div>

Hi all, This is my nested object field And, I manually update the mapping like this And, this is how my top\_hit query look like Lastly, this is the query response I expected it should be return the entir…

---

## [Handling of null and \[\] (empty list)](https://discuss.elastic.co/t/handling-of-null-and-empty-list/330720)

<div class="topic-metadata">

**Author:** [@nguyen\_huy](https://discuss.elastic.co/u/nguyen_huy)\
**Replies:** 0\
**Last updated:** [April 25, 2023, 9:24am UTC](https://discuss.elastic.co/t/handling-of-null-and-empty-list/330720 "2023-04-25T09:24:01Z")

</div>

Hi everybody, I am very new to Elasticsearch and I have a question regarding the handling of null and \[\] (empty list) values. Specifically, in my dummy index example, I have a document as follows { "hits": \[ …

---

## [How to find difference between aggregate average and individual values](https://discuss.elastic.co/t/how-to-find-difference-between-aggregate-average-and-individual-values/330255)

<div class="topic-metadata">

**Author:** [@rahulkothanath](https://discuss.elastic.co/u/rahulkothanath)\
**Replies:** 0\
**Last updated:** [April 18, 2023, 10:56pm UTC](https://discuss.elastic.co/t/how-to-find-difference-between-aggregate-average-and-individual-values/330255 "2023-04-18T22:56:26Z")

</div>

I have a field "y" in the Elasticsearch index and I would like to find sum(y-y.avg) using aggregations for each person in my index. I am able to calculate y.avg for a person using the below query but need help in calcula…

---

## [Find Unique values of field while using match query on other field](https://discuss.elastic.co/t/find-unique-values-of-field-while-using-match-query-on-other-field/330037)

<div class="topic-metadata">

**Author:** [@emi\_rose](https://discuss.elastic.co/u/emi_rose)\
**Replies:** 0\
**Last updated:** [April 14, 2023, 7:02pm UTC](https://discuss.elastic.co/t/find-unique-values-of-field-while-using-match-query-on-other-field/330037 "2023-04-14T19:02:34Z")

</div>

Hello, I would like find all unique set values of field3 that roll up under a specific value of field1 and a specific value of field2. I've tried collapsing on field3 but it gives me the error that no mapping was found…

---

## [Simple\_query\_string is not matching correctly](https://discuss.elastic.co/t/simple-query-string-is-not-matching-correctly/329656)

<div class="topic-metadata">

**Author:** [@jilson](https://discuss.elastic.co/u/jilson)\
**Replies:** 2\
**Last updated:** [April 10, 2023, 1:39pm UTC](https://discuss.elastic.co/t/simple-query-string-is-not-matching-correctly/329656 "2023-04-10T13:39:03Z")

</div>

I am trying the below query using simple\_query\_string to match customer\_id GET order-info/\_search { "query": { "simple\_query\_string": { "query": "1c0298d6-a911-5044-a904-6e848fb05eef", "fields": \["cust…

---

## [Improve elasticsearch aggreation performance](https://discuss.elastic.co/t/improve-elasticsearch-aggreation-performance/328434)

<div class="topic-metadata">

**Author:** [@MonikaJ](https://discuss.elastic.co/u/MonikaJ)\
**Replies:** 0\
**Last updated:** [March 24, 2023, 8:14am UTC](https://discuss.elastic.co/t/improve-elasticsearch-aggreation-performance/328434 "2023-03-24T08:14:42Z")

</div>

I am using elasticsearch aggregations to calculate counts for a faceted search. Therefore I define my general search query (e.g. status.keyword) and exlcude this filter from the status.keyword aggregation itself (the que…

---

## [Filtering two different nested fields in the same agg](https://discuss.elastic.co/t/filtering-two-different-nested-fields-in-the-same-agg/328169)

<div class="topic-metadata">

**Author:** [@ndtreviv](https://discuss.elastic.co/u/ndtreviv)\
**Replies:** 0\
**Last updated:** [March 21, 2023, 1:55pm UTC](https://discuss.elastic.co/t/filtering-two-different-nested-fields-in-the-same-agg/328169 "2023-03-21T13:55:39Z")

</div>

I understand how to filter on two nested fields using sub aggregations and get individual doc\_counts out of them, but I want to filter and count one nested field by the value of another nested field. eg: Imagine a docu…

---

## [Is there a way to get less used/searched logs in Elasticsearch](https://discuss.elastic.co/t/is-there-a-way-to-get-less-used-searched-logs-in-elasticsearch/328081)

<div class="topic-metadata">

**Author:** [@Amulya\_Nanda](https://discuss.elastic.co/u/Amulya_Nanda)\
**Replies:** 5\
**Last updated:** [March 21, 2023, 11:24am UTC](https://discuss.elastic.co/t/is-there-a-way-to-get-less-used-searched-logs-in-elasticsearch/328081 "2023-03-21T11:24:07Z")

</div>

Hi Team, We are looking to list out less usage logs in Elasticsearch. For example: we have logs getting ingested from many setups. We wanted to query/ or list out less used logs from setups basis. How can we get the d…

---

## [While searching how do I exclude only one object and include other object inside a nested object](https://discuss.elastic.co/t/while-searching-how-do-i-exclude-only-one-object-and-include-other-object-inside-a-nested-object/327322)

<div class="topic-metadata">

**Author:** [@Nabin\_Upreti](https://discuss.elastic.co/u/Nabin_Upreti)\
**Replies:** 1\
**Last updated:** [March 19, 2023, 11:51pm UTC](https://discuss.elastic.co/t/while-searching-how-do-i-exclude-only-one-object-and-include-other-object-inside-a-nested-object/327322 "2023-03-19T23:51:49Z")

</div>

I want to search minimum of the negotiated\_rate where negotiated type is not percentage. I used must not query to filter out percentage but this results to excluding the whole document. Here I expect the minimum negotia…

---

## [Get top 10 data for each group](https://discuss.elastic.co/t/get-top-10-data-for-each-group/327349)

<div class="topic-metadata">

**Author:** [@Shishir\_Kumar2](https://discuss.elastic.co/u/Shishir_Kumar2)\
**Replies:** 0\
**Last updated:** [March 9, 2023, 11:25am UTC](https://discuss.elastic.co/t/get-top-10-data-for-each-group/327349 "2023-03-09T11:25:39Z")

</div>

Requirement is to get top 10 data for each group. I created below index and tried using few combination of aggregation query but it does not get desired result. Index Definition PUT /poc\_agg { "settings": { "numb…

---

## [Simple Query to search within log text (not keyword)](https://discuss.elastic.co/t/simple-query-to-search-within-log-text-not-keyword/327095)

<div class="topic-metadata">

**Author:** [@Mark\_S](https://discuss.elastic.co/u/Mark_S)\
**Replies:** 3\
**Last updated:** [March 6, 2023, 6:51pm UTC](https://discuss.elastic.co/t/simple-query-to-search-within-log-text-not-keyword/327095 "2023-03-06T18:51:30Z")

</div>

I am trying to search within text that originates from log files. Am I using the correct query? Any suggestions on how to restrict results only to the exact match? (eg show only results with higher score?) I am using e…

---

## [Query get documents by giving an array of document ids same order of array](https://discuss.elastic.co/t/query-get-documents-by-giving-an-array-of-document-ids-same-order-of-array/325172)

<div class="topic-metadata">

**Author:** [@Guillaume23](https://discuss.elastic.co/u/Guillaume23)\
**Replies:** 0\
**Last updated:** [February 9, 2023, 4:14pm UTC](https://discuss.elastic.co/t/query-get-documents-by-giving-an-array-of-document-ids-same-order-of-array/325172 "2023-02-09T16:14:42Z")

</div>

Hi, I am a beginner with Elasticsearch and my application is using it for monitoring and search engine.I am currently using ES 5.6.4. I would like to know if it's possible to get documents by giving an array of documen…

---

## [Is there document count limitation for aggregations?](https://discuss.elastic.co/t/is-there-document-count-limitation-for-aggregations/325108)

<div class="topic-metadata">

**Author:** [@ysj6987](https://discuss.elastic.co/u/ysj6987)\
**Replies:** 2\
**Last updated:** [February 9, 2023, 7:52am UTC](https://discuss.elastic.co/t/is-there-document-count-limitation-for-aggregations/325108 "2023-02-09T07:52:02Z")

</div>

Hello, I'm trying to get percentiles aggregation from rather big document size count ( over 400,000 ) I know that query size limitation of documents is10000 as default. I wonder it applies to aggregation so that it res…

---

## [Query multiple conditions of an array property](https://discuss.elastic.co/t/query-multiple-conditions-of-an-array-property/325068)

<div class="topic-metadata">

**Author:** [@thomas.schroeder](https://discuss.elastic.co/u/thomas.schroeder)\
**Replies:** 0\
**Last updated:** [February 8, 2023, 10:40pm UTC](https://discuss.elastic.co/t/query-multiple-conditions-of-an-array-property/325068 "2023-02-08T22:40:42Z")

</div>

Hey everyone, I have a document which describes when an entry was/is valid. The entry can be valid for multiple time periods but these can never overlap. Now I want to query only documents which have been changed it's a…

---

## [Access global document count from inside bucket script](https://discuss.elastic.co/t/access-global-document-count-from-inside-bucket-script/324040)

<div class="topic-metadata">

**Author:** [@bpax51](https://discuss.elastic.co/u/bpax51)\
**Replies:** 0\
**Last updated:** [January 26, 2023, 3:48pm UTC](https://discuss.elastic.co/t/access-global-document-count-from-inside-bucket-script/324040 "2023-01-26T15:48:42Z")

</div>

Hello guys, I'm new to Elasticsearch and already having fun with aggregations but I'm facing an issue that I couldn't figure out. I have the following query, that will search my index within a date range, give me a lis…

[Previous page](https://discuss.elastic.co/tag/eql-elastic-query-language/93.md?match_all_tags=true&tags%5B%5D=eql-elastic-query-language)

[Next page](https://discuss.elastic.co/tag/eql-elastic-query-language/93.md?match_all_tags=true&page=2&tags%5B%5D=eql-elastic-query-language)
