Skip to content

Feature/openclaw integration#17936

Open
oldcodeoberyn wants to merge 26 commits intoelastic:mainfrom
oldcodeoberyn:feature/openclaw-integration
Open

Feature/openclaw integration#17936
oldcodeoberyn wants to merge 26 commits intoelastic:mainfrom
oldcodeoberyn:feature/openclaw-integration

Conversation

@oldcodeoberyn
Copy link
Contributor

  • Enhancement

Proposed commit message

WHAT:

  • Introduced the sessions data stream for the OpenClaw integration.
  • Implemented an Elasticsearch ingest pipeline to parse OpenClaw session logs and extract key observability metrics, including session operations, token consumption (prompt/completion), and LLM cost.
  • Added a comprehensive Kibana dashboard (OpenClaw Overview) to visualize session activities, usage trends, and token costs.
  • Included pipeline test cases (test-sessions.log and expected JSON outputs) to ensure reliable log parsing.

WHY:

  • To provide full visibility into AI agent (OpenClaw) operations.
  • This initial phase focuses on helping administrators and developers monitor session behavior, audit token consumption, and accurately track LLM usage costs within their Elasticsearch clusters.

Checklist

  • I have reviewed tips for building integrations and this pull request is aligned with them.
  • I have verified that all data streams collect metrics or logs.
  • I have added an entry to my package's changelog.yml file.
  • I have verified that Kibana version constraints are current according to guidelines.
  • I have verified that any added dashboard complies with Kibana's Dashboard good practices

Author's Checklist

  • Pipeline tests pass successfully (elastic-package test pipeline).
  • Dashboards render correctly with the newly extracted token and cost fields.
  • Package builds successfully (elastic-package build).

How to test this PR locally

  1. Navigate to the integration directory:
    cd packages/openclaw
  2. Run pipeline tests to verify the ingest pipeline logic against the provided log samples:
    elastic-package test pipeline

Related issues

⦁N/A

Screenshots

image

@oldcodeoberyn oldcodeoberyn requested review from a team as code owners March 21, 2026 04:43
@github-actions
Copy link
Contributor

github-actions bot commented Mar 21, 2026

✅ Vale Linting Results

No issues found on modified lines!


The Vale linter checks documentation changes against the Elastic Docs style guide.

To use Vale locally or report issues, refer to Elastic style guide for Vale.

@elastic-vault-github-plugin-prod
Copy link

elastic-vault-github-plugin-prod bot commented Mar 21, 2026

🚀 Benchmarks report

Package bluecoat 👍(0) 💚(0) 💔(1)

Expand to view
Data stream Previous EPS New EPS Diff (%) Result
director 26315.79 21739.13 -4576.66 (-17.39%) 💔

To see the full report comment with /test benchmark fullreport

@andrewkroh andrewkroh added New Integration Issue or pull request for creating a new integration package. dashboard Relates to a Kibana dashboard bug, enhancement, or modification. documentation Improvements or additions to documentation. Applied to PRs that modify *.md files. labels Mar 23, 2026
@elasticmachine
Copy link

⏳ Build in-progress, with failures

Failed CI Steps

History

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dashboard Relates to a Kibana dashboard bug, enhancement, or modification. documentation Improvements or additions to documentation. Applied to PRs that modify *.md files. New Integration Issue or pull request for creating a new integration package.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants