mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-23 20:37:12 +01:00
docs: mention HTTP sink configuration example for Vector
Follow-up 16eeb4e
Signed-off-by: hagen1778 <roman@victoriametrics.com>
This commit is contained in:
parent
9064602d00
commit
4f55aa29db
@ -11,6 +11,9 @@ aliases:
|
|||||||
---
|
---
|
||||||
# Vector setup
|
# Vector setup
|
||||||
|
|
||||||
|
|
||||||
|
## Elasticsearch sink
|
||||||
|
|
||||||
Specify [Elasticsearch sink type](https://vector.dev/docs/reference/configuration/sinks/elasticsearch/) in the `vector.toml`
|
Specify [Elasticsearch sink type](https://vector.dev/docs/reference/configuration/sinks/elasticsearch/) in the `vector.toml`
|
||||||
for sending the collected logs to [VictoriaLogs](https://docs.victoriametrics.com/VictoriaLogs/):
|
for sending the collected logs to [VictoriaLogs](https://docs.victoriametrics.com/VictoriaLogs/):
|
||||||
|
|
||||||
@ -140,6 +143,25 @@ For example, the following `vector.toml` config instructs Vector to store the da
|
|||||||
ProjectID = "34"
|
ProjectID = "34"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## HTTP sink
|
||||||
|
|
||||||
|
Vector can be configured with [HTTP](https://vector.dev/docs/reference/configuration/sinks/http/) sink type
|
||||||
|
for sending data to [JSON stream API](https://docs.victoriametrics.com/victorialogs/data-ingestion/#json-stream-api):
|
||||||
|
|
||||||
|
```toml
|
||||||
|
[sinks.vlogs]
|
||||||
|
inputs = [ "your_input" ]
|
||||||
|
type = "http"
|
||||||
|
uri = "http://localhost:9428/insert/jsonline?_stream_fields=host,container_name&_msg_field=message&_time_field=timestamp"
|
||||||
|
encoding.codec = "json"
|
||||||
|
framing.method = "newline_delimited"
|
||||||
|
healthcheck.enabled = false
|
||||||
|
|
||||||
|
[sinks.vlogs.request.headers]
|
||||||
|
AccountID = "12"
|
||||||
|
ProjectID = "34"
|
||||||
|
```
|
||||||
|
|
||||||
See also:
|
See also:
|
||||||
|
|
||||||
- [Data ingestion troubleshooting](https://docs.victoriametrics.com/VictoriaLogs/data-ingestion/#troubleshooting).
|
- [Data ingestion troubleshooting](https://docs.victoriametrics.com/VictoriaLogs/data-ingestion/#troubleshooting).
|
||||||
|
Loading…
Reference in New Issue
Block a user