diff --git a/elastic/logs/operations/esql.json b/elastic/logs/operations/esql.json index 6dfdffea..d162c5c5 100644 --- a/elastic/logs/operations/esql.json +++ b/elastic/logs/operations/esql.json @@ -256,6 +256,14 @@ "body": {{ p_esql_ccs_extra_body | tojson }} {%- endif %} }, + { + "name": "esql_avg_log_offset", + "operation-type": "esql", + "query": "FROM {{p_esql_target_prefix}}logs-* | STATS AVG(log.offset)" + {%- if p_esql_ccs_extra_body %}, + "body": {{ p_esql_ccs_extra_body | tojson }} + {%- endif %} + }, { "name": "esql_avg_doc_size", "operation-type": "esql", diff --git a/elastic/logs/tasks/many-clusters-esql-ccs-queries.json b/elastic/logs/tasks/many-clusters-esql-ccs-queries.json index 8d009d83..689ac65a 100644 --- a/elastic/logs/tasks/many-clusters-esql-ccs-queries.json +++ b/elastic/logs/tasks/many-clusters-esql-ccs-queries.json @@ -164,6 +164,13 @@ "iterations": 50, "tags": ["esql", "limit50"] }, + { + "operation": "esql_avg_log_offset", + "clients": 1, + "warmup-iterations": 1, + "iterations": 1, + "tags": ["esql", "avg"] + }, { "operation": "esql_avg_doc_size", "clients": 1,