OpsTail allows you to 'tail' the logs coming from the firehose
The easiest thing to do is just run opstail
from the terminal.
You can see the different options with -h
or --help
flag
To view a list of routing key run opstail -l
To get growl notifications turned on you need to have the correct library.
Install growlnotify(1). On OS X 10.8, Notification Center is supported using terminal-notifier. To install:
$ sudo gem install terminal-notifier
Install notify-send
through the libnotify-bin package:
$ sudo apt-get install libnotify-bin
Download and install Growl for Windows Download growlnotify - IMPORTANT : Unpack growlnotify to a folder that is present in your path!
Install with npm
:
$ npm install -g opstail
There are also several key commands you can use
Key | Description |
---|---|
/ | Enter into filter mode, just enter a regex (Enter nothing to clear search) |
\ | Enter into exclusion filter mode. Just enter a regex and the message will be excluded |
t | Toggle All Stack Traces |
m | Toggle Meta Data |
i | Toggle info messages |
w | Toggle warn messages |
e | Toggle Error Messages |
d | Toggle Debug Messages |
shift + i | Toggle Info Stack Traces |
shift + w | Toggle Warn Stack Traces |
shift + e | Toggle Error Stack Traces |
shift + d | Toggle Debug Stack Traces |
- Now supports different formats based on RoutingKey
- Now supports levelType from sand
- Fixed reprinting of messages
- Now supports utc with config options for time format
- Fixed bug with time formats
- Open Sourced OpsTail
- Now uses websockets to connect to EventsD
- Only error stack traces are enabled by default
- Limits number of stack traces to be reprinted to 50, can be changed with
numTraces
- Now automatically updates itself (in order for auto update to work you need to add gitLabKey to your config file. You can find it here
- Improved options
- You can now pass a config file with --config
- Reads config file in ./.opstail and ~/.opstail
- Now listen to error and close event
- tries to reconnect on error
- Added growl notifications
- Added Exclusion Filtering. Type a
\
and you can exclude messages from the results. Stacks on top of the/
inclusion filter. Type a blank message to remove the filter.
- Shortened the timestamp
- Swapped hostname and timestamp colors
- Added new line between messages
- Added script filename to meta data
- Added ability to filter your searches by a regex. Just type a
/
and then a regex without a delimiter. All filters are global and case insensitive. To clear your filter just type/
then hist enter with a empty search.
- Changed the buffer limit from number of items to free memory in MB