diff --git a/docs/my-website/docs/tutorials/elasticsearch_logging.md b/docs/my-website/docs/tutorials/elasticsearch_logging.md index 30528bcf0f..272346b7b3 100644 --- a/docs/my-website/docs/tutorials/elasticsearch_logging.md +++ b/docs/my-website/docs/tutorials/elasticsearch_logging.md @@ -233,42 +233,4 @@ litellm_settings: general_settings: master_key: sk-1234 otel: true -``` - -## Analytics Examples - -**Query traces by service:** -```bash -curl -X GET "localhost:9200/_search" -H "Content-Type: application/json" -d '{ - "query": { - "term": {"resource.service.name": "litellm"} - }, - "size": 10 -}' -``` - -**Filter by LLM model:** -```bash -curl -X GET "localhost:9200/_search" -H "Content-Type: application/json" -d '{ - "query": { - "term": {"attributes.model": "gpt-4.1"} - }, - "size": 10 -}' -``` - -**Aggregate response times:** -```bash -curl -X GET "localhost:9200/_search" -H "Content-Type: application/json" -d '{ - "size": 0, - "aggs": { - "avg_duration": { - "avg": { - "script": { - "source": "(doc[\"end_time\"].value - doc[\"start_time\"].value) / 1000000" - } - } - } - } -}' ``` \ No newline at end of file