retry_file_dump

command module
v0.0.0-...-1dd94e2 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

README

Retry file dump

.retry files are created by the Agent when the retry queue of the forwarder is full. See forwarder_storage_max_size_in_bytes for more information. This tool dumps the transactions stored in a .retry file into a JSON file.

Build

Copy the protobuf file:

cp ../../pkg/forwarder/internal/retry/HttpTransactionProto.pb.go .

In HttpTransactionProto.pb.go replace package retry to package main

Build with go build.

Usage

The following command creates a JSON file (.retry.json) for each .retry file in /opt/datadog-agent/run/transactions_to_retry/c47da40ac935c8fd5ca1441a5ee3d068/:

./retry_file_dump --folder=/opt/datadog-agent/run/transactions_to_retry/c47da40ac935c8fd5ca1441a5ee3d068/

The generated JSON files contain \ufffdAPI_KEY\ufffd0\ufffd which is a placeholder for the API key.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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