Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
27941a7
ES|QL: Add TBUCKET function
leontyevdv Jul 17, 2025
fe6dd2b
ES|QL: Add TBUCKET function
leontyevdv Jul 22, 2025
a5fe0fa
Merge branch 'main' into feature/esql-tbucket-function
leontyevdv Jul 22, 2025
45be0fe
ES|QL: Add TBUCKET function
leontyevdv Jul 24, 2025
e72467f
ES|QL: Add TBUCKET function
leontyevdv Jul 24, 2025
5bd6f36
ES|QL: Add TBUCKET function
leontyevdv Jul 24, 2025
e4a2e04
Merge branch 'main' into feature/esql-tbucket-function
leontyevdv Jul 24, 2025
cc16a42
ES|QL: Add TBUCKET function
leontyevdv Jul 24, 2025
84717ba
ES|QL: Add TBUCKET function
leontyevdv Jul 25, 2025
b378d10
Merge branch 'main' into feature/esql-tbucket-function
leontyevdv Jul 25, 2025
466e563
ES|QL: Add test for TBucket into the AnalyzerTests
leontyevdv Jul 25, 2025
06cd95a
ES|QL: Address PR review comments
leontyevdv Jul 28, 2025
6626682
ES|QL: Address PR review comments
leontyevdv Jul 29, 2025
8cfca3c
[CI] Auto commit changes from spotless
Jul 29, 2025
ad7fba6
Merge branch 'main' into feature/esql-tbucket-function
leontyevdv Jul 30, 2025
be418fc
Merge branch 'main' into feature/esql-tbucket-function
leontyevdv Jul 31, 2025
b0d5599
Merge branch 'main' into feature/esql-tbucket-function
leontyevdv Jul 31, 2025
f934369
ES|QL: Address PR review comments
leontyevdv Jul 31, 2025
28f0bea
ES|QL: Address PR review comments
leontyevdv Jul 31, 2025
d255687
ES|QL: Fix test
leontyevdv Jul 31, 2025
7216d45
ES|QL: Fix test
leontyevdv Jul 31, 2025
de606d1
Merge branch 'main' into feature/esql-tbucket-function
leontyevdv Jul 31, 2025
a57929e
ES|QL: Polish the code.
leontyevdv Aug 1, 2025
2eceb51
Merge branch 'main' into feature/esql-tbucket-function
leontyevdv Aug 1, 2025
2fbd13e
ES|QL: Polish the code.
leontyevdv Aug 1, 2025
0dff032
ES|QL: Polish the code.
leontyevdv Aug 12, 2025
36063f0
Merge branch 'main' into feature/esql-tbucket-function
leontyevdv Aug 12, 2025
8a90391
ES|QL: Add timestamp injection
leontyevdv Aug 14, 2025
a28a651
Merge branch 'main' into feature/esql-tbucket-function
leontyevdv Aug 14, 2025
bfb23c3
ES|QL: Add timestamp injection
leontyevdv Aug 14, 2025
117eaac
Merge branch 'main' into feature/esql-tbucket-function
leontyevdv Aug 18, 2025
03f45d9
Merge branch 'main' into feature/esql-tbucket-function
leontyevdv Aug 20, 2025
cbe757b
ES|QL: Refactor tests to
leontyevdv Aug 20, 2025
bc23cdb
ES|QL: Refactor tests to
leontyevdv Aug 20, 2025
014fd83
ES|QL: Refactor tests to
leontyevdv Aug 20, 2025
8bf1c07
ES|QL: Refactor tests to
leontyevdv Aug 20, 2025
91d75a0
Merge branch 'main' into feature/esql-tbucket-function
leontyevdv Aug 20, 2025
86b8d06
Merge branch 'main' into feature/esql-tbucket-function
leontyevdv Aug 21, 2025
83bfd2a
ES|QL: Refactor tests to
leontyevdv Aug 22, 2025
ed92d11
Merge branch 'main' into feature/esql-tbucket-function
leontyevdv Aug 22, 2025
92b02d1
Merge branch 'main' into feature/esql-tbucket-function
leontyevdv Aug 25, 2025
2bf9111
ES|QL: Improve tests
leontyevdv Aug 25, 2025
24e8870
ES|QL: Improve tests
leontyevdv Aug 25, 2025
2e2ea88
ES|QL: Improve TBucket
leontyevdv Aug 26, 2025
ee5bfc0
Merge branch 'main' into feature/esql-tbucket-function
leontyevdv Aug 26, 2025
3d52fbb
Merge branch 'main' into feature/esql-tbucket-function
leontyevdv Aug 26, 2025
5603fae
ES|QL: Improve tests
leontyevdv Aug 26, 2025
e74f6ac
ES|QL: Improve tests
leontyevdv Aug 26, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
* [`BUCKET`](../../functions-operators/grouping-functions.md#esql-bucket)
* [`TBUCKET`](../../functions-operators/grouping-functions.md#esql-tbucket)
* [`CATEGORIZE`](../../functions-operators/grouping-functions.md#esql-categorize)
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@ The [`STATS`](/reference/query-languages/esql/commands/stats-by.md) command supp
:::{include} ../_snippets/functions/layout/bucket.md
:::

:::{note}
:::{include} ../_snippets/functions/layout/tbucket.md
:::

:::{note}
The `CATEGORIZE` function requires a [platinum license](https://www.elastic.co/subscriptions).
:::

Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"properties": {
"@timestamp": {
"type": "boolean"
},
"client_ip": {
"type": "ip"
},
"event_duration": {
"type": "long"
},
"message": {
"type": "keyword"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,18 @@ max(rate(network.total_bytes_in)): double | time_bucket:date
// end::rate-result[]
;

oneRateWithTBucket
required_capability: metrics_command
required_capability: tbucket
TS k8s
| STATS max(rate(network.total_bytes_in)) BY time_bucket = tbucket(5minute)
| SORT time_bucket DESC | LIMIT 2;

max(rate(network.total_bytes_in)): double | time_bucket:date
6.980660660660663 | 2024-05-10T00:20:00.000Z
23.702205882352942 | 2024-05-10T00:15:00.000Z
;

twoRatesWithBucket
required_capability: metrics_command
TS k8s | STATS max(rate(network.total_bytes_in)), sum(rate(network.total_bytes_in)) BY time_bucket = bucket(@timestamp,5minute) | SORT time_bucket DESC | LIMIT 3;
Expand All @@ -106,6 +118,16 @@ max(rate(network.total_bytes_in)):double | sum(rate(network.total_bytes_in)):dou
14.97039381153305 | 63.00652190262822 | 2024-05-10T00:10:00.000Z
;

twoRatesWithTBucket
required_capability: metrics_command
required_capability: tbucket
TS k8s | STATS max(rate(network.total_bytes_in)), sum(rate(network.total_bytes_in)) BY time_bucket = tbucket(5minute) | SORT time_bucket DESC | LIMIT 3;

max(rate(network.total_bytes_in)):double | sum(rate(network.total_bytes_in)):double | time_bucket:datetime
6.980660660660663 | 23.959973363184154 | 2024-05-10T00:20:00.000Z
23.702205882352942 | 94.9517511187984 | 2024-05-10T00:15:00.000Z
14.97039381153305 | 63.00652190262822 | 2024-05-10T00:10:00.000Z
;

oneRateWithBucketAndCluster
required_capability: metrics_command
Expand Down
Loading
Loading