> ## Documentation Index
> Fetch the complete documentation index at: https://docs.molesignal.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Elasticsearch _bulk

> 直接替代 Elasticsearch _bulk 接入。

```http theme={null}
POST /api/v1/_bulk
```

Elasticsearch `_bulk` 兼容 NDJSON 接入，适配 Filebeat、Logstash 与 Vector ES sink。
`index`、`create`、`update` 会写入；`delete` 会被确认但不会删除遥测数据。`_index` 选择目标日志流，
缺失时依次使用 `stream-name` 请求头和 `default`。支持 gzip 请求体。

通过 `Authorization: Bearer ...` 发送 JWT 或 `ms_*` API Token，主体需要
`streams.write`。成功响应包含 Elasticsearch 兼容的 `errors` 与 `items[]`。
