Logsene Command-line Interface
Enables searching Logsene log entries from the command-line. Currently supports OS X and Linux.
...
npm install logsene-cli -g
or
git clone https://github.com/sematext/logsene-cli.git
cd logsene-cli && npm install
npm link
To test, simply run:
npm test
Logsene
Logsene is a centralized log management solution. You basically upload your logs in bulk or real-time from all your servers.
...
Imagine a situation where you suspected that your site were under a DoS attack.
You'd be interested in quickly finding out the top offenders. Here’s a one-liner that shows top originating IP addresses in he the last 10 minutes 3 hours (also shows how to use the -f
switch to specify which field(s) to return - field host
, in this example):
$ logsene search -t 10m 3h -f host | sort | uniq -c | sort -r | head -n20
...