GithubHelp home page GithubHelp logo

k1low / evry Goto Github PK

View Code? Open in Web Editor NEW
63.0 3.0 1.0 244 KB

Split STDIN stream and execute specified command every N lines/seconds.

License: MIT License

Makefile 6.10% Go 91.71% Dockerfile 2.04% Shell 0.15%
stdin stream analytics

evry's Introduction

evry Build Status GitHub release

evry split STDIN stream and execute specified command every N lines/seconds.

screencast

Key features of evry are:

  • Split STDIN stream every N lines or every N seconds.
  • Sequential IN -> Parallel execution -> Sequential OUT.

img

Usage

$ [STDIN] | evry [-l N or -s N] -c [COMMAND]

or

$ [STDIN] | evry [-l N or -s N] -- [COMMAND]

Count number of requests every 10 seconds

$ tail -F access.log | evry -s 10 -- wc -l

Show top 5 access rank every 1000 lines

$ tail -F access.log | evry -l 1000 -c 'cut -d" " -f7 | sort | uniq -c | sort -nr | head -5'

Install

deb:

Use dpkg-i-from-url

$ export EVRY_VERSION=X.X.X
$ curl -L https://git.io/dpkg-i-from-url | bash -s -- https://github.com/k1LoW/evry/releases/download/v$EVRY_VERSION/evry_$EVRY_VERSION-1_amd64.deb

RPM:

$ export EVRY_VERSION=X.X.X
$ yum install https://github.com/k1LoW/evry/releases/download/v$EVRY_VERSION/evry_$EVRY_VERSION-1_amd64.rpm

apk:

Use apk-add-from-url

$ export EVRY_VERSION=X.X.X
$ curl -L https://git.io/apk-add-from-url | sh -s -- https://github.com/k1LoW/evry/releases/download/v$EVRY_VERSION/evry_$EVRY_VERSION-1_amd64.apk

homebrew tap:

$ brew install k1LoW/tap/evry

manually:

Download binary from releases page

go get:

$ go get github.com/k1LoW/evry

docker:

$ docker pull ghcr.io/k1low/evry:latest

References

evry's People

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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

isgasho

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.