Skip to content

Latest commit

 

History

History
39 lines (22 loc) · 1.13 KB

README.md

File metadata and controls

39 lines (22 loc) · 1.13 KB

riemann-cli

Command-line interface for Riemann. Can be used to query the Riemann index or send events from the command line

Build

$ go build

Usage

$ ./riemann-cli 
Please specify command: "send" or "query"
Querying

Try

$ ./riemann-cli query --help

If you don't provide a --query parameter, all the indexed events will be returned (the query sent is just 'true')

Sending events

Try

$ ./riemann-cli send --help

Without arguments, an event with some default properties will be sent (refer to the inline help for details). You may use the -v/--verbose switch to display the event:

$ ./riemann-cli -v send
Sending to tcp/localhost:5555
raidman.Event{Ttl:0, Time:0, Tags:[]string(nil), Host:"localhost", State:"ok", Service:"riemann-cli", Metric:0,         Description:"", Attributes:map[string]string{}}

The event can be read from a json file by using the -j/--json flag. You can override json attributes by passing them on the command line.

Binaries

Ubuntu 12.04/14.04