Skip to main content

ax events query

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.

Example usage
$ ax events query localhost 'FROM "a"' | jq .
"lamport": 8002,
"stream": "eLaDx6r4VtctA3wVJnToJo.FIp.YinBoN5sL17CkvJU-0",
"offset": 1,
"timestamp": 1626157877703308,
"tags": [
"appId": "com.actyx.cli",
"payload": 42

(The example above uses the jq utility to nicely format the JSON output.)