Documentation ¶
Overview ¶
Copyright (c) Edgeless Systems GmbH
SPDX-License-Identifier: AGPL-3.0-only
Package logcollector uses podman to deploy logstash and filebeat containers in order to collect logs centrally for debugging purposes.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // DebugdLogcollectPrefix is the prefix for all OpenSearch fields specified by the user when starting through debugd. DebugdLogcollectPrefix = "logcollect." // AllowedFields are the fields that are allowed to be used in the logcollection. AllowedFields = map[string]struct{}{ "admin": {}, "is_debug_cluster": {}, "github.actor": {}, "github.workflow": {}, "github.run-id": {}, "github.run-attempt": {}, "github.ref-name": {}, "github.sha": {}, "github.runner-os": {}, "github.e2e-test-payload": {}, "github.is-debug-cluster": {}, "github.e2e-test-provider": {}, "github.ref-stream": {}, "github.kubernetes-version": {}, "github.cluster-creation": {}, "github.attestation-variant": {}, "deployment-type": {}, } )
Functions ¶
func NewStartTrigger ¶
func NewStartTrigger(ctx context.Context, wg *sync.WaitGroup, provider cloudprovider.Provider, metadata providerMetadata, logger *slog.Logger, ) func(*info.Map)
NewStartTrigger returns a trigger func can be registered with an infos instance. The trigger is called when infos changes to received state and starts a log collection pod with filebeat, metricbeat and logstash in case the flags are set.
This requires podman to be installed.
Types ¶
type Fields ¶ added in v2.11.0
Fields are the OpenSearch fields that are associated with a log message.
func FieldsFromMap ¶ added in v2.11.0
FieldsFromMap returns new Fields from the given map.
Click to show internal directories.
Click to hide internal directories.