| RIEMANN-CLIENT(1) | riemann-c-client | RIEMANN-CLIENT(1) |
riemann-client - Riemann communication tool
riemann-client query [OPTIONS...]
QUERY [HOST] [PORT]
riemann-client send [OPTIONS...] [HOST]
[PORT]
riemann-client --help|-?
riemann-client --version
riemann-client is a very simple tool to facilitate communication with a Riemann event stream processing server. It can be used both for sending events to one, and to query it too.
In both query and send mode, HOST and PORT default to localhost and 5555, respectively.
In query mode, riemann-client takes one mandatory argument: the query itself. It must be a single argument, which will be sent to Riemann as-is, and the response dumped to the standard output, or, in case of an error, the error message will be written to the standard error.
See the Riemann documentation http://riemann.io/concepts.html for more information about the query syntax.
Apart from the mandatory argument, the riemann-client accepts the following options in query mode:
Available client options are:
In submit mode, riemann-client accepts the following options:
Available client options are:
$ riemann-client send --state ok \
--service "client-test" \
--host "my-host" \
--description "A message from the Manual" \
--tag tag-1 --tag tag-2 \
--attribute x-manual=best-friend \
--metric-sint64 1 \
--ttl 300.5 \
--tcp
$ echo "1.5 ok" | \
riemann-client send --service "client-test: stdin" \
--host "my-host" \
--description "A message from STDIN" \
--tag stdin \
--tcp \
--stdin
$ riemann-client query 'host = "my-host"'
$ riemann-client query 'host = "my-host"' \
--tls \
--option cafile=tests/data/cacert.pem \
--option certfile=tests/data/client.crt \
--option keyfile=tests/data/client.key \
--option priorities=NORMAL \
localhost 5554
Gergely Nagy algernon@madhouse-project.org
| March 2016 | The MadHouse Project |