rcmachado / lognit-cli

Lognit command-line interface

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

#Installation

curl -s nit.lognit.com | sudo sh

To install in /usr/local instead of /usr:

curl -s nit.lognit.com | PREFIX=/usr/local sudo sh

Installing another version:

curl -s nit.lognit.com | sudo sh -s 1.2

Usage

First, connect to a server:

$ nit -s myserver

Then start using it!

$ nit '*'                 #searches everything
$ nit '*' -f              #searches everything, follows new messages
$ nit -i                  #requests current server message
$ nit 'abcd' -n 50 -f     #searches for 'abcd', last 50 messages, following new messages
$ nit 'abcd' -t 1         #searches for 'abcd', but waits only 1 second to all lognit nodes to respond.

More usage options:

$ nit --help

About

Lognit command-line interface

License:Other


Languages

Language:Java 99.2%Language:Shell 0.8%