Vector
Send logs to SignalFlex using Vector.
- 1.$curl --proto '=https' --tlsv1.2 -sSf https://sh.vector.dev | sh
- 2.In your
vector.toml
, add the following
Replace
log_file
pipeline_id
, and signalflex_api_key
accordinglydata_dir = "/var/lib/vector"
[sources.in]
type = "file"
include = [${log_file}]
[sinks.out]
inputs = ["in"]
type = "http"
encoding.codec = "text"
headers.pipeline = ${pipeline_id}
headers.api_key = ${signalflex_api_key}
uri = "https://alpha.signalflex.io/api/"
request.timeout_secs = 250
3. Start Vector to forward log events to SignalFlex
$vector --config vector.toml
Last modified 2yr ago