Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/COMMANDS.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ pup slos get abc-123-def
```bash
pup logs search --query="status:error" --from="1h"
pup logs search --query="service:api" --from="7d" --storage="flex"
pup logs query --query="service:api" --index="main,security" --from="1h"
pup dbm samples search --query="dbm_type:activity service:orders env:prod" --from="1h" --limit=10
pup metrics search --query="avg:system.cpu.user{*}" --from="1h"
pup metrics query --query="avg:system.cpu.user{*}" --from="1h"
Expand Down
12 changes: 12 additions & 0 deletions docs/EXAMPLES.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,10 @@ pup logs search \
--query="service:api" \
--from="2024-02-04T10:00:00Z" \
--to="2024-02-04T11:00:00Z"

# Search specific indexes (comma-separated or repeated)
pup logs query --query="service:api" --index="main,security" --from="1h"
pup logs query --query="service:api" --index="main" --index="security" --from="1h"
```

### Aggregate Logs
Expand Down Expand Up @@ -156,6 +160,14 @@ pup logs aggregate \
--from="1h" \
--compute="count,avg(@duration),percentile(@duration, 95)" \
--group-by="service,status"

# Aggregate a specific index
pup logs aggregate \
--query="service:web-app" \
--index="main" \
--from="1h" \
--compute="count" \
--group-by="status"
```

### Search Logs in Specific Storage Tier
Expand Down
3 changes: 3 additions & 0 deletions docs/LLM_GUIDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,9 @@ pup logs aggregate --query="env:prod" --from=30m --compute="percentile(@duration

# Storage tiers
pup logs search --query="*" --from=30d --storage="flex"

# Specific indexes
pup logs query --query="*" --index="main,security" --from=1h
```

### Metrics
Expand Down
Loading
Loading