In both query and send mode, HOST and PORT default to localhost and 5555, respectively.
Querymode
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:
-j, --json
Print the result in JSON format, instead of the default, human-readable one.
-T, --tcp
Send the event via TCP (the default).
-G, --tls
Send the event via TLS.
-o, --optionoption=value
Set one client option to the given value.
Available client options are:
cafile Path to the file containing trusted certificate authority certificates. Only used for TLS
connections.
certfile
Path to the file containing the public client certificate. Only used for TLS connections.
keyfile
Path to the file containing the private client key. Only used for TLS connections.
priorities
Priorities for the cipher suites to be used for the session.
Submitmode
In submit mode, riemann-client accepts the following options:
-s, --stateSTATE
The state the event should describe, free-form text, optional.
-S, --serviceSERVICE
The service the event is coming from.
-h, --hostHOST
The host the event originates from. Not to be confused with the optional HOST parameter of
riemann-client itself, which sets where to send the events to.
-D, --descriptionDESCRIPTION
The description of the event, optional.
-t, --tagTAG
This option can be used multiple times to add tags to the event.
-a, --attributeNAME=VALUE
This option can be used multiple times to add custom attributes to the event.
-i, --metric-sint64METRIC
Sets the metric for the event, using integer precision.
-d, --metric-dMETRIC
Sets the metric of the event, using double precision.
-f, --metric-fMETRIC
Sets the metric of the event, using floating point precision.
-L, --ttlTTL
An optional time-to-live of the event, in seconds (floating point number).
-T, --tcp
Send the event via TCP (the default).
-U, --udp
Send the event via UDP.
-G, --tls
Send the event via TLS.
-o, --optionoption=value
Set one client option to the given value.
Available client options are:
cafile Path to the file containing trusted certificate authority certificates. Only used for TLS
connections.
certfile
Path to the file containing the public client certificate. Only used for TLS connections.
keyfile
Path to the file containing the private client key. Only used for TLS connections.
priorities
Priorities for the cipher suites to be used for the session.
-0, --stdin
Continuously read and send metrics and states from standard input. Uses all other fields specified
on the command line. For each line on standard input, a new event will be sent to Riemann. If the
input is a number, it will be used as a metric. If not, it will be used as the state. If it is a
number, followed by a space and some string, then both metric and state will be set for the
outgoing event.