I have data sent by auditbeat version 8.15.5. They enter the datastream with the following settings:
{
".ds-logs-auditbeat-8.5.0-000001": {
"settings": {
"index": {
"replication": {
"type": "DOCUMENT"
},
"hidden": "true",
"number_of_shards": "1",
"provided_name": ".ds-logs-auditbeat-8.5.0-000001",
"creation_date": "1771409911411",
"number_of_replicas": "0",
"uuid": "z8hoJ9fDRCqErxkJc9BKHA",
"version": {
"created": "137267827"
}
}
}
}
}
{
"data_streams": [
{
"name": "logs-auditbeat-8.5.0",
"timestamp_field": {
"name": "@timestamp"
},
"indices": [
{
"index_name": ".ds-logs-auditbeat-8.5.0-000001",
"index_uuid": "z8hoJ9fDRCqErxkJc9BKHA"
}
],
"generation": 1,
"status": "GREEN",
"template": "logs-auditbeat-8.5.0"
}
]
}
When trying to create, I get the following error
Security Analytics - DetectorsService - createDetector: StatusCodeError: [security_analytics_exception] Validation Failed: 1: Index patterns are not supported for doc level monitors.;
at respond (/usr/share/opensearch-dashboards/node_modules/elasticsearch/src/lib/transport.js:349:15)
at checkRespForFailure (/usr/share/opensearch-dashboards/node_modules/elasticsearch/src/lib/transport.js:306:7)
at HttpConnector.<anonymous> (/usr/share/opensearch-dashboards/node_modules/elasticsearch/src/lib/connectors/http.js:173:7)
at IncomingMessage.wrapper (/usr/share/opensearch-dashboards/node_modules/lodash/lodash.js:5030:19)
at IncomingMessage.emit (node:events:531:35)
at endReadableNT (node:internal/streams/readable:1698:12)
at processTicksAndRejections (node:internal/process/task_queues:90:21) {
status: 500,
displayName: 'InternalServerError',
path: '/_plugins/_security_analytics/detectors',
query: {},
body: {
error: {
root_cause: [Array],
type: 'security_analytics_exception',
reason: 'Validation Failed: 1: Index patterns are not supported for doc level monitors.;',
caused_by: [Object]
},
status: 500
},
statusCode: 500,
response: '{"error":{"root_cause":[{"type":"security_analytics_exception","reason":"Validation Failed: 1: Index patterns are not supported for doc level monitors.;"}],"type":"security_analytics_exception","reason":"Validation Failed: 1: Index patterns are not supported for doc level monitors.;","caused_by":{"type":"action_request_validation_exception","reason":"Validation Failed: 1: Index patterns are not supported for doc level monitors.;"}},"status":500}',
toString: [Function (anonymous)],
toJSON: [Function (anonymous)]
}
Configuring the rule via the GUI, opensearch version: opensearch:3.5.0
Has anyone encountered this problem and knows how to solve it?
