> ## Documentation Index
> Fetch the complete documentation index at: https://portkey-docs-mintlify-enhance-budget-policies-param-docs-45.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Insert a Log

> Submit one or more log entries

The log object comprises of 3 parts:

| Part       | Accepted Values                                                                                                                    |
| :--------- | :--------------------------------------------------------------------------------------------------------------------------------- |
| `request`  | `url`, `provider`, `headers`, `method` (defaults to `post`), and `body`                                                            |
| `response` | `status` (defaults to 200), `headers`, `body`, `time` (response latency), and `streamingMode` (defaults to false), `response_time` |
| `metadata` | `organization`, `user`, tracing info (`traceId`, `spanId`, `spanName`, `parentSpanId`), and any `key:value` pair                   |
