Kibana: Difference between revisions

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

Revision as of 08:09, 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/new_user \
 -H "Content-Type: application/json" \
 -d '{
   "password" : "<password>",
   "roles" : [ "superuser", "kibana_admin" ],
   "full_name" : "Andreas Bjorklund",
   "email" : "email@addre.ss"
 }'

Search for pod name

kubernetes.pod_name : community-operators-*