Giter VIP home page Giter VIP logo

sleuthbot's Introduction

Sleuth Bot

Chat ops for Severless incidents in aws

Architecture

architecture

Basic usage

Invite the bot to a channel,

Ask the bot to investigate with /investigate [STACK_NAME]

Request historical record

Invite the bot to a channel,

Share a message directly with the bot,

Start a thread on the shared message with the stacks that you want to investigate

Installing the bot into your aws account

Setting up the slack part of the bot

You will need to set up the Slack app manually..... it woulds be nice is you didn't have to, but....

The slack bot will need the following oauth permissions to run:

permission description
channels:history View messages and other content in public channels that sleuth bot has been added to
chat:write Send messages as @sleuthbot
commands Add shortcuts and/or slash commands that people can use
files:write Upload, edit, and delete files as sleuth bot
im:history View messages and other content in direct messages that sleuth bot has been added to

The bot will also need to have the slash command and events associated with it. These follow

slash commands:

  • /investigate

events:

  • message.im | A message was posted in a direct message channel | im:history

Environment variables

Make sure you add the following environment variables to the security section of the git hub account

  • SLACK_BOT_TOKEN
  • SLACK_SIGNING_SECRET

Both of which are created when you set up your application

sleuthbot's People

Contributors

sammurphydev avatar robinmca avatar

Watchers

David Balmain avatar Daniel Spasojevic avatar James Cloos avatar Rory Stokes avatar Haolin Jiang avatar Sean Dawson avatar  avatar Daniel Nixon avatar

sleuthbot's Issues

Allow adjusting time window

At the moment the logs are fetched from the last 15 minutes. Would be good to specify the time window somehow so we can investigate old issues.

Event Timeline

Build a timeline of events like a detective would do instead of just spitting out the result of the inspectors in random order

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.