Giter Club home page Giter Club logo

shodan's Introduction

Shodan

Build Status dependencies Status devDependencies Status Known Vulnerabilities

Advanced error monitoring using kibana logs.

Screenshots

Dashboard:

Generic dashboard

Error details:

Error details

Installation

Requirements:

  • node.js 8+
  • mysql or mariadb 5+ (pull requests for Postgres welcome)
  • kibana
  • some free space to store your logs
  • you should be able to run socket based interaction

Installing

  1. git clone https://github.com/jehy/shodan.git
  2. cp config/default.json config/runtime.json
  3. Set up runtime.json config (see below)
  4. Run npm run migrate to set up DB
  5. Run npm i
  6. npm run server and npm run updater (those are 2 different processes!)
  7. Enjoy!

Configuration

  • kibana

    • "cookie": "_oauth2_proxy=XXXXX" your own kibana cookie
    • "version": "5.5.2",your kibana version
    • "url": "https://logs.google.com", your kibana url
    • "firstSearchFor": 24, first search should begin fetching entries from 24 hours ago
    • "searchFor": 1, new entries are fetched 1 last hour
    • "crawlDelay": 1 delay by 1 minute to avoid ignoring entries which were added to the past
    • "preference": 1521709471107, some preference id from kibana requests, dunno wtf
    • "indexes": ["some-app"], index names to search for
    • "indexFilterOut": ["some-app-extra"], filter for indices
    • "fetchNum": 500, max entries to fetch
    • "updateInterval": 30,how often we should fetch updates, in seconds
    • "storeLogsFor": 7 for how many days do you want to store logs
  • "userAgent": "Mozilla/5.0 (X11; Linux x86_64)", useragent string to use for kibana search

  • "db" standard database options

    • "client": "mysql",
    • "connection":
      • "host": "127.0.0.1",
      • "user": "your_database_user",
      • "password": "your_database_password",
      • "database": "myapp_test",
      • "charset": "utf8"
    • "migrations":
      • "tableName": "knex_migrations"
  • errorNotifyBot bot config

    • monitoringChannelId - channel where bot takes guys who are on duty.
    • outputChannelId - channel to write error messages to.
    • interval - error check interval.
    • diffMinutesBetweenSendSlack - min interval for posting same messages.
    • minStageErrors - minimal stage errors number to react to.
    • minProdErrors- minimal production errors number to react to.
    • minStageErrorsNew - minimal NEW stage errors number to react to.
    • minProdErrorsNew -minimal NEW prod errors number to react to.
    • minStageErrorsGrown - minimal stage errors growth to react to.
    • minProdErrorsGrown - minimal prod errors growth to react to.
    • maxSlackMessages - max number of messages per slack post
    • blackListMsgNames, ex ["fillDistances", "getGMToffset_0"] - array of error message names to ignore

shodan's People

Contributors

amozgachev avatar dependabot[bot] avatar jehy avatar snyk-bot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

shodan's Issues

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.