Giter Club home page Giter Club logo

aws-elb-logs-to-logstash's Introduction

aws-elb-logs-to-logstash

Consumes AWS ELB (Elastic Load Balancer), NLB (Network Load Balancer), ALB (Application Load Balancer) logs from S3 and sends them to logstash for ingestion. The logs are formatted through a LogStash filter.

Requires

s3cmd -and- jq

Configuration

  1. Edit the script and update variable 'AWS_ACCOUNT_NUMBER' with your account number.
  2. Edit the script and update variable 'S3_BUCKET_NAME' with your buckets name.
  3. If your bucket is nested (e.g: loadbalancer-logs/AWSLogs/service/AWSLogs) set S3_BUCKET_NAME to "loadbalancer-logs/AWSLogs"
  4. Ensure your AWS credentials are configured (e.g: ~/.aws/credentials)
  5. Execute the script (it will run in a constant loop)

Configuration extended.

Included is a traditional init script and monit config (optional), to use the init script...

  1. Ensure 'elb-log-consumer.sh' is located here: /opt/elb-consumer
  2. Alternatively, edit 'elb-consumer-init.sh' and change variable 'THE_PATH'
  3. Place the init script[elb-consumer-init.sh] in /etc/init.d
  4. Make init script executable: chmod ug+x elb-consumer-init.sh
  5. It can then be started as such: /etc/init.d/elb-consumer-init.sh start (or stop)
  6. The included monit script can be placed in your monits configuration directory and used to control the ELB consumer.

Ingesting CloudTrail logs

See here: https://github.com/vigeek/aws-cloudtrail-to-logstash

Example Dashboard (included)

alt tag

Some minor details from the dashboard image are obfuscated.

aws-elb-logs-to-logstash's People

Contributors

vigeek avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

aws-elb-logs-to-logstash's Issues

Unable to import visualizations

Hi!

Im sure I am just doing something wrong, but Im rather new to building visualizations in Kibana.

I have searched and replaced 'aws-logs-*' in all json files. But when I import the visualization file I get the following errors.

"A field associated with this object no longer exists in the index pattern."

2018-03-29 20_48_13-kibana

Any ideas what I have done wrong?

Thank you!
Lars

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.