Docs
Search…
Vector
Send logs to SignalFlex using Vector.
Vector is a lightweight router to send logs to downstream services.

Installation

    1.
    Install Vector on your platform.
    1
    $curl --proto '=https' --tlsv1.2 -sSf https://sh.vector.dev | sh
    Copied!
    2.
    In your vector.toml, add the following
Replace log_file pipeline_id, and signalflex_api_key accordingly
1
data_dir = "/var/lib/vector"
2
3
[sources.in]
4
type = "file"
5
include = [${log_file}]
6
7
[sinks.out]
8
inputs = ["in"]
9
type = "http"
10
encoding.codec = "text"
11
headers.pipeline = ${pipeline_id}
12
headers.api_key = ${signalflex_api_key}
13
uri = "https://alpha.signalflex.io/api/"
14
request.timeout_secs = 250
Copied!
3. Start Vector to forward log events to SignalFlex
1
$vector --config vector.toml
Copied!
Last modified 1yr ago
Copy link
Contents
Installation