Kibana: Difference between revisions
From Halfface
Jump to navigationJump to search
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
=how to master kibana= | =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== | ==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 .