LEGACY use https://github.com/mephux/kolide -- Envdb - Ask your environment questions with osquery.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
.ci revert drone github release settings Apr 16, 2015
Godeps More cleanup May 4, 2016
data update Apr 4, 2015
envdb More cleanup May 4, 2016
vendor More cleanup May 4, 2016
.drone.yml Add deps for generate May 5, 2016
.gitignore More cleanup May 4, 2016
CHANGELOG.md version bump 0.4.1 - see changelog for more information May 13, 2015
LICENSE first commit Apr 1, 2015
Makefile Update May 5, 2016
README.md Update README.md May 8, 2016
main.go More cleanup May 4, 2016


!!!!!!!!!!!!!!!!!! LEGACY use https://github.com/mephux/kolide

Envdb - Environment Database

  • NOTE: envdb is still beta software.

Envdb turns your production, dev, cloud, etc environments into a database cluster you can search using osquery as the foundation.

Envdb allows you to register each computer, server or asset as a node in a cluster. Once a new node is connected it becomes available for search from the Envdb ui. Envdb was built using golang so the whole application, node client and server comes as one single binary. This makes it really easy to deploy and get working in seconds.

Video Intro: https://youtu.be/ydYr7Ykwzy8

How it works.

Envdb wraps the osquery process with a node agent (node as in cluster node) that can communicate back to a central location. When that node gets a new query, it's executed and then sent back to the tcp server for rendering. Once the request is processed it's then sent to any avaliable web clients using websockets.

Envdb has an embedded sqlite database for node storage and saved searches.

ui --websockets--> server --tcp--> node client.


Pre-built versions (deb/tar.gz) of envdb are avaliable for linux 386/amd64. linux downloads

Building on macosx is easy tho, checkout the section below.


Make sure you have Go installed. I used Go version 1.4.1.


  • go get github.com/jteeuwen/go-bindata/...
  • go get github.com/elazarl/go-bindata-assetfs


  • git clone https://github.com/mephux/envdb.git
  • cd envdb
  • make


  • NOTICE: The default username and password for the UI.
usage: envdb [<flags>] <command> [<flags>] [<args> ...]

The Environment Database - Ask your environment questions

  --help       Show help.
  --debug      Enable debug logging.
  --dev        Enable dev mode. (read assets from disk and
               enable debug output)
  -q, --quiet  Remove all output logging.
  --version    Show application version.

  help [<command>]
    Show help for a command.

  server [<flags>]
    Start the tcp server for node connections.

  node --server= [<flags>] <node-name>
    Register a new node.

  users [<flags>]
    User Management (Default lists all users).


$ envdb help server

  usage: envdb [<flags>] server [<flags>] [<command>]

  Start the tcp server for node connections.

    -p, --port=3636  Port for the server to listen on.
    -P, --http-port=8080  
                     Port for the web server to listen on.

    [<command>]  Daemon command. (start,status,stop)
Running the server without a `command` (start, stop or status) will run the server in the foreground.

* Note: By default this will start the tcp server on port 3636 and the web server on port 8080.

Node Client

$ envdb help node

  usage: envdb [<flags>] node --server= [<flags>] <node-name>

  Register a new node.

    -s, --server=  
                     Address for server to connect to.
    -p, --port=PORT  Port to use for connection.

    <node-name>  A name used to uniquely identify this node.
`sudo envdb node --server <ip to server> SomeBoxName`
  • That's it - it's really that simple.

User Management

  • list users envdb users

  • add a new user envdb users --add

  • remove a new user envdb users --remove <email>

More UI


Like envdb? Follow the repository on GitHub and if you would like to stalk me, follow mephux on Twitter and GitHub.


  • add in memeory pagination for results.
  • Node/Server auth, verification and validation.
  • Code cleanup (will continue forever).