Git Product home page Git Product logo

rdqdump's Introduction

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

rdqdump's People

Contributors

jeffbryner avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.