-
Notifications
You must be signed in to change notification settings - Fork 8.5k
[Streams] Add curl/HTTP example to Logs Stream onboarding #241073
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Co-authored-by: flash1293 <[email protected]>
🤖 GitHub commentsExpand to view the GitHub comments
Just comment with:
|
|
Pinging @elastic/streams-program-team (Team:streams-program) |
|
@copilot see above |
Co-authored-by: flash1293 <[email protected]>
Added the description text above the curl code block in commit b989f98. The curl tab now displays:
The description only appears when the Curl tab is selected, matching the pattern used for the Fleet tab. |
|
@copilot looks good to me, please change the tab name to curl/HTTP instead to be more precise |
Co-authored-by: flash1293 <[email protected]>
flash1293
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
/ci |
|
run docs-build |
|
run docs-build |
|
/ci |
💛 Build succeeded, but was flaky
Failed CI StepsTest Failures
Metrics [docs]Async chunks
History
cc @flash1293 @Copilot |
klacabane
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
…1073) Adds a curl/HTTP tab to the Streams Settings flyout onboarding, providing users with a direct HTTP example for ingesting logs via the `_bulk` API. ## Changes - Added curl/HTTP as fifth shipper option alongside OTel, Filebeat, Logstash, and Fleet - Added descriptive text above the curl code block explaining how to use the Bulk API, with a link to the Elasticsearch Bulk API documentation - Added NDJSON bulk API example showing two log ingestion patterns: - Structured format with nested `body` and `resource.attributes` - Flat format with top-level `message` and `host.name` - Configured JSON syntax highlighting for curl/HTTP tab (other tabs remain YAML) ```typescript // Example displayed in curl/HTTP tab 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" } ``` Aligns with <a href="https://github.com/elastic/docs-content/pull/3683">docs-content#3683</a>. Fixes elastic#241059 <!-- START COPILOT CODING AGENT SUFFIX --> <details> <summary>Original prompt</summary> > > ---- > > *This section details on the original issue you should resolve* > > <issue_title>[Streams] Add curl example to Logs Stream onboarding</issue_title> > <issue_description>similar to the docs change, let's add one tab with the same curl snippet: > > elastic/docs-content#3683 > > <img width="1410" height="1322" alt="Image" src="https://github.com/user-attachments/assets/0995ec98-0c65-49bb-8eff-bce7b836d071" /></issue_description> > > ## Comments on the Issue (you are @copilot in this section) > > <comments> > <comment_new><author>@elasticmachine</author><body> > Pinging @elastic/obs-ux-logs-team (Team:obs-ux-logs)</body></comment_new> > <comment_new><author>@flash1293</author><body> > The tabs in `x-pack/platform/plugins/shared/streams_app/public/components/stream_list_view/streams_settings_flyout.tsx` need to be extended for this. The tab should be called `curl`, the content should be > > ``` > 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" } > ```</body></comment_new> > </comments> > </details> - Fixes elastic#241059 <!-- START COPILOT CODING AGENT TIPS --> --- 💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more [Copilot coding agent tips](https://gh.io/copilot-coding-agent-tips) in the docs. --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: flash1293 <[email protected]>


Adds a curl/HTTP tab to the Streams Settings flyout onboarding, providing users with a direct HTTP example for ingesting logs via the
_bulkAPI.Changes
bodyandresource.attributesmessageandhost.nameAligns with docs-content#3683.
Fixes #241059
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.