# Syslog over HTTP with Vector

Use timberio/vector:0.46.1-debian. Set EPOK\_INGEST\_KEY in its process environment and make /var/lib/vector writable. Point your RFC5424 sender at the Vector TCP listener on port 1514 using newline-delimited messages. Vector forwards the original RFC5424 or RFC3164 envelope as HTTP text with X-API-Key, preserving the priority, app name and message for Epok to parse.

## Configuration

```
data_dir: /var/lib/vector
sources:
  syslog:
    type: socket
    address: 0.0.0.0:1514
    mode: tcp
    decoding:
      codec: bytes
    framing:
      method: newline_delimited
sinks:
  epok:
    type: http
    inputs: [syslog]
    uri: https://ingest.epok.cloud/api/v1/syslog
    method: post
    compression: gzip
    encoding:
      codec: text
    framing:
      method: newline_delimited
    request:
      headers:
        Content-Type: text/plain
        X-API-Key: ${EPOK_INGEST_KEY}
    batch:
      timeout_secs: 1
      max_events: 10000   # at or under Epok's 10,000 entries per batch
    healthcheck:
      enabled: false
```

Keep your ingest key private. Missing keys return 401; unknown keys return 403. A successful HTTP response alone is not proof of stored data.

[Vector JSON logs](https://epok.cloud/docs/install/vector) [All install guides](https://epok.cloud/docs)
