Skip to content
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

http adding endpoint to ingest data with #8067

Merged
merged 10 commits into from
Sep 13, 2024
13 changes: 12 additions & 1 deletion _data-prepper/pipelines/configuration/sources/http.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ redirect_from:

# http

The `http` plugin accepts HTTP requests from clients. Currently, `http` only supports the JSON UTF-8 codec for incoming requests, such as `[{"key1": "value1"}, {"key2": "value2"}]`. The following table describes options you can use to configure the `http` source.
The `http` plugin accepts HTTP requests from clients. The following table describes options you can use to configure the `http` source.

Option | Required | Type | Description
:--- | :--- | :--- | :---
Expand All @@ -36,6 +36,17 @@ aws_region | Conditionally | String | AWS region used by ACM or Amazon S3. Requi

Content will be added to this section.--->

## Ingestion
Clients should send HTTP `POST` requests to the endpoint `/log/ingest`
vagimeli marked this conversation as resolved.
Show resolved Hide resolved

Currently, `http` only supports the JSON UTF-8 codec for incoming requests, such as `[{"key1": "value1"}, {"key2": "value2"}]`.
vagimeli marked this conversation as resolved.
Show resolved Hide resolved

**Example: Ingest data with cURL**
vagimeli marked this conversation as resolved.
Show resolved Hide resolved

The following example shows ingesting data with cURL:
vagimeli marked this conversation as resolved.
Show resolved Hide resolved

`curl "http://localhost:2021/log/ingest" --data '[{"key1": "value1"}, {"key2": "value2"}]'`

## Metrics

The `http` source includes the following metrics.
Expand Down
Loading