Query events currently know at a remote node
ax events query [FLAGS] [OPTIONS] <NODE> <query>
-h, --help Prints help information
-j, --json Format output as JSON
-V, --version Prints version information
-v Verbosity level. Add more v for higher verbosity (-v, -vv, -vvv, etc.)
-i, --identity <identity> File from which the identity (private key) for authentication is read
<NODE> the IP address or <host>:<admin port> of the node to perform the operation on
<query> event API query
This command allows you to submit a query to a remote node, tunneled through the admin port. For more details on the format of such queries please refer to the API docs.
$ ax events query localhost 'FROM "a"' | jq .
(The example above uses the
jq utility to nicely format the JSON output.)