Try Substation on macOS / Linux
Substation ships with a CLI tool that can be used to manage configurations, which includes testing.
Follow the instructions below to install dependencies and try the application:
Install Dependencies
Install and Test the Application
git clone github.com/brexhq/substation && cd substation && \
go install github.com/brexhq/substation/v2/cmd/substation@latest && \
substation test -R examples/transform/aggregate/summarize
{"bytes":11,"client":"10.1.1.2","server":"8.8.8.8","timestamp":1674429049}
{"bytes":20,"client":"10.1.1.3","server":"8.8.4.4","timestamp":1674429050}
{"bytes":15,"client":"10.1.1.2","server":"8.8.4.4","timestamp":1674429051}
{"bytes":8,"client":"10.1.1.3","server":"8.8.8.8","timestamp":1674429052}
{"bytes":25,"client":"10.1.1.2","server":"8.8.8.8","timestamp":1674429053}
{"bytes":2400,"client":"10.1.1.4","server":"1.2.3.4","timestamp":1674429054}
{"bytes":23,"client":"10.1.1.2","server":"8.8.4.4","timestamp":1674429055}
{"bytes":12,"client":"10.1.1.3","server":"8.8.8.8","timestamp":1674429056}
{"bytes":18,"client":"10.1.1.2","server":"8.8.4.4","timestamp":1674429057}
{"bytes":6,"client":"10.1.1.3","server":"8.8.8.8","timestamp":1674429058}
{"bytes":23,"client":"10.1.1.2","server":"8.8.4.4","timestamp":1674429059}
{"bytes":12,"client":"10.1.1.3","server":"8.8.8.8","timestamp":1674429060}
{"bytes":18,"client":"10.1.1.2","server":"8.8.4.4","timestamp":1674429061}
{"bytes":6,"client":"10.1.1.3","server":"8.8.8.8","timestamp":1674429062}
{"bytes":11,"client":"10.1.1.2","server":"8.8.8.8","timestamp":1674429063}
{"bytes":20,"client":"10.1.1.3","server":"8.8.4.4","timestamp":1674429064}
{"bytes":15,"client":"10.1.1.2","server":"8.8.4.4","timestamp":1674429065}
{"bytes":8,"client":"10.1.1.3","server":"8.8.8.8","timestamp":1674429066}
{"bytes":25,"client":"10.1.1.2","server":"8.8.8.8","timestamp":1674429067}
{"client":"10.1.1.2","server":"8.8.8.8","timestamp":1674429067,"count":4,"bytes_total":72}
{"client":"10.1.1.3","server":"8.8.4.4","timestamp":1674429064,"count":2,"bytes_total":40}
{"client":"10.1.1.2","server":"8.8.4.4","timestamp":1674429065,"count":6,"bytes_total":112}
{"client":"10.1.1.3","server":"8.8.8.8","timestamp":1674429066,"count":6,"bytes_total":52}
{"client":"10.1.1.4","server":"1.2.3.4","timestamp":1674429054,"count":1,"bytes_total":2400}
ok examples/transform/aggregate/summarize/config.jsonnet 864µs
Updated about 2 months ago