Add information about subunit index in logstash role
With the commit [1], the logsender would push the tempest subunit results to the Opensearch, but to the new index: 'subunit'. [1] https://review.opendev.org/c/openstack/ci-log-processing/+/858373 Change-Id: I1ebfdaec384f7d81a0c246a1a1e6c2eaaad3ede0
This commit is contained in:
parent
c44de5158b
commit
eee765f8c6
@ -40,23 +40,29 @@ Created roles:
|
|||||||
|
|
||||||
* Readonly role is creaded base on the [inscruction](https://opensearch.org/docs/latest/security-plugin/access-control/users-roles/#set-up-a-read-only-user-in-opensearch-dashboards)
|
* Readonly role is creaded base on the [inscruction](https://opensearch.org/docs/latest/security-plugin/access-control/users-roles/#set-up-a-read-only-user-in-opensearch-dashboards)
|
||||||
Details:
|
Details:
|
||||||
name: readonly
|
|
||||||
cluster permissions: cluster_composite_ops_ro, cluster:monitor/main
|
```
|
||||||
index permissions:
|
name: readonly
|
||||||
index: *
|
cluster permissions: cluster_composite_ops_ro, cluster:monitor/main
|
||||||
index permissions: read
|
index permissions:
|
||||||
tenant permissions:
|
index: *
|
||||||
tenant: global_tenant
|
index permissions: read
|
||||||
|
tenant permissions:
|
||||||
|
tenant: global_tenant
|
||||||
|
```
|
||||||
|
|
||||||
* Logstash role (modify)
|
* Logstash role (modify)
|
||||||
Details:
|
Details:
|
||||||
name: logstash
|
|
||||||
cluster permissions: cluster_monitor, cluster_composite_ops, indices:admin/template/get, indices:admin/template/put, cluster:admin/ingest/pipeline/put, cluster:admin:ingest/pipeline/get
|
```
|
||||||
index permissions:
|
name: logstash
|
||||||
index: logstash-*, performance-*, *beat*
|
cluster permissions: cluster_monitor, cluster_composite_ops, indices:admin/template/get, indices:admin/template/put, cluster:admin/ingest/pipeline/put, cluster:admin:ingest/pipeline/get
|
||||||
index permissions: crud, create_index
|
index permissions:
|
||||||
tenant permissions:
|
index: logstash-*, performance-*, subunit-*, *beat*
|
||||||
tenant: global_tenant
|
index permissions: crud, create_index
|
||||||
|
tenant permissions:
|
||||||
|
tenant: global_tenant
|
||||||
|
```
|
||||||
|
|
||||||
NOTE:
|
NOTE:
|
||||||
The `cluster:monitor/main` role is required to use Python Opensearch client.
|
The `cluster:monitor/main` role is required to use Python Opensearch client.
|
||||||
@ -160,6 +166,49 @@ Policy ID: Delete data for performance index after 14 days
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
* For subunit-*
|
||||||
|
|
||||||
|
Policy ID: Delete data for subunit index after 14 days
|
||||||
|
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"policy": {
|
||||||
|
"description": "Delete subunit data after 14 days",
|
||||||
|
"default_state": "hot",
|
||||||
|
"states": [
|
||||||
|
{
|
||||||
|
"name": "hot",
|
||||||
|
"actions": [],
|
||||||
|
"transitions": [
|
||||||
|
{
|
||||||
|
"state_name": "delete",
|
||||||
|
"conditions": {
|
||||||
|
"min_index_age": "14d"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "delete",
|
||||||
|
"actions": [
|
||||||
|
{
|
||||||
|
"delete": {}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"transitions": []
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"ism_template": [
|
||||||
|
{
|
||||||
|
"index_patterns": [
|
||||||
|
"subunit-*"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
## Advenced settings in Opensearch Dashboards
|
## Advenced settings in Opensearch Dashboards
|
||||||
|
|
||||||
There is only few changes applied comparing to default settings.
|
There is only few changes applied comparing to default settings.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user