kibana-audit

kibana-audit is a skill for Claude Code, Codex from aspectrr/deer. It costs 46 tokens per session (776 once invoked), scanned A, original, MIT.

A configuration guide for Kibana audit logging, which records security-related activity in Kibana, Elasticsearch's web interface. It covers saved-object access, logins, sessions, and space changes.

In plain words
What is it for?
Use it to enable audit logs, choose a rolling log file, configure retention, filter event types, and relate Kibana events to Elasticsearch audit logs.
Why use it?
It helps administrators create a record of who accessed or changed Kibana resources and filter events that are not useful for their audit needs.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to enable audit logs, choose a rolling log file, configure retention, filter event types, and relate Kibana events to Elasticsearch audit logs.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/aspectrr/deer/kibana-audit
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add aspectrr/deer --skill kibana-audit
Clone the repo
git clone --depth 1 https://github.com/aspectrr/deer

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for kibana-audit

README.md
[![agentmods](https://agentmods.dev/badge/skills/aspectrr/deer/kibana-audit.svg)](https://agentmods.dev/skills/aspectrr/deer/kibana-audit)
Your own site
<a href="https://agentmods.dev/skills/aspectrr/deer/kibana-audit"><img src="https://agentmods.dev/badge/skills/aspectrr/deer/kibana-audit.svg" alt="Measured on agentmods" height="20"></a>
Per session 46 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 776 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00046 $0.00776
Opus 5 $0.00023 $0.00388
Sonnet 5 $0.00009 $0.00155
Haiku 4.5 $0.00005 $0.00078

Measured 8d ago against content hash f9cebff0e8cf, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

kibana-audit scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -X POST "${ELASTICSEARCH_URL}/.security-audit-*/_search" \
deer-cli/internal/skill/defaults/kibana-audit/SKILL.md · 106 lines

How it starts

The opening of the file, as written. The whole thing — 106 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Kibana Audit Logging

Enable and configure audit logging for Kibana via kibana.yml. Covers application-layer security events: saved object CRUD, login/logout, session expiry, and space operations.

Enable Kibana Audit Logging

xpack.security.audit.enabled: true
xpack.security.audit.appender:
  type: rolling-file
  fileName: /path/to/kibana/data/audit.log
  policy:
    type: time-interval
    interval: 24h
  strategy:
    type: numeric
    max: 10

A Kibana restart is required after changes.

Event Types

Event action Description
saved_object_create A saved object was created
saved_object_get A saved object was read
saved_object_update A saved object was updated
saved_object_delete A saved object was deleted
saved_object_find A saved object search was performed
login A user logged in (success or failure)
logout A user logged out
session_cleanup An expired session was cleaned up
space_create/update/delete Space operations

Filter Policies

xpack.security.audit.ignore_filters:
  - actions: [saved_object_find]
    categories: [database]

Correlate with ES Audit Logs

Both Kibana and ES record the same trace.id (via X-Opaque-Id header). This is the primary correlation key.

Search ES audit by trace ID

curl -X POST "${ELASTICSEARCH_URL}/.security-audit-*/_search" \
  <auth_flags> \
  -H "Content-Type: application/json" \
  -d '{
    "query": {
      "bool": {
        "filter": [
          { "term": { "trace.id": "'"${TRACE_ID}"'" } },
          { "range": { "@timestamp": { "gte": "now-24h" } } }
        ]
      }
    },
    "sort": [{ "@timestamp": { "order": "asc" } }]
  }'

Read the full file on GitHub · 106 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 106 lines · 46 tokens per session scan A f9cebff0e8cf

Subscribe to this mod's changes

kibana-audit is a skill published in the GitHub repository aspectrr/deer (404 stars, last pushed 4mo ago), licensed MIT. It adds 46 tokens to every session and 776 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.