From 38d1817c5064ec34e85a5e380414d78ade10becf Mon Sep 17 00:00:00 2001 From: Mike Birnstiehl Date: Mon, 27 Oct 2025 15:57:20 -0500 Subject: [PATCH] [Streams] Add bulk API example --- solutions/observability/streams/wired-streams.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/solutions/observability/streams/wired-streams.md b/solutions/observability/streams/wired-streams.md index 7c1fd9cd24..3acf7d485b 100644 --- a/solutions/observability/streams/wired-streams.md +++ b/solutions/observability/streams/wired-streams.md @@ -113,6 +113,19 @@ Use the **Custom Logs (Filestream)** integration to send data to wired streams: 1. Under **Where to add this integration**, select an agent policy that uses the output you configured in step 4. ::: +:::{tab-item} API + +Send data to the `/logs/` endpoint using the [Bulk API](https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-bulk). Refer to the following example for more information: + +```json +POST /logs/_bulk +{ "create": {} } +{ "@timestamp": "2025-05-05T12:12:12", "body": { "text": "Hello world!" }, "resource": { "attributes": { "host.name": "my-host-name" } } } +{ "create": {} } +{ "@timestamp": "2025-05-05T12:12:12", "message": "Hello world!", "host.name": "my-host-name" } +``` +::: + :::: ## View wired streams in Discover [streams-wired-streams-discover]