Skip to content

mitre/redis_subscribe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Redis Subscribe

Command Line Interface (CLI) tool to listen on a Redis pubsub channel for Intermediate Log Format (ILF) messages and print the results to stdout and a log file.

Can optionally display a summary of results using curses Terminal UI (TUI). Note that the TUI is designed to parse proprietary ILF alert messages which are not publicly available. Behaviour with other ILF alert formats is untested.

Usage

Setup and activate python virtual enviroment

python3 -m venv <environment_name>
source .venv/bin/activate

Install dependencies

pip install -r requirements.txt

Run script

python3 redis_subscribe.py

Usage Details

usage: redis_subscribe [-h] [-p PASSWORD] [-rh HOST] [-rp PORT] [-c CHANNEL]
                       [-n NUMLOGS] [-l LOGFILE] [-s] [-nl] [-q]

optional arguments:
  -h, --help            show this help message and exit
  -p PASSWORD, --password PASSWORD
                        provide redis password
  -rh HOST, --host HOST
                        provide redis hostname; default is localhost
  -rp PORT, --port PORT
                        provide redis port; default is 6379
  -c CHANNEL, --channel CHANNEL
                        provide redis channel to listen to; default is alerts
  -n NUMLOGS, --numlogs NUMLOGS
                        set a number of logs to abort after; default is
                        1000000
  -l LOGFILE, --logfile LOGFILE
                        set output log file name; default is
                        testsub_output_<epoch>.txt
  -s, --unsummarized    output as plain text, not summarized with curses
                        interface
  -nl, --nolog          do not save a log file
  -q, --quiet           do not output any alerts on screen (log file output
                        only)

License

This software is licensed under the Apache 2.0 license.

Public Release

Note

Approved for Public Release; Distribution Unlimited. Public Release Case Number 24-3939.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages