brexhq / substation

Substation is a toolkit for routing, normalizing, and enriching security event and audit logs.
https://substation.readme.io
MIT License
322 stars 16 forks source link

feat(transform): Add Metrics Bytes Transform #142

Closed jshlbrd closed 6 months ago

jshlbrd commented 6 months ago

Description

Motivation and Context

It's not unusual for a data processing system to provide metrics on both the count and volume of messages processed; since a Metrics Count transform exists, this adds the complementary metric. This is useful for anyone using AWS or external services that don't readily make this information available.

How Has This Been Tested?

This can be integration tested locally:


make build-config
make build-go
./examples/cmd/client/file/substation/substation -config examples/config/transform/utility/message_bytes/config.json -file examples/config/transform/utility/message_bytes/data.jsonl

Types of changes

Checklist: