-
Notifications
You must be signed in to change notification settings - Fork 181
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added statistics discover template #3111
Added statistics discover template #3111
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
CHANGELOG.md
Outdated
@@ -12,6 +12,7 @@ All notable changes to the Wazuh app project will be documented in this file. | |||
- Added Agent Stats section [#3056](https://github.com/wazuh/wazuh-kibana-app/pull/3056) | |||
- Add `logtest` PUT example on API Console [#3061](https://github.com/wazuh/wazuh-kibana-app/pull/3061) | |||
- New buttom to check api again in health check [#3109](https://github.com/wazuh/wazuh-kibana-app/pull/3109) | |||
- Added `wazuh-statistics` template and a new mapping for this indices [#3111](https://github.com/wazuh/wazuh-kibana-app/pull/3111) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix typo this indices
to these indices
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These fields should be added to public/utils/statistics-fields.ts
:
{ "name": "_id", "type": "string", "count": 0, "scripted": false, "searchable": true, "aggregatable": true, "readFromDocValues": false },
{ "name": "_index", "type": "string", "count": 0, "scripted": false, "searchable": true, "aggregatable": true, "readFromDocValues": false },
{ "name": "_score", "type": "number", "count": 0, "scripted": false, "searchable": false, "aggregatable": false, "readFromDocValues": false },
{ "name": "_source", "type": "_source", "count": 0, "scripted": false, "searchable": false, "aggregatable": false, "readFromDocValues": false },
{ "name": "_type", "type": "string", "count": 0, "scripted": false, "searchable": true, "aggregatable": true, "readFromDocValues": false },
Due to if you had a previously created index pattern, it may not have the _source mapping field and it will make the entire document look like a JSON in Discover instead of highlighting the fields of the object
Everything mentioned by @Desvelao is also happening to me |
the index placeholder instanced instead the first one
Changes
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested it and seems to work as expected. Great job! LGTM!
Hi Team, this resolves
wazuh-statistics
index template and mappingTest suit:
Note: in order to get statistics with a short frequency, you could set these configs in your wazuh.yml
wazuh-statistics
should be generatedcron.index
andcron.statistics.index.name
Closes #3072