kibana-data-views

Create and manage Kibana data views via management APIs.

6|Updated Feb 20, 2026
One-click install
npx skills add https://github.com/patrykkopycinski/elastic-cursor-plugin --skill kibana-data-views
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: kibana-data-views
Source: https://github.com/patrykkopycinski/elastic-cursor-plugin/tree/main/.cursor/skills/kibana-data-views
Command: npx skills add https://github.com/patrykkopycinski/elastic-cursor-plugin --skill kibana-data-views

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Helps users create, list, and manage Kibana data views (index patterns) so dashboards, Discover, and Lens can query the correct indices without manual UI navigation or guesswork.

Core Features & Use Cases

  • Prompt clarification: Ask for index pattern, time field, and optional display name to avoid ambiguous or duplicate data views.
  • Discovery: Use configured Kibana endpoints to list existing data views and prevent collisions.
  • Provision & Validate: Guide users through creating data views in Stack Management and verifying them in Discover; recommend one view per logical dataset (logs, metrics, APM).

Quick Start

Create a Kibana data view for indices matching logs-* with @timestamp as the time field.

Frequently Asked Questions about kibana-data-views

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create Kibana data views for logs and metrics without using the UI?

You can create Kibana data views by specifying an index pattern, time field, and display name via configured Kibana management APIs. This provisions index patterns for logs and metrics without manual UI navigation.

What are Kibana data views and when do I need them for dashboards?

Kibana data views, formerly known as index patterns, define which Elasticsearch indices Discover, Dashboards, and Lens can query. You need them to structure and visualize logs, metrics, and application data correctly.

How do I list existing Kibana index patterns to prevent duplicate data views?

You can list existing Kibana index patterns by using configured Kibana endpoints to discover data views. This discovery process checks current patterns to avoid collisions and duplicates before provisioning new ones.

Do I need authenticated access to manage Kibana index patterns via API?

Yes, managing Kibana index patterns via API requires authenticated access to Kibana management endpoints. You must configure a KIBANA_URL and valid credentials to call the listing and creation endpoints successfully.

What is the best way to organize Kibana data views for multiple datasets?

The best approach is maintaining one data view per logical dataset, such as separate views for logs, metrics, and APM. Specify the correct index pattern and time field for each to ensure accurate querying.

How do I validate a newly created Kibana data view in Discover?

After creating a data view in Stack Management, validate it by opening Discover and querying the targeted indices. Confirm the time field and index pattern align correctly to ensure dashboards and Lens visualize the data properly.