k6-docs
k6-docs copied to clipboard
Documentation feedback: /docs/sources/k6/v1.3.x/results-output/real-time/elasticsearch.md
It would be very helpful if you could list the necessary Elastic index privileges required to be able to use the extension with an API Key, I had to figure this out by trial and error e.g. something like:
{
"write-k6-metrics": {
"cluster": [],
"indices": [
{
"names": [
"k6-metrics"
],
"privileges": [
"all"
],
"allow_restricted_indices": false
}
],
"applications": [],
"run_as": [],
"metadata": {},
"transient_metadata": {
"enabled": true
}
}
}
@rjsmith I’d like to work on this for Hacktoberfest if it’s still available.
Hi, I found the answer buried in the xk6 elasticsearch extension code, but it would be very useful to state that in the docs also...
https://github.com/elastic/xk6-output-elasticsearch/blob/c728320d63c3d8248a255fbc8e0feda41434a598/pkg/esoutput/esoutput.go#L66-L77