Kibana: Difference between revisions

From Halfface
Jump to navigationJump to search
Line 5: Line 5:
==Add user==
==Add user==
  curl -sk -u "${ELASTIC_USERNAME}:${ELASTIC_PASSWORD}" \
  curl -sk -u "${ELASTIC_USERNAME}:${ELASTIC_PASSWORD}" \
   -X PUT https://localhost:9200/_security/user/new_user \
   -X PUT https://localhost:9200/_security/user/<username> \
   -H "Content-Type: application/json" \
   -H "Content-Type: application/json" \
   -d '{
   -d '{
     "password" : "<password>",
     "password" : "<password>",
     "roles" : [ "superuser", "kibana_admin" ],
     "roles" : [ "superuser", "kibana_admin" ],
     "full_name" : "Andreas Bjorklund",
     "full_name" : "<full_name>",
     "email" : "email@addre.ss"
     "email" : "<email@address>"
   }'
   }'
==Search for pod name==
==Search for pod name==
  kubernetes.pod_name : community-operators-*
  kubernetes.pod_name : community-operators-*

Revision as of 08:24, 16 May 2025

how to master kibana

elasticsearch

List users

curl -sk -X GET "https://localhost:9200/_security/user" -u "${ELASTIC_USERNAME}:${ELASTIC_PASSWORD}" -H "Content-Type: application/json" | jq .

Add user

curl -sk -u "${ELASTIC_USERNAME}:${ELASTIC_PASSWORD}" \
 -X PUT https://localhost:9200/_security/user/<username> \
 -H "Content-Type: application/json" \
 -d '{
   "password" : "<password>",
   "roles" : [ "superuser", "kibana_admin" ],
   "full_name" : "<full_name>",
   "email" : "<email@address>"
 }'

Search for pod name

kubernetes.pod_name : community-operators-*