Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jeffbryner/rdqdump
RabbitMQ .rdq file parser
https://github.com/jeffbryner/rdqdump
Last synced: 2 months ago
JSON representation
RabbitMQ .rdq file parser
- Host: GitHub
- URL: https://github.com/jeffbryner/rdqdump
- Owner: jeffbryner
- License: mpl-2.0
- Created: 2015-02-11T23:07:05.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2022-11-05T21:51:25.000Z (about 2 years ago)
- Last Synced: 2024-08-16T16:22:37.188Z (5 months ago)
- Language: Python
- Size: 12.7 KB
- Stars: 19
- Watchers: 6
- Forks: 12
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
rdqdump is a simple utility to attempt to parse out json records
from a rabbit-mq cache file.These .rdq files are usually in /var/lib/rabbitmq/mnesia/rabbit@servername/msg_store_persistent
and can sometimes be lost or corrupted when rabbit starts or crashes.Usually the fix is to move them out of the path and attempt to move them individually
back into the path, restarting rabbit.Hopefully this offers another option of parsing out the records for reprocessing. The data
I recovered was json, if you have other data types, this may not work without some modification.Usage:
`$ ./rdqdump.py --help`
Usage: rdqdump.py [options]
```
Options:
-h, --help show this help message and exit
-b BYTES number of bytes to show per line
-s START starting byte
-l LENGTH length in bytes to dump
-r CHUNK length in bytes to read at a time
-f INPUT input: filename
-x HEX hex string to search for (395f316c000000016d0000 by default)
-c COUNT count of hits to find before stopping (0 for don't stop)
-d, --debug turn on debugging output
-z, --zero when printing output, count from zero rather than position hit
was found
```sample run to print the first 2 records found:
`$ ./rdqdump.py -f 383506.rdq -c2`
print all records:
`$ ./rdqdump.py -f 383506.rdq -c0`