File tree Expand file tree Collapse file tree 1 file changed +23
-3
lines changed
Expand file tree Collapse file tree 1 file changed +23
-3
lines changed Original file line number Diff line number Diff line change @@ -26,9 +26,7 @@ directory.
2626
2727To dump the first 50 messages of queue ` incoming_1 ` to ` /tmp ` :
2828
29- ```
30- rabbitmq-dump-queue -uri="amqp://user:[email protected] :5672/" -queue=incoming_1 -max-messages=50 -output-dir=/tmp 31- ```
29+ rabbitmq-dump-queue -uri="amqp://user:[email protected] :5672/" -queue=incoming_1 -max-messages=50 -output-dir=/tmp 3230
3331This will create the files ` /tmp/msg-0000 ` , ` /tmp/msg-0001 ` , and so on.
3432
@@ -37,6 +35,28 @@ allows piping the output of rabbitmq-dump-queue to `xargs` or similar utilities
3735in order to perform further processing on each message (e.g. decompressing,
3836decoding, etc.).
3937
38+ To include the AMQP headers and properties in the output, add the ` -full `
39+ option to the command-line. This will create the following files:
40+
41+ /tmp/msg-0000
42+ /tmp/msg-0000-headers+properties.json
43+ /tmp/msg-0001
44+ /tmp/msg-0001-headers+properties.json
45+ ...
46+
47+ The JSON files have the following structure:
48+
49+ {
50+ "headers": {
51+ "x-my-private-header": "my-value"
52+ },
53+ "properties": {
54+ "correlation_id": "XYZ-9876",
55+ "delivery_mode": 0,
56+ "priority": 5
57+ }
58+ }
59+
4060Running ` rabbitmq-dump-queue -help ` will list the available command-line
4161options.
4262
You can’t perform that action at this time.
0 commit comments