Giter Site home page Giter Site logo

rds_log_streamer's Introduction

rds_log_streamer

Requires python 2.7.x and boto3.

Stream log lines from multiple RDS instances to STDOUT.

usage: rds_log_streamer.py [-h] --db_instance_ids DB_INSTANCE_IDS
                           [DB_INSTANCE_IDS ...]
                           [--minutes_in_the_past_to_start MINUTES_IN_THE_PAST_TO_START]
                           [--api_call_delay_seconds API_CALL_DELAY_SECONDS]
                           [--log_state_file LOG_STATE_FILE]
                           [--retention_days RETENTION_DAYS]
                           [--log_level {DEBUG,INFO,WARN,ERROR,CRITICAL}]
                           [--log_filename LOG_FILENAME] [--run_once]
                           [--output_format {json,text}]
                           [--aws_region_name AWS_REGION_NAME]
                           [--aws_profile_name AWS_PROFILE_NAME]

Stream logs from rds for a set of db instances.

optional arguments:
  -h, --help            show this help message and exit
  --db_instance_ids DB_INSTANCE_IDS [DB_INSTANCE_IDS ...], -d DB_INSTANCE_IDS [DB_INSTANCE_IDS ...]
                        list of db instance ids
  --minutes_in_the_past_to_start MINUTES_IN_THE_PAST_TO_START, -m MINUTES_IN_THE_PAST_TO_START
                        if logs have not been written to since this many
                        minutes ago, ignore them
  --api_call_delay_seconds API_CALL_DELAY_SECONDS, -a API_CALL_DELAY_SECONDS
                        time to wait before each API call
  --log_state_file LOG_STATE_FILE, -s LOG_STATE_FILE
                        file path for recording the state of log streaming
  --retention_days RETENTION_DAYS, -r RETENTION_DAYS
                        number of days to retain log metadata
  --log_level {DEBUG,INFO,WARN,ERROR,CRITICAL}, -l {DEBUG,INFO,WARN,ERROR,CRITICAL}
                        log level for this script's logs
  --log_filename LOG_FILENAME, -f LOG_FILENAME
                        log filename for this script's logs
  --run_once, -o        stream all new logs from all db instances and then
                        exit
  --output_format {json,text}, -t {json,text}
                        output format
  --aws_region_name AWS_REGION_NAME
                        AWS region name
  --aws_profile_name AWS_PROFILE_NAME
                        AWS credentials profile name

rds_log_streamer's People

Watchers

ProjectDX CI User avatar Ben Coppock avatar James Cloos avatar Michael Irey avatar Scott Fletcher avatar Chris Wright avatar  avatar Davis avatar  avatar

Forkers

davidtweet

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.