Kibana: Difference between revisions

From Halfface
Jump to navigationJump to search
 
(One intermediate revision by the same user not shown)
Line 3: Line 3:
==List users==
==List users==
  curl -sk -X GET "https://localhost:9200/_security/user" -u "${ELASTIC_USERNAME}:${ELASTIC_PASSWORD}" -H "Content-Type: application/json" | jq .
  curl -sk -X GET "https://localhost:9200/_security/user" -u "${ELASTIC_USERNAME}:${ELASTIC_PASSWORD}" -H "Content-Type: application/json" | jq .
==delete user==
curl -sk -X DELETE -u "${ELASTIC_USERNAME}:${ELASTIC_PASSWORD}" 'https://localhost:9200/_security/user/<username>'
==Add user==
==Add user==
  curl -sk -u "${ELASTIC_USERNAME}:${ELASTIC_PASSWORD}" \
  curl -sk -u "${ELASTIC_USERNAME}:${ELASTIC_PASSWORD}" \
Line 16: Line 19:
==Search for pod name==
==Search for pod name==
  kubernetes.pod_name : community-operators-*
  kubernetes.pod_name : community-operators-*
=kibana=
==status of kibana==
curl -sk -u "${ELASTIC_USERNAME}:${ELASTIC_PASSWORD}" http://$(hostname -i):5601/api/status | jq .

Latest revision as of 08:58, 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 .

delete user

curl -sk -X DELETE -u "${ELASTIC_USERNAME}:${ELASTIC_PASSWORD}" 'https://localhost:9200/_security/user/<username>'

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-*

kibana

status of kibana

curl -sk -u "${ELASTIC_USERNAME}:${ELASTIC_PASSWORD}" http://$(hostname -i):5601/api/status | jq .