Skip to main content

kibana-api

Shared utilities for interacting with a local Kibana instance. Provides auto-detection of Kibana URL and auth, and a kibana_curl wrapper.

소스 정보

저장소
elastic/kibana
최근 소스 활동
2026년 4월 21일 22:33
감지된 SKILL.md 언어
영어
스타
21,236
포크
8,623

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
kibana-api
description
Shared utilities for interacting with a local Kibana instance. Provides auto-detection of Kibana URL and auth, and a kibana_curl wrapper.
user-invocable
false
# Kibana API Utilities This skill provides shared shell utilities for other skills that need to call Kibana APIs. ## Usage Source `scripts/kibana_api_common.sh` from any skill script: ```bash REPO_ROOT="$(git rev-parse --show-toplevel)" source "$REPO_ROOT/scripts/kibana_api_common.sh" ``` After sourcing, the following are available: - **`KIBANA_URL`** — Detected base URL (e.g., `http://localhost:5601`) - **`KIBANA_AUTH`** — Detected credentials (e.g., `elastic:changeme`) - **`kibana_curl [curl args...]`** — curl wrapper with auth, `kbn-xsrf`, `x-elastic-internal-origin`, and TLS flags pre-configured ## Auto-Detection Tries these permutations automatically: - URLs: `http://localhost:5601`, `https://localhost:5601` - Auth: `elastic:changeme`, `elastic_serverless:changeme` Override with environment variables `KIBANA_URL` and/or `KIBANA_AUTH` before sourcing. ## Session Auth (Acting as a Browser User) By default, `kibana_curl` authenticates via HTTP Basic auth, which uses the `__http__` auth provider. This is a different auth realm than the browser, which uses the `basic` provider. Any per-user state tied to a browser session (e.g. OAuth tokens, user-specific settings) will not be visible to API calls made with HTTP Basic auth. To authenticate in the same auth realm as a browser user, set `KIBANA_USE_SESSION=true` before sourcing: ```bash export KIBANA_USE_SESSION=true REPO_ROOT="$(git rev-parse --show-toplevel)" source "$REPO_ROOT/scripts/kibana_api_common.sh" ``` This logs in via the `basic` auth provider and uses a session cookie for all subsequent `kibana_curl` calls. The default behavior is unchanged when the variable is unset or `false`.
GitHub에서 보기