Skip to content

Commit 9bd45be

Browse files
committed
README: Add description of -full option
1 parent edf0f73 commit 9bd45be

File tree

1 file changed

+23
-3
lines changed

1 file changed

+23
-3
lines changed

README.md

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,7 @@ directory.
2626

2727
To 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

3331
This 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
3735
in order to perform further processing on each message (e.g. decompressing,
3836
decoding, 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+
4060
Running `rabbitmq-dump-queue -help` will list the available command-line
4161
options.
4262

0 commit comments

Comments
 (0)