Skip to content

Enable Collectors in Cloud#26261

Draft
thll wants to merge 9 commits into
masterfrom
add/collectors-in-the-cloud
Draft

Enable Collectors in Cloud#26261
thll wants to merge 9 commits into
masterfrom
add/collectors-in-the-cloud

Conversation

@thll

@thll thll commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

Previously, Collectors were not usable in Graylog Cloud, because it requires the Collector Ingest Input to run and be managed by Administrators.

This PR adds a background service that starts an ephemeral Ingest input once the Collectors settings page has been saved for the first time, which at the moment serves as the bootstrapping trigger for Collectors both on premise as in the Cloud.

The implementation aims at re-using most of the on-premise code, e.g. the actual input is launched by the service but not registered in the usual way, so that it is not visible. For that to work reliably, an artificial input ID had to be added. We also use this ID to render the "received by" indicator in the Messages UI to link to the collectors page.

thll and others added 7 commits June 5, 2026 09:53
Covers the wait-for-config activation flow: launches when config is already
present, waits then launches on a CollectorsConfig ClusterConfigChangedEvent,
ignores unrelated config changes, retries launch on MisfireException, and the
shutdown paths (clean exit while waiting; stops the input after launch).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
+ add cloud visibility swagger annotations
In Cloud the ingest endpoint is server-provisioned and there is no
persisted ingest input, so the settings page now:
- renders the hostname/port as read-only (disabled) fields
- hides the create-input checkbox, port-mismatch alert, and input status
- uses cloud-appropriate help and getting-started copy
- thresholds stay editable

Also guard useCollectorInputIds/useCollectorInputDetails with
`enabled: !AppConfig.isCloud()` so the cloud-hidden
/collectors/config/inputs endpoint is never called.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
The Cloud collector ingest input runs in-memory with no persisted Input
record, so messages carry a synthetic source input id. Special-case it in
FormatReceivedBy to render a "Collector Ingest" link to the Collectors page
instead of the "deleted input" fallback.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@thll thll added the collector label Jun 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant