Kibana: Difference between revisions
From Halfface
Jump to navigationJump to search
No edit summary |
|||
Line 16: | Line 16: | ||
==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 . |
Revision as of 08:34, 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-*
kibana
status of kibana
curl -sk -u "${ELASTIC_USERNAME}:${ELASTIC_PASSWORD}" http://$(hostname -i):5601/api/status | jq .