Programming/How To Post data to Elasticsearch: Difference between revisions

From Wiki Aghanim
Jump to navigationJump to search
No edit summary
No edit summary
Line 22: Line 22:




(category
[[Category:.NET]]
[[Category:CSharp]]
[[Category:Programming]]

Revision as of 12:26, 26 February 2026

Elasticsearch API Key

In order to POST or GET data from Elasticsearch, you need an API key.

You must have one of the following cluster privileges:

  • manage_security
  • manage_api_key
  • manage_own_api_key
  1. Open Kibana
  2. In the left sidebar, scroll down and click Stack Management
  3. Under Security, click API Keys
  4. Click Create API key
  5. Fill in the following fields:
    • Name — give it a meaningful name
    • Expiration — optional, leave blank for no expiration
    • Privileges — set index/cluster permissions (e.g. index * with privilege write to post data)
  6. Click Create API key
  7. Copy the key immediately — it is only shown once


Your Project