Skip to content

Build the MediaWiki log pipeline into the image - #2

Merged
physikerwelt merged 1 commit into
mainfrom
pipeline
Nov 15, 2026
Merged

physikerwelt merged 1 commit into
mainfrom
pipeline

Conversation

@physikerwelt

Copy link
Copy Markdown
Member

portal-k8s can run Logstash on the stateless-service chart once the image carries its own pipeline. Logstash keeps no state, so it needs no chart of its own.

  • The image holds our pipeline and Wikimedia's five MediaWiki filters, unchanged. wmf/SOURCE names them by their SWHIDs.
  • Logstash installs the index template itself. template.jq adapts Wikimedia's template at build time.
  • The entrypoint creates or updates the retention policy before Logstash starts (RETENTION_DAYS, default 90).
  • OPENSEARCH_URL sets the target (default http://logging-opensearch:9200).
  • A weekly workflow runs wmf/update.sh and opens a pull request when a copied file changed.
  • Images get our own version: a release tag vX.Y.Z builds X.Y.Z and opens the portal-k8s pull request. Pushes to main only update latest.

Checked locally with OpenSearch 2.19.7: the image created the template and the policy, and test records arrived with Wikimedia's filters applied. A string exception landed in exception_message.

After the merge, release v1.0.0; MaRDI4NFDI/portal-k8s pins that version.

portal-k8s can then run Logstash on the stateless-service
chart, without a chart of its own.

* The image holds the pipeline and Wikimedia's filters.
* Logstash installs the adapted index template itself.
* The entrypoint sets up the retention policy first.
* OPENSEARCH_URL and RETENTION_DAYS configure it.
* wmf/SOURCE names the copied files by their SWHIDs.
* A weekly workflow proposes new versions of the copies.
* Images get our own version from release tags vX.Y.Z.
  Only a release opens the portal-k8s pull request.
@physikerwelt
physikerwelt merged commit 9fa7823 into main Nov 15, 2026
1 check passed
@physikerwelt
physikerwelt deleted the pipeline branch November 15, 2026 08:55
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