RIEMANN-CLIENT(1)
π NAME π
okay bestie, meet riemann-client β literally the Riemann communication tool. RIEMANN-CLIENT(1) is its page, and it lives in the riemann-c-client manual. iconic behavior from the jump π
π SYNOPSIS π
riemann-client query [OPTIONS...] QUERY [HOST] [PORT]
riemann-client send [OPTIONS...] [HOST] [PORT]
riemann-client --help|-?
riemann-client --version
β¨ DESCRIPTION β¨
okay so riemann-client is a very simple tool to facilitate communication with a Riemann event stream processing server. you can use it both for sending events to one, and to query it too. slay, honestly π«Ά
π OPTIONS π
in both query and send mode, HOST and PORT default to localhost and 5555, respectively. no cap β¨
π¦ Query mode π¦
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. bestie, exact vibes only π
see the Riemann documentation http://riemann.io/concepts.html for more information about the query syntax.
apart from the mandatory argument, 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,--option option=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.
πΈ Submit mode πΈ
in submit mode, riemann-client accepts the following options:
-s,--state STATEβ the state the event should describe, free-form text, optional.-S,--service SERVICEβ the service the event is coming from.-h,--host HOSTβ the host the event originates from. not to be confused with the optionalHOSTparameter ofriemann-clientitself, which sets where to send the events to.-D,--description DESCRIPTIONβ the description of the event, optional.-t,--tag TAGβ this option can be used multiple times to add tags to the event.-a,--attribute NAME=VALUEβ this option can be used multiple times to add custom attributes to the event.-i,--metric-sint64 METRICβ sets the metric for the event, using integer precision.-d,--metric-d METRICβ sets the metric of the event, using double precision.-f,--metric-f METRICβ sets the metric of the event, using floating point precision.-L,--ttl TTLβ 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,--option option=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.
π CAVEATS π
β³ Timeouts β³
ngl bestie, this one matters:riemann-clientwill never timeout. if for instance it tries to communicate with a broken server and stays there forever, you could use thetimeoutcommand. periodt β³
π₯ EXAMPLES π₯
π Sending an event π
$ 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
π§ Sending metrics / state from standard input π§
$ echo "1.5 ok" | \
riemann-client send --service "client-test: stdin" \
--host "my-host" \
--description "A message from STDIN" \
--tag stdin \
--tcp \
--stdin
β Querying Riemann β
$ riemann-client query 'host = "my-host"'
π Using TLS π
$ 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
π AUTHOR π
Gergely Nagy riemann@gergo.csillger.hu β iconic π
π SEE ALSO π
mwah π β this RIEMANN-CLIENT(1) page comes from The MadHouse Project and is dated March 2016. byeee bestie, go communicate with Riemann and slay π«Άβ¨
π¦ where this page comes from
- alpine 3.24: riemann-c-client-doc 2.2.2-r0 Β· LGPL-3.0-or-later
- nixos 26.05: riemann-c-client 2.2.2
- nixpkgs unstable: riemann-c-client 2.2.2
- π the page's license: EUPL-1.2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms