GithubHelp home page GithubHelp logo

boyvinall / oklog-compose Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 1.0 3 KB

just fooling around with a simple oklog setup

Home Page: https://github.com/oklog/oklog

Makefile 58.70% Shell 41.30%
logging log

oklog-compose's Introduction

oklog-compose

This is a simple test setup to experiment with github.com/oklog/oklog.

This needs to be built with go1.8. If you don't have that already, then follow the instructions at https://golang.org/dl/.

To build this, you can just type make to build it - or, if you're using go get to grab the latest golang release, something like this:

# make GO=go1.8rc3
CGO_ENABLED=0 go1.8rc3 build -ldflags="-s -w" github.com/oklog/oklog/cmd/oklog
docker build -t oklog .
Sending build context to Docker daemon 9.252 MB
Step 1 : FROM alpine
 ---> 88e169ea8f46
Step 2 : ADD oklog run.sh /
 ---> d7cc2a23f13a
Removing intermediate container 984441cc54f1
Step 3 : ENV OKLOG_COMMAND ingeststore OKLOG_API tcp://0.0.0.0:10000 OKLOG_INGEST_FAST tcp://0.0.0.0:10001 OKLOG_INGEST_DURABLE tcp://0.0.0.0:10002 OKLOG_INGEST_BULK tcp://0.0.0.0:10003 OKLOG_CLUSTER tcp://0.0.0.0:10009 OKLOG_STORE_SEGMENT_TARGET_SIZE 1000000 OKLOG_STORE_SEGMENT_RETAIN 30m     OKLOG_STORE_SEGMENT_PURGE 5m OKLOG_INGEST_PATH /data/ingest OKLOG_STORE_PATH /data/store
 ---> Running in bb94eb6a71c1
 ---> 57a5d36c005d
Removing intermediate container bb94eb6a71c1
Step 4 : ENTRYPOINT /run.sh
 ---> Running in 5bce300374a4
 ---> 4418e376e544
Removing intermediate container 5bce300374a4
Successfully built 4418e376e544
docker-compose up -d
Creating network "oklog_default" with the default driver
Creating volume "oklog_data1" with default driver
Creating volume "oklog_data3" with default driver
Creating volume "oklog_data2" with default driver
Creating oklog_logspout_1
Creating oklog3
Creating oklog1
Creating oklog2

If you have a GOPATH setup then that should be respected, otherwise the makefile will set it underneath this repo.

The compose stack here has a logspout container running to grab docker logs on this machine. You can use this to get some logs into oklog by running the following:

docker run --rm ubuntu:latest bash -c 'for i in {1..10}; do date; sleep 1; done'

Then you can query for the logs as follows:

./oklog query --store localhost:10010

oklog-compose's People

Stargazers

Andrey Belyakov avatar Matt Vinall avatar

Watchers

James Cloos avatar Matt Vinall avatar

Forkers

drozzy

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.