k6-docs icon indicating copy to clipboard operation
k6-docs copied to clipboard

Documentation feedback: /docs/sources/k6/v1.3.x/results-output/real-time/elasticsearch.md

Open rjsmith opened this issue 2 months ago • 2 comments

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 avatar Oct 02 '25 09:10 rjsmith

@rjsmith I’d like to work on this for Hacktoberfest if it’s still available.

prabhakaran-jm avatar Oct 04 '25 20:10 prabhakaran-jm

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

rjsmith avatar Oct 09 '25 09:10 rjsmith