This repository has been archived by the owner on Mar 31, 2024. It is now read-only.
forked from elastic/kibana
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Logs UI] Remove scaling and pre-aggregation in datafeed (elastic#44268)
This simplifies the datafeed configuration by removing the date histogram aggregation and the bucket script, that scaled the document count. It also adjusts the chart's y axis label accordingly. Additionally it adds a `job_revision` metadata item to the job config that we can use to detect outdated job configs in the future in order to prompt the user to reinstall new jobs.
- Loading branch information
1 parent
0d7ae43
commit c72a22e
Showing
4 changed files
with
6 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 1 addition & 25 deletions
26
...ml/server/models/data_recognizer/modules/logs_ui_analysis/ml/datafeed_log_entry_rate.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,4 @@ | ||
{ | ||
"job_id": "JOB_ID", | ||
"indexes": ["INDEX_PATTERN_NAME"], | ||
"aggregations": { | ||
"buckets": { | ||
"date_histogram": { | ||
"field": "@timestamp", | ||
"fixed_interval": "900000ms" | ||
}, | ||
"aggregations": { | ||
"doc_count_per_minute": { | ||
"bucket_script": { | ||
"buckets_path": { | ||
"doc_count": "_count" | ||
}, | ||
"script": { | ||
"lang": "painless", | ||
"params": { | ||
"bucket_span_in_ms": 900000 | ||
}, | ||
"source": "60 * 1000 * params.doc_count / params.bucket_span_in_ms" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
"indexes": ["INDEX_PATTERN_NAME"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters