Amazon Log Agent Benchmark Tool banner
awslabs awslabs

Amazon Log Agent Benchmark Tool

Development community

Description

Simple log generation and process resource monitor used to benchmark log agents

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

LogBench Simple Log Agent Benchmarker

How to build

go build github.com/awslabs/amazon-log-agent-benchmark-tool/cmd/logbench/

How to use

logbench can be used with the following command

./logbench -log LOGFILE1,LOGFILE2 -log LOGFILE3 COMMAND PARAM1 PARAM2

  -f duration
        Frequency to collect metrics represented in time duration, default 1s (default 1s)
  -line string
        Content of the log line to be used (default "INFO CloudWatchOutput      Amazon::Monitoring::CloudWatchOutput::new - CloudWatchOutput sender=data/cloudwatch/current endpoint=https://monitoring.us-east-1.amazonaws.com maxBytes=76800")
  -log value
        Path of the log files being generated and writes logs to, you can specify multiple values by using the parameter multiple times or use comma seperated list
  -multilinestart string
        Regular expression of a start of a multiline log event
  -o    Pipe agent output to stdout and stderr
  -p int
        Pid of the agent to check resource usage (default -1)
  -r duration
        Ramp up duration, time for agent to stablize, stats will not be collected during the ramp up, default 1s (default 1s)
  -rate value
        Log generation rate to be tested, e.g. -log 1,100,1k,10k,100k, default 100
  -replay string
        Path to a file for log replay
  -replaytimelayout string
        Format to parse and replace the timestamp for replaying log file, e.g. -replaytimelayout='Mon, 02 Jan 2006 15:04:05 MST', or use a capture group like -replaytimelayout='"timestamp":"(2006-01-02T15:04:05-0700)"' following Go time layout, see: https://golang.org/pkg/time/#pkg-constants
  -rotatekeep int
        Number of rotation files to keep, 0 to disable rotation
  -rotatesize string
        Size of the logfile before rotation
  -rotatetime duration
        How much time the logfile should be rotated
  -t duration
        Test duration, in format supported by time.ParseDuration, default 10s (default 10s)
  -timelayout string
        Format to