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

From Wiki Aghanim
Jump to navigationJump to search
No edit summary
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
== Elasticsearch API Key ==
== Elasticsearch API Key ==
In order to POST or GET data from Elasticsearch, you need an 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:
* <code>manage_security</code>
* <code>manage_api_key</code>
* <code>manage_own_api_key</code>
# Open Kibana
# In the left sidebar, scroll down and click '''Stack Management'''
# Under '''Security''', click '''API Keys'''
# Click '''Create API key'''
# 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 <code>*</code> with privilege <code>write</code> to post data)
# Click '''Create API key'''
# '''Copy the key immediately''' — it is only shown once
== Your Project ==
[[Category:.NET]]
[[Category:CSharp]]
[[Category:Programming]]

Latest revision as of 13:05, 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