Code Monkey home page Code Monkey logo

aws-elk-reports's Introduction

AWS Elk reports

Pull Amazon AWS billing report data, and insert into elastic search. The basic flow is as follows:

  1. Crawl S3, gathering a list of report files, and compare against the list of already processed files.

  2. Any unprocessed files are processed and indexed into elastic search.

Processed files, and associated data (size, hash, etc) are stored in a SQL store to ensure we do not reprocess files when not necessary.

Configuration is handled via the TOML configuration, or more commonly, via environment variables.

Generated environment variables:
   CFG_BUCKET                   => S3 Bucket Name
   CFG_PREFIX                   => S3 report key prefix
   CFG_DBURL                    => MySQL connection string
   CFG_KAFKA_BROKERS            => List of Kafka brokers (comma delimited list)
   CFG_KAFKA_TLSCACERTIFICATE   => TLS CA certificate path
   CFG_KAFKA_TLSCERTIFICATE     => TLS certificiate path
   CFG_KAFKA_TLSKEY             => TLS key path
   CFG_KAFKA_TLSVERIFY          => Boolean, verify TLS certificates
   CFG_KAFKA_TOPIC              => Kafka topic to push to
   CFG_LOGLEVEL                 => Log level for output

AWS access is controlled via the environment variables:
   AWS_REGION
   AWS_ACCESS_KEY_ID
   AWS_SECRET_ACCESS_KEY

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.