Project

sqs-grep

0.0
No commit activity in last 3 years
No release in over 3 years
sqs-grep iterates through each message on the given SQS queue, testing its body against the given regular expression, displaying matching messages to standard output. Options are available to control match inversion, json output, deletion of matching messages, match limits, sending the messages to another queue, and timeouts. Respects $https_proxy.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies
 Project Readme

sqs-grep

Find messages on an SQS queue by regular expression, and optionally delete them.

Installation

  gem build sqs-grep.gemspec
  gem install sqs-grep*.gem

Use

Examples. (Note the use of the pattern "^" to match all messages).

  # Show all messages, delete nothing:
  sqs-grep ^ name-of-queue

  # Show only messages matching the given pattern, without deleting them:
  sqs-grep "[Ee]xception.*at line" name-of-queue

  # Show and consume (delete) all messages (somewhat like sqs-receive):
  sqs-grep --delete ^ name-of-queue

  # Show and consume (delete) only messages matching matching some pattern:
  sqs-grep --delete 1caf7fdb-e47a-46af-b8e3-4d955883a396 name-of-queue

More options are available; see sqs-grep --help.

sqs-grep can also be used as a Ruby library. See bin/sqs-grep for a guide for how to do this.