logssourceimpl

package
v0.0.0-...-e70f483 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 21, 2026 License: Apache-2.0 Imports: 38 Imported by: 0

Documentation

Overview

Package logssourceimpl implements the logssource component.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provides

type Provides struct {
	compdef.Out
	Comp logssource.Component
}

Provides defines the output of the logssource component.

func NewComponent

func NewComponent(deps Requires) (Provides, error)

NewComponent creates the logssource component.

anomaly_detection.logs.enabled is the main toggle for all log ingestion: setting it to false disables both container/AD logs (this component) and agent-internal logs (observer's agent_logs tap). Defaults to false. anomaly_detection.agent_logs.enabled additionally controls the agent-internal log tap and defaults to true when logs.enabled is true.

The component is a no-op when any of these are true:

  • the observer is unavailable
  • workloadmeta is unavailable
  • anomaly_detection.enabled is false and anomaly_detection.recording.enabled is false
  • anomaly_detection.logs.enabled is false and anomaly_detection.recording.enabled is false

The component itself has no build-tag constraints. Capability differences across builds are handled transparently by the underlying launchers:

  • container logs require the kubelet or docker build tag (no-op otherwise)
  • journald logs (incl. the kubelet.service source) require the systemd build tag (no-op otherwise)
  • file logs are always supported

type Requires

type Requires struct {
	compdef.In

	Lc          compdef.Lifecycle
	Log         log.Component
	Config      config.Component
	Hostname    hostname.Component
	WMeta       option.Option[workloadmeta.Component]
	Tagger      tagger.Component
	Auditor     auditor.Component
	Observer    option.Option[observer.Component]
	FilterStore option.Option[workloadfilter.Component]

	// Autodiscovery is optional: when absent the AD scheduler is simply not started
	// and the observer falls back to generic container log collection only.
	Autodiscovery autodiscovery.Component `fx:"optional"`
}

Requires defines the dependencies for the logssource component.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL