Skip to content

Feature: also send logs to VictoriaLogs - #9

Merged
krishan711 merged 2 commits into
mainfrom
victorialogs
Oct 3, 2026
Merged

krishan711 merged 2 commits into
mainfrom
victorialogs

Conversation

@krishan711

@krishan711 krishan711 commented Oct 3, 2026 •

Copy link
Copy Markdown
Contributor

Lets the shipper send logs to OpenSearch, VictoriaLogs, or both, depending on which env vars are set, while YieldSeeker moves its logs off OpenSearch.

  • Outputs are opt-in: outputs/opensearch.yaml is added when OPENSEARCH_URL is set, outputs/victorialogs.yaml when VICTORIALOGS_HOST is set. If neither is set the container exits with Error: set OPENSEARCH_URL and/or VICTORIALOGS_HOST.
  • entrypoint.sh builds fluent-bit.generated.yaml from fluent-bit.yaml plus the selected outputs, then execs fluent-bit. The fluent-bit image has no shell, so the Dockerfile copies a static busybox (2.6 MB) in; the -debug variant was 2.26 GB. Image is 188 MB (was 186 MB).
  • VictoriaLogs output: http to ${VICTORIALOGS_HOST}:9428/insert/jsonline (json_lines, gzip), _stream_fields=name,containerId, _msg_field=message,log (apiPath, requestId, etc. stay as their own fields), _time_field=date. OpenSearch output unchanged.
  • deploy.yaml: run-ys-appbox passes VICTORIALOGS_HOST in addition to OPENSEARCH_URL.

Merge after the logbox exists (tokenpage/yieldseeker-app#771), since merging deploys to the appbox.

Tested locally (Docker): neither var -> exits 1 with the error; only OPENSEARCH_URL -> only the opensearch output; only VICTORIALOGS_HOST -> only the http output, and a test line arrived in a local VictoriaLogs; both -> both outputs. Earlier run: app, API, nginx and plain-text lines all arrived with the expected time, stream and fields.

@krishan711
krishan711 merged commit 3e1b0e3 into main Oct 3, 2026
1 check passed
@krishan711
krishan711 deleted the victorialogs branch October 3, 2026 13:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant