amqpsniff

command module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 19, 2020 License: MIT Imports: 9 Imported by: 0

README

AMQP Sniffer

Collect messages with AMQP protocol.

Code lines Comments

Install

go get -u github.com/vearutop/amqpsniff

Usage

usage: amqpsniff --dsn=DSN --queue=QUEUE --bindings=BINDINGS [<flags>]

AMQP sniffer creates queue and dumps incoming messages.

Flags:
  --help                     Show context-sensitive help (also try --help-long and --help-man).
  --dsn=DSN                  Connection credentials, env var AMQP_DSN, example: amqp://guest:guest@rabbit:5672
  --queue=QUEUE              Queue name, example: my-queue
  --bindings=BINDINGS ...    Bindings, colon-separated exchange and routing key, example: users:*.user.created
  --output="messages.jsonl"  Path to output JSONL file
  --limit=100                Number messages to collect before exiting

Example

AMQP_DSN=amqp://guest:guest@rabbit:5672 amqpsniff --queue test-test --bindings myexchange:*.users.created --limit 12

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