package
0.9.0
Repository: https://github.com/datadog/datadog-agent.git
Documentation: pkg.go.dev

# README

logs-agent

logs-agent collects logs and submits them to datadog's infrastructure.

Structure

logs reads the config files, and instantiates what's needed. Each log line comes from a source (e.g. file, network, docker), and then enters one of the available pipeline - tailer|listener|container -> decoder -> processor -> sender -> auditor

Tailer tails a file and submits data to the processors

Listener listens on local network (TCP, UDP, Unix) and submits data to the processors

Container scans docker logs from stdout/stderr and submits data to the processors

Decoder converts bytes arrays into messages

Processor updates the messages, filtering, redacting or adding metadata, and submits to the forwarder

Sender submits the messages to the intake, and notifies the auditor

Auditor notes that messages were properly submitted, stores offsets for agent restarts

Tests

# Run the unit tests
inv test --targets=./pkg/logs --timeout=10

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Package pb is a generated protocol buffer package.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Functions

BlockUntilAutoConfigRanOnce blocks until the AutoConfig has been run once.
Flush flushes synchronously the running instance of the Logs Agent.
GetMessageReceiver returns the diagnostic message receiver.
GetStatus returns logs-agent status.
IsAgentRunning returns true if the logs-agent is running.
NewAgent returns a new Logs Agent.
NewServerless returns a Logs Agent instance to run in a serverless environment.
Start starts logs-agent getAC is a func returning the prepared AutoConfig.
StartServerless starts a Serverless instance of the Logs Agent.
Stop stops properly the logs-agent to prevent data loss, it only returns when the whole pipeline is flushed.

# Constants

AgentJSONIntakeProtocol agent json protocol.

# Structs

Agent represents the data pipeline that collects, decodes, processes and sends logs to the backend + ------------------------------------------------------ + | | | Collector -> Decoder -> Processor -> Sender -> Auditor | | | + ------------------------------------------------------ +.