Correct me if I'm wrong, but I'm under the impression that auditing cannot be enabled when using Elastic cloud. Whenever I add the following, I am unable to save my configurations due to the "Illegal user settings" error message.
xpack:
security:
audit:
enabled: true
curl --user <username>:<password> https://<clusterid>.us-east-1.aws.found.io:9243/error-test/logs/_bulk?pretty=True -XPOST -d '
{"index": {}}
{"title": "Two", "tags": ["ruby", "python"] }
{"index": {}}
{"title": "Three", "tags": ["java"] }
{"index": {}}
{"title": "Four", "tags": ["ruby", "php"] }
'
{
"took" : 23,
"errors" : false,
"items" : [
{
"index" : {
"_index" : "error-test",
"_type" : "logs",
"_id" : "AVr3y1VO7ApZg6ubVQzj",
"_version" : 1,
"result" : "created",
"_shards" : {
"total" : 3,
"successful" : 1,
"failed" : 0
},
"created" : true,
"status" : 201
}
},
{
"index" : {
"_index" : "error-test",
"_type" : "logs",
"_id" : "AVr3y1VO7ApZg6ubVQzk",
"_version" : 1,
"result" : "created",
"_shards" : {
"total" : 3,
"successful" : 1,
"failed" : 0
},
"created" : true,
"status" : 201
}
},
{
"index" : {
"_index" : "error-test",
"_type" : "logs",
"_id" : "AVr3y1VO7ApZg6ubVQzl",
"_version" : 1,
"result" : "created",
"_shards" : {
"total" : 3,
"successful" : 1,
"failed" : 0
},
"created" : true,
"status" : 201
}
}
]
}
I'm throughly confused. If I curl a bulk request, I seem to have no issue submitting those writes despite the issue I'm having in the OP.