Skip to content

Add Elasticsearch Logging Tutorial #11761

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

colesmcintosh
Copy link
Collaborator

@colesmcintosh colesmcintosh commented Jun 16, 2025

Title

Add Elasticsearch Logging Tutorial

Relevant issues

Pre-Submission checklist

Please complete all items before asking a LiteLLM maintainer to review your PR

  • I have Added testing in the tests/litellm/ directory, Adding at least 1 test is a hard requirement - see details
  • I have added a screenshot of my new test passing locally
  • My PR passes all unit tests on make test-unit
  • My PR's scope is as isolated as possible, it only solves 1 specific problem

Type

📖 Documentation

Changes

  • Added comprehensive Elasticsearch logging tutorial at docs/my-website/docs/tutorials/elasticsearch_logging.md
  • Updated docs/my-website/sidebars.js to include the new tutorial in navigation
  • Tutorial covers:
    • Quick start setup with Docker
    • Configuration for both LiteLLM Proxy and Python SDK
    • Analytics examples with practical Elasticsearch queries
    • Production setup with Docker Compose
    • Complete logging payload specification reference

The tutorial provides a minimalist, clear guide for users to integrate LiteLLM with Elasticsearch for logging and analytics, addressing multiple user requests for this functionality.

Copy link

vercel bot commented Jun 16, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
litellm ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 25, 2025 10:15pm

@colesmcintosh colesmcintosh marked this pull request as ready for review June 16, 2025 13:26
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you add a screenshot of what the user can expect to see if this works?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bump on this? @colesmcintosh

@krrishdholakia krrishdholakia merged commit 51c1c7b into BerriAI:main Jun 25, 2025
6 checks passed

Send your LLM requests, responses, costs, and performance data to Elasticsearch for analytics and monitoring using OpenTelemetry.

![Elasticsearch Demo](../../img/elasticsearch_demo.png)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is wrong - it should render the image here @colesmcintosh

Use the Image import like here -

<Image img={require('../../img/arize.png')} />

krrishdholakia added a commit that referenced this pull request Jun 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants