Skip to content

Latest commit

 

History

History
48 lines (37 loc) · 1.08 KB

README.seq.md

File metadata and controls

48 lines (37 loc) · 1.08 KB

Using seq

Config includes packages in order to use seq from datalust.

seq Ingestion

API key is 123 in this config:

PH=$(echo '123' | docker run --rm -i datalust/seq config hash) \
  && docker run \
  --name seq \
  -d \
  --restart unless-stopped \
  -e ACCEPT_EULA=Y \
  -e SEQ_API_CANONICALURI=https://seq.example.com \
  -e SEQ_FIRSTRUN_ADMINPASSWORDHASH="$PH" \
  -p 5080:80 \
  -p 5341:5341 \
  datalust/seq:latest

No volume mounted. If persistance is wanted the following version can be used:

PH=$(echo '123' | docker run --rm -i datalust/seq config hash) \
  && docker run \
  --name seq \
  -d \
  --restart unless-stopped \
  -e ACCEPT_EULA=Y \
  -e SEQ_API_CANONICALURI=https://seq.example.com \
  -e SEQ_FIRSTRUN_ADMINPASSWORDHASH="$PH" \
  -v /path/to/seq/data:/data \
  -p 5080:80 \
  -p 5341:5341 \
  datalust/seq

Periodical Ingestion

Periodically run sql-cli in order to ingest json logs:

seqcli ingest -i '/mnt/d/logs/*.log' -s http://localhost:5341 -a 123 --json