Datadog Log Agent banner
DataDog DataDog

Datadog Log Agent

Git community

Description

Old version of the log-agent, now part of https://github.com/DataDog/datadog-agent

Installation

This entry records only its repository, not the path inside it, so there is no exact command to give. Open the source below and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

README

datadog-log-agent

This repository is deprecated

datadog-log-agent collects logs and submits them into datadog's infrastructure. This repository is no longer maintained as its code has been merged to [datadog-agent](https://github.com/DataDog/datadog-agent), see [logs-agent](https://github.com/DataDog/datadog-agent/tree/master/cmd/logs) for more information.

Structure

`logagent` reads the config files, and instanciates what's needed. Each log line comes from a source (e.g. file, network), and then enters one of the available pipeline - _decoder -> processor -> sender -> auditor_

`Tailer` tails a file and submits data to the processors

`Listener` listens on local network 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

`Forwarder` submits the messages to the intake, and notifies the auditor

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

How to run

  • rake deps
  • rake build
  • setup config files
  • ./build/logagent --ddconfig pkg/logagent/etc/datadog.yaml --ddconfd pkg/logagent/etc/conf.d/