Skip to main content

This skill may not reflect the latest upstream change

Next.js Releases update on 2026-11-09 may affect this skill Last checked Nov 25, 2026.

BuildOfficialCertifiedAI reviewed Jul 21, 2026

kibana-connectors

Create and manage Kibana connectors for Slack, PagerDuty, Jira, webhooks, and more via REST API or Terraform. Use when configuring third-party integrations or managing connectors as code.

v1.0.0New

Install this skill

No account required. Pick your tool, or use the command that detects it for you.

Run in your terminal. It detects your AI tool.

npx @skills-hub-ai/cli install elastic-kibana-connectors
Or get the file:
Browse all CLI commands →
Manual setup by platform

Claude Code

~/.claude/skills/elastic-kibana-connectors/SKILL.md

Setup guide →

Signing

SignedSLSA L2
Signed by
skills-hub.ai distributor
Method
Distributor-signed by skills-hub.aiSigned with the skills-hub.ai Ed25519 distributor key over this exact slug, version and content. Check it with `npx @skills-hub-ai/cli verify`.
Key
skills-hub-ed25519-2026-11
Signed
0Save

Instructions

Kibana Connectors

Core Concepts

Connectors store connection information for Elastic services and third-party systems. Alerting rules use connectors to
route actions (notifications) when rule conditions are met. Connectors are managed per Kibana Space and can be
shared across all rules within that space.

Connector Categories

CategoryConnector Types
LLM ProvidersOpenAI, Google Gemini, Amazon Bedrock, Elastic Managed LLMs, AI Connector, MCP (Preview, 9.3+)
Incident ManagementPagerDuty, Opsgenie, ServiceNow (ITSM, SecOps, ITOM), Jira, Jira Service Management (9.2+), IBM Resilient, Swimlane, Torq, Tines, D3 Security, XSOAR (9.1+), TheHive
Endpoint SecurityCrowdStrike, SentinelOne, Microsoft Defender for Endpoint
MessagingSlack (API / Webhook), Microsoft Teams, Email
Logging & ObservabilityServer log, Index, Observability AI Assistant
WebhookWebhook, Webhook - Case Management, xMatters
ElasticCases

Authentication

All connector API calls require API key auth or Basic auth. Every mutating request must include the kbn-xsrf header.

kbn-xsrf: true

Required Privileges

Access to connectors is granted based on your privileges to alerting-enabled features. You need all privileges for
Actions and Connectors in Stack Management.

API Reference

Base path: <kibana_url>/api/actions (or /s/<space_id>/api/actions for non-default spaces).

OperationMethodEndpoint
Create connectorPOST/api/actions/connector/{id}
Update connectorPUT/api/actions/connector/{id}
Get connectorGET/api/actions/connector/{id}
Delete connectorDELETE/api/actions/connector/{id}
Get all connectorsGET/api/actions/connectors
Get connector typesGET/api/actions/connector_types
Run connectorPOST/api/actions/connector/{id}/_execute

Creating a Connector

Required Fields

FieldTypeDescription
namestringDisplay name for the connector
connector_type_idstringThe connector type (e.g., .slack, .email, .webhook, .pagerduty, .jira)
configobjectType-specific configuration (non-secret settings)
secretsobjectType-specific secrets (API keys, passwords, tokens)

Example: Create a Slack Connector (Webhook)

curl -X POST "https://my-kibana:5601/api/actions/connector/my-slack-connector" \
  -H "kbn-xsrf: true" \
  -H "Content-Type: application/json" \
  -H "Authorization: ApiKey <your-api-key>" \
  -d '{
    "name": "Production Slack Alerts",
    "connector_type_id": ".slack",
    "config": {},
    "secrets": {
      "webhookUrl": "https://hooks.slack.com/services/T00/B00/XXXX"
    }
  }'

All connector types share the same request structure — only connector_type_id, config, and secrets differ. See the
Common Connector Type IDs table for available types and their required fields.

Example: Create a PagerDuty Connector

curl -X POST "https://my-kibana:5601/api/actions/connector/my-pagerduty" \
  -H "kbn-xsrf: true" \
  -H "Content-Type: application/json" \
  -H "Authorization: ApiKey <your-api-key>" \
  -d '{
    "name": "PagerDuty Incidents",
    "connector_type_id": ".pagerduty",
    "config": {
      "apiUrl": "https://events.pagerduty.com/v2/enqueue"
    },
    "secrets": {
      "routingKey": "your-pagerduty-integration-key"
    }
  }'

Updating a Connector

PUT /api/actions/connector/{id} replaces the full configuration. connector_type_id is immutable — delete and
recreate to change it.

Listing and Discovering Connectors

# Get all connectors in the current space
curl -X GET "https://my-kibana:5601/api/actions/connectors" \
  -H "Authorization: ApiKey <your-api-key>"

# Get available connector types
curl -X GET "https://my-kibana:5601/api/actions/connector_types" \
  -H "Authorization: ApiKey <your-api-key>"

# Filter connector types by feature (e.g., only those supporting alerting)
curl -X GET "https://my-kibana:5601/api/actions/connector_types?feature_id=alerting" \
  -H "Authorization: ApiKey <your-api-key>"

The GET /api/actions/connectors response includes referenced_by_count showing how many rules use each connector.
Always check this before deleting.

Running a Connector (Test)

Execute a connector action directly, useful for testing connectivity.

curl -X POST "https://my-kibana:5601/api/actions/connector/my-slack-connector/_execute" \
  -H "kbn-xsrf: true" \
  -H "Content-Type: application/json" \
  -H "Authorization: ApiKey <your-api-key>" \
  -d '{
    "params": {
      "message": "Test alert from API"
    }
  }'

Deleting a Connector

curl -X DELETE "https://my-kibana:5601/api/actions/connector/my-slack-connector" \
  -H "kbn-xsrf: true" \
  -H "Authorization: ApiKey <your-api-key>"

Warning: Deleting a connector that is referenced by rules will cause those rule actions to fail silently. Check
referenced_by_count first.

Terraform Provider

Use the elasticstack provider resource elasticstack_kibana_action_connector.

terraform {
  required_providers {
    elasticstack = {
      source  = "elastic/elasticstack"
    }
  }
}

provider "elasticstack" {
  kibana {
    endpoints = ["https://my-kibana:5601"]
    api_key   = var.kibana_api_key
  }
}

resource "elasticstack_kibana_action_connector" "slack" {
  name              = "Production Slack Alerts"
  connector_type_id = ".slack"

  config = jsonencode({})

  secrets = jsonencode({
    webhookUrl = "https://hooks.slack.com/services/T00/B00/XXXX"
  })
}

resource "elasticstack_kibana_action_connector" "index" {
  name              = "Alert Index Writer"
  connector_type_id = ".index"

  config = jsonencode({
    index              = "alert-history"
    executionTimeField = "@timestamp"
  })

  secrets = jsonencode({})
}

Key Terraform notes:

  • config and secrets must be JSON-encoded strings via jsonencode()
  • Secrets are stored in Terraform state; use a remote backend with encryption and restrict state file access
  • Import existing connectors:
    terraform import elasticstack_kibana_action_connector.my_connector <space_id>/<connector_id> (use default for the
    default space)
  • After import, secrets are not populated in state; you must supply them in config

Preconfigured Connectors (On-Prem)

For self-managed Kibana, connectors can be preconfigured in kibana.yml so they are available at startup without manual
creation:

xpack.actions.preconfigured:
  my-slack-connector:
    name: "Production Slack"
    actionTypeId: .slack
    secrets:
      webhookUrl: "https://hooks.slack.com/services/T00/B00/XXXX"
  my-webhook:
    name: "Custom Webhook"
    actionTypeId: .webhook
    config:
      url: "https://api.example.com/alerts"
      method: post
      hasAuth: true
    secrets:
      user: "alert-user"
      password: "secret-password"

Preconfigured connectors cannot be edited or deleted via the API or UI. They show is_preconfigured: true and omit
config and is_missing_secrets from API responses.

Networking Configuration

Customize connector networking (proxies, TLS, certificates) via kibana.yml:

# Global proxy for all connectors
xpack.actions.proxyUrl: "https://proxy.example.com:8443"

# Per-host TLS settings
xpack.actions.customHostSettings:
  - url: "https://api.example.com"
    ssl:
      verificationMode: full
      certificateAuthoritiesFiles: ["/path/to/ca.pem"]

Connectors in Kibana Workflows

Connectors serve as the integration layer across multiple Kibana workflows, not just alerting notifications:

WorkflowConnector TypesKey Pattern
ITSM ticketingServiceNow, Jira, IBM ResilientCreate ticket on active, close on Recovered
On-call escalationPagerDuty, Opsgenietrigger on active, resolve on Recovered; always set a deduplication key
Case managementCases (system action)UI-only; groups alerts into investigation Cases; can auto-push to ITSM
Messaging / awarenessSlack, Teams, EmailonActionGroupChange for incident channels; summaries for monitoring channels
Audit loggingIndexonActiveAlert to write full alert time-series to Elasticsearch
AI workflowsOpenAI, Bedrock, Gemini, AI ConnectorPowers Elastic AI Assistant and Attack Discovery; system-managed
Custom integrationsWebhookGeneric HTTP outbound with Mustache-templated JSON body

For detailed patterns, examples, and decision guidance for each workflow, see workflows.md.

Best Practices

  1. Use preconfigured connectors for production on-prem. They eliminate secret sprawl, survive Saved Object imports,
    and cannot be accidentally deleted. Reserve API-created connectors for dynamic or user-managed scenarios.

  2. Test connectors before attaching to rules. Use the _execute endpoint to verify connectivity. A misconfigured
    connector causes silent action failures that only appear in the rule's execution history.

  3. Check referenced_by_count before deleting. Deleting a connector used by active rules causes those actions to
    fail. List connectors and verify zero references, or reassign rules to a new connector first.

  4. Use the Email domain allowlist. The xpack.actions.email.domain_allowlist setting restricts which email domains
    connectors can send to. If you update this list, existing email connectors with recipients outside the new list will
    start failing.

  5. Secure secrets in Terraform. Connector secrets (API keys, passwords, webhook URLs) are stored in Terraform state.
    Use encrypted remote backends (S3+KMS, Azure Blob+encryption, GCS+CMEK) and restrict access to state files. Use
    sensitive = true on variables.

  6. One connector per service, not per rule. Create a single Slack connector and reference it from multiple rules.
    This centralizes secret rotation and reduces duplication.

  7. Use Spaces for multi-tenant isolation. Connectors are scoped to a Kibana Space. Create separate spaces for
    different teams or environments and configure connectors per space.

  8. Monitor connector health. Failed connector executions are logged in the event log index (.kibana-event-log-*).
    Connector failures report as successful to Task Manager but fail silently for alert delivery. Check the
    Event Log Index for true failure
    rates.

  9. Always configure a recovery action alongside the active action. Connectors for ITSM and on-call tools
    (ServiceNow, Jira, PagerDuty, Opsgenie) support a close/resolve operation. Without a recovery action, incidents
    remain open forever.

  10. Use deduplication keys for on-call connectors. Set dedupKey (PagerDuty) or alias (Opsgenie) to
    {{rule.id}}-{{alert.id}} to ensure the resolve event closes exactly the right incident. Without this, a new
    incident is created every time the alert re-fires.

  11. Prefer the Cases connector for investigation workflows. When an alert requires investigation with comments,
    attachments, and assignees, use Cases rather than a direct Jira/ServiceNow connector. Cases gives you a native
    investigation UI and can still push to ITSM via the Case's external connection.

  12. Use the Index connector for durable audit trails. The Index connector writes to Elasticsearch, making alert
    history searchable and dashboardable. Pair it with an ILM policy on the target index to control retention.

  13. Restrict connector access via Action settings. Use xpack.actions.enabledActionTypes to allowlist only the
    connector types your organization needs, and xpack.actions.allowedHosts to restrict outbound connections to known
    endpoints.

Common Pitfalls

  1. Missing kbn-xsrf header. All POST, PUT, DELETE requests require kbn-xsrf: true. Omitting it returns a 400
    error.

  2. Wrong connector_type_id. Use the exact string including the leading dot (e.g., .slack, not slack). Discover
    valid types via GET /api/actions/connector_types.

  3. Empty secrets object required. Even for connectors without secrets (e.g., .index, .server-log), you must
    provide "secrets": {} in the create request.

  4. Connector type is immutable. You cannot change the connector_type_id after creation. Delete and recreate
    instead.

  5. Secrets lost on export/import. Exporting connectors via Saved Objects strips secrets. After import, connectors
    show is_missing_secrets: true and a "Fix" button appears in the UI. You must re-enter secrets manually or via API.

  6. Preconfigured connectors cannot be modified via API. Attempting to update or delete a preconfigured connector
    returns 400. Manage them exclusively in kibana.yml.

  7. Rate limits from third-party services. Connectors that send high volumes of notifications (e.g., one per alert
    every minute) can hit Slack, PagerDuty, or email provider rate limits. Use alert summaries and action frequency
    controls on the rule side to reduce volume.

  8. Connector networking failures. Kibana must be able to reach the connector's target URL. Verify firewall rules,
    proxy settings, and DNS resolution. Use xpack.actions.customHostSettings for TLS issues.

  9. License requirements. Some connector types require a Gold, Platinum, or Enterprise license. Check the
    minimum_license_required field from GET /api/actions/connector_types. A connector that is
    enabled_in_config: true but enabled_in_license: false cannot be used.

  10. Terraform import does not restore secrets. When importing an existing connector into Terraform, the secrets are
    not read back from Kibana. You must provide them in your Terraform configuration, or the next terraform apply will
    overwrite them with empty values.

Common Connector Type IDs

Type IDNameLicense
.emailEmailGold
.slackSlack (Webhook)Gold
.slack_apiSlack (API)Gold
.pagerdutyPagerDutyGold
.jiraJiraGold
.servicenowServiceNow ITSMPlatinum
.servicenow-sirServiceNow SecOpsPlatinum
.servicenow-itomServiceNow ITOMPlatinum
.webhookWebhookGold
.indexIndexBasic
.server-logServer logBasic
.opsgenieOpsgenieGold
.teamsMicrosoft TeamsGold
.gen-aiOpenAIEnterprise
.bedrockAmazon BedrockEnterprise
.geminiGoogle GeminiEnterprise
.casesCasesPlatinum
.crowdstrikeCrowdStrikeEnterprise
.sentineloneSentinelOneEnterprise
.microsoft_defender_endpointMicrosoft Defender for EndpointEnterprise
.thehiveTheHiveGold

Note: Use GET /api/actions/connector_types to discover all available types on your deployment along with their
exact minimum_license_required values. Connector types for XSOAR, Jira Service Management, and MCP are available but
may not appear in older API spec versions.

Examples

Create a Slack connector: "Set up Slack notifications for our alerts." POST /api/actions/connector with
connector_type_id: ".slack" and secrets.webhookUrl. Use the returned connector id in rule actions.

Test a connector before attaching to rules: "Verify the PagerDuty connector works."
POST /api/actions/connector/{id}/_execute with a minimal params object to confirm connectivity before adding to any
rule.

Audit connector usage before deletion: "Remove the old email connector." GET /api/actions/connectors, inspect
referenced_by_count — if non-zero, reassign the referencing rules first, then DELETE /api/actions/connector/{id}.

Guidelines

  • Include kbn-xsrf: true on every POST, PUT, and DELETE; omitting it returns 400.
  • connector_type_id is immutable — delete and recreate to change connector type.
  • Always pass "secrets": {} even for connectors with no secrets (e.g., .index, .server-log).
  • Check referenced_by_count before deleting; a deleted connector silently breaks all referencing rule actions.
  • Connectors are space-scoped; prefix paths with /s/<space_id>/api/actions/ for non-default Kibana Spaces.
  • Secrets are write-only: not returned by GET and stripped on Saved Object export/import; always re-supply after import.
  • Test every new connector with _execute before attaching to rules; connector failures in production are silent.

Additional Resources

  • Kibana Connectors API Reference
  • Connectors Overview
  • Preconfigured Connectors
  • Alerting Settings (Action Config)
  • Terraform: elasticstack_kibana_action_connector
  • Terraform: Managing Kibana Rule and Connector Resources
This skill doesn’t include stateful context yet, instructions only. Learn about stateful skills.

Security

Loading security scan...

Reviews (0)

Browse all →
observability-service-reliabilityDesign and operate service reliability targets in Elastic Observability: choose an SLI type and a defensible target, pick a time window and budgeting method, create and maintain SLOs through the Kibana API, attach burn-rate alert rules, and decide when an SLO is the wrong instrument and a threshold rule, anomaly job, or synthetics monitor is right. Use when defining or reviewing SLOs and error budgets, tuning burn-rate alerting, reducing alert noise, or setting up availability monitoring for a user-facing endpoint.0 installskibana-auditEnable and configure Kibana audit logging for saved object access, logins, and space operations. Use when setting up Kibana audit, filtering events, or correlating Kibana and ES audit logs.0 installselasticsearch-anomaly-detection-explainerExplain Elasticsearch ML anomaly detection scores, model behavior, and result interpretation. Use when the user asks why a score is high or low, how the model learns, what the numbers mean, or how to troubleshoot unexpected anomaly scores.0 installsobservability-service-healthAssess APM service health using SLOs, alerts, ML, throughput, latency, error rate, and dependencies. Use when checking service status, performance, or when the user asks about service health.0 installsobservability-sre-triageTriage a degraded or suspect service end to end: read SLO status and burn rate, check active alerting rules and ML anomalies, measure throughput, latency, and error rate, assess dependency health and infrastructure saturation, and funnel logs down to the failures that explain it. Use when someone asks whether a service is healthy, why it is slow or erroring, what is in its logs, or which attribute distinguishes the requests that are failing. Also use when someone asks for the query behind any of those signals — throughput, latency percentiles, error rate, dependency health, or log volume — over APM/OTel traces, metrics, or logs.0 installskibana-alerting-rulesCreate and manage Kibana alerting rules and the action policies that notify on their alerts, for both Universal Alerting and classic alerting. Use when the user wants to be alerted or notified about conditions in their data, change where or how often alerts notify (including snoozing notifications), edit, enable, disable, or delete existing rules or action policies, or list existing alerting, including managing rules with Terraform. Not for Security detection rules.0 installs

More from Elastic

View source →
cloud-network-securityManage Serverless network security (traffic filters): create, update, and delete IP filters and AWS PrivateLink VPC filters. Use when restricting network access or configuring private connectivity.1 installscloud-provisioningProvision and operate Elastic Cloud infrastructure: create, connect to, update, and delete Serverless projects (Elasticsearch, Observability, Security); manage traffic filters (IP and AWS PrivateLink network security); and manage the lifecycle of Elastic Cloud Hosted deployments. Use when creating or performing day-2 operations on serverless projects or hosted deployments, or restricting their network access.1 installselasticsearch-cluster-healthDiagnose a non-green Elasticsearch cluster and surface the single most likely cause with remediation. Use when an operator reports yellow or red status, unassigned shards, allocation failures, or wants read-only triage before deeper investigation. Teaches replica-vs-primary impact, allocation decider classification, and data-loss awareness.0 installselasticsearch-query-optimizationDiagnose slow Elasticsearch Query DSL searches and propose measured fixes. Use when a search is slow, profile output shows an expensive clause, exact-match filters sit in scoring context, or leading wildcards dominate latency. Ground every recommendation in search profiling — move non-scoring clauses to filter context, eliminate leading wildcards, and re-profile to confirm improvement.0 installsobservability-edot-java-instrumentInstrument a Java application with the Elastic Distribution of OpenTelemetry (EDOT) Java agent for automatic tracing, metrics, and logs. Use when adding observability to a Java service that has no existing APM agent.0 installselasticsearch-index-designDesign and review Elasticsearch index mappings for stated access patterns: correct field types, text+keyword multi-fields, doc_values tuning, mapping-explosion avoidance, and explicit shard settings. Use when creating a new index, reviewing a mapping for storage or query performance, fixing wrong field types, or when the user asks which type to use for search, filter, sort, or aggregation on a field.0 installs

More Build skills

Browse category →
senior-frontendBuild and review React, Next.js, TypeScript or Tailwind frontends: components, scaffolding, performance and bundle size. Use whenever the user wants a new component or app, a page feels slow, the bundle is too big, or asks for a frontend code review.638 installsui-design-systemUse when building a design system: tokens, component docs, responsive scales or developer handoff. Generates tokens with design_token_generator.py.539 installsfrontend-designGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.349 installssenior-backendBuild and fix backend services: REST or GraphQL APIs, auth, microservices, PostgreSQL queries, migrations and load tests. Use whenever the user's API is slow or broken, needs login or auth added, a schema change, or a new endpoint or service scaffolded.249 installsself-improving-agentCurate what the agent has learned into durable project knowledge. Reviews Claude Code auto-memory (MEMORY.md and its topic files) for learnings worth keeping, promotes proven ones into CLAUDE.md or .claude/rules/, records a correction as a lesson that persists across sessions, prunes stale or duplicate entries, and turns a recurring fix into a reusable skill. Use whenever the user asks what you have learned or saved about the project, which memories should become permanent rules, to remember a lesson or stop repeating a mistake, or to clean up, audit or check memory health.177 installsusing-superpowersUse when starting any conversation - establishes how to find and use skills, requiring skill invocation before ANY response including clarifying questions146 installs

Frequently asked questions about kibana-connectors

What does the kibana-connectors skill do?

Create and manage Kibana connectors for Slack, PagerDuty, Jira, webhooks, and more via REST API or Terraform. Use when configuring third-party integrations or managing connectors as code. It's a reusable SKILL.md instruction set that loads into your AI coding assistant on demand, no prompt engineering, no copy-pasting every session.

How do I install the kibana-connectors skill?

Run `npx @skills-hub-ai/cli install elastic-kibana-connectors` from your terminal. The CLI writes the SKILL.md to the correct location for your AI tool (e.g. ~/.claude/skills/elastic-kibana-connectors/ for Claude Code or ~/.cursor/skills/ for Cursor with --target cursor) and adds it to your project's .skills.json lockfile.

Which AI tools does kibana-connectors work with?

kibana-connectors runs in Claude Code. It follows the open Agent Skills standard (SKILL.md), so the same skill works in every supported tool without modification.

Is the kibana-connectors skill free?

Yes. Every skill on skills-hub.ai is free and open-source. There are no premium tiers, paywalls, or usage limits. You only pay for whatever AI assistant you're already using.

How do I use kibana-connectors after installing it?

In Claude Code, type `/elastic-kibana-connectors` (or whatever slash command the skill registers) and the AI follows the skill's instructions immediately. You can also reference it by name in natural language, your AI loads the skill into context when relevant.

Can I share the kibana-connectors skill with my team?

Yes. Commit your project's .skills.json lockfile and teammates run `npx @skills-hub-ai/cli install` (no args) to install every skill at the exact version you pinned. Organization-scoped installs work via skills-hub.ai organizations.