docs: remove analytics examples from Elasticsearch logging tutorial

This commit is contained in:
Cole McIntosh
2025-06-16 12:01:30 -06:00
parent 05514681cc
commit 11396b936a
@@ -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"
}
}
}
}
}'
```