Command-line reference

arcsentry graph

Build and read graph layers: a query's results laid out as nodes and edges.

Subcommands

Build and read graph layers: a query's results laid out as nodes and edges.

A layer is created from one query over one evidence item and one event type, and is then read, ruled on, or removed by its id. The query runs once, when the layer is created, and its nodes and edges are stored in the case: reading a layer does not re-run the query, so it does not see records stored since. A layer whose build was bounded records that it was truncated, and graph list-layers reports it. Layers can be gathered in named layer groups with graph create-layer-group and graph set-layer-group.

arcsentry graph <subcommand>

Examples

Build a layer from the logons in one evidence item

arcsentry graph create-layer --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 --evidence 8c3d1e77-9f42-4a6b-b810-2e5d47c9a013 --event-type evtx_security --query 'filter event_type == "evtx_security" | take 500' --name "WS203 logons"

List the layers already built in a case

arcsentry graph list-layers --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2

Read a layer's nodes

arcsentry graph nodes --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 --layer-ids 5d82a6f1-4c39-4e70-8a15-7b6d29c34e08

Rule one node malicious

arcsentry graph set-verdict --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 --layer-ids 5d82a6f1-4c39-4e70-8a15-7b6d29c34e08 --node-id 2f6a9c41-7d3e-5b18-9a04-c85e1f27b3d6 --verdict malicious

Subcommand reference

arcsentry graph create-layer

Build a graph layer from one AQL or SQL query, scoped to one evidence item and one event type.

A layer is built from one query over one evidence item and one event type. --time-start and --time-end take an ISO 8601 timestamp with an offset or Z. Pass --query-language sql to build the layer from a SQL SELECT over scope, and --group to build it in a layer group. The build reads every record the query selects, never a bounded part of them; with --format json the answer adds records_read, the number of records it read. Each stage of the build is written on stderr with its counts, the records read and the entities and connections stored, and stdout carries only the answer; interrupting the command before the build reaches Finishing stops the build and leaves no layer behind, and once Finishing is written the layer is saved.

arcsentry graph create-layer --case <case> --query <query> --evidence <evidence> --event-type <event-type> [options]
OptionDescription
-c, --case <case>required Case UUID.
-q, --query <query>required Query returning records, one per row, whose fields become the layer's nodes and edges, in the language --query-language names.
-l, --query-language <query-language> Language of --query: aql or sql. Default: "aql".
-H, --evidence <evidence>required Evidence UUID the layer is built from.
-e, --event-type <event-type>required Event type the layer is built from, e.g. evtx_security.
-n, --name <name> Name for the layer. One is generated when omitted.
-s, --time-start <time> Earliest event time to include, as an ISO 8601 timestamp with an offset or Z.
-E, --time-end <time> Latest event time to include, as an ISO 8601 timestamp with an offset or Z.
-g, --group <group> Layer group UUID to build the layer in, as printed by graph list-layer-groups. The layer is built without a group when omitted.
-f, --format <format> Output format: json, table, jsonl or csv. Default: "json".

Examples

Build a layer from the logon events of one evidence item inside a layer group

arcsentry graph create-layer --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 --evidence 8c3d1e77-9f42-4a6b-b810-2e5d47c9a013 --event-type evtx_security --query 'filter event_type == "evtx_security" | take 500' --name "WS203 logons" --group e3a1f6c2-8b47-4d09-9c15-6f2b7d4a0e38

Build a layer covering only the night of the intrusion

arcsentry graph create-layer --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 --evidence 8c3d1e77-9f42-4a6b-b810-2e5d47c9a013 --event-type evtx_security --query 'filter event_type == "evtx_security" | take 2000' --time-start 2026-07-29T00:00:00Z --time-end 2026-07-29T06:00:00Z

Build a layer using the short forms of every flag

arcsentry graph create-layer -c 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 -H 8c3d1e77-9f42-4a6b-b810-2e5d47c9a013 -e evtx_security -q 'filter event_type == "evtx_security" | take 100' -n "Quick look"

Build a layer from a SQL query

arcsentry graph create-layer --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 --evidence 8c3d1e77-9f42-4a6b-b810-2e5d47c9a013 --event-type evtx_security --query-language sql --query "SELECT * FROM scope WHERE event_type = 'evtx_security' LIMIT 500" --name "WS203 SQL layer"

arcsentry graph list-layers

List the graph layers built in a case, with their ids and names.

Each row carries the query, evidence and event type the layer was built from, its node and edge counts and its time window, so you can tell what a layer covers without reading it. A layer whose build was bounded reports that it was truncated together with the reason it stopped. Layers come back in the case's own layer order. The id printed here is what --layer-ids and --layer take.

arcsentry graph list-layers --case <case> [options]
OptionDescription
-c, --case <case>required Case UUID.
-f, --format <format> Output format: json, table, jsonl or csv. Default: "json".

Examples

List the layers built in a case

arcsentry graph list-layers --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2

List them using the short form of the flag

arcsentry graph list-layers -c 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2

Pull out just the layer ids and names

arcsentry graph list-layers --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 | jq -r '.[] | "\(.id) \(.name)"'

Read the nodes of one of the listed layers

arcsentry graph nodes --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 --layer-ids 5d82a6f1-4c39-4e70-8a15-7b6d29c34e08

arcsentry graph delete-layer

Delete one graph layer. The records it was built from are untouched.

Deleting a layer removes its nodes, its edges, every stored build of it, and the verdicts recorded on its nodes. The verdicts those nodes cascaded onto events stay in the case, as do the events themselves. The deletion is recorded in the case log. Nothing is kept to undo it: build the layer again with graph create-layer from the same query.

arcsentry graph delete-layer --case <case> --layer <layer>
OptionDescription
-c, --case <case>required Case UUID.
-L, --layer <layer>required Layer id to delete, as printed by graph list-layers.

Examples

Delete one layer

arcsentry graph delete-layer --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 --layer 5d82a6f1-4c39-4e70-8a15-7b6d29c34e08

Delete it using the short forms of both flags

arcsentry graph delete-layer -c 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 -L 5d82a6f1-4c39-4e70-8a15-7b6d29c34e08

Check which layers exist before deleting one

arcsentry graph list-layers --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2

Build the layer again from the same query

arcsentry graph create-layer --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 --evidence 8c3d1e77-9f42-4a6b-b810-2e5d47c9a013 --event-type evtx_security --query 'filter event_type == "evtx_security" | take 500'

arcsentry graph nodes

Print the nodes of one or more graph layers.

Node ids are entity-canonical: an entity present in two of the layers named by --layer-ids comes back once, carrying both layer ids. Each node carries its entity type, label, source fields, record count, verdict, whether an indicator matched and its degree, and the id is what graph set-verdict --node-id takes. A listing returns one page in node id order, or most records first under --order rank, the filters narrow the whole of the named layers, and a layer id that does not exist refuses the whole read. A first page carries total, by_type, by_relation and type_cursors, and a next_cursor passed back with --cursor and the same flags continues the listing. With --format jsonl or csv every page is written as it arrives, stderr shows how many entities are listed of the first page's total while stdout carries only the rows, and Ctrl-C stops the listing.

arcsentry graph nodes --case <case> --layer-ids <layer-ids> [options]
OptionDescription
-c, --case <case>required Case UUID.
-L, --layer-ids <layer-ids>required Comma-separated layer ids to read.
-C, --cursor <cursor> Continue after the last node of a page: pass the next_cursor that page printed, with the same other flags.
-l, --limit <limit> Nodes per page. The page says whether more remain and how to continue.
-o, --order <order> Order of the nodes: id for node id order, or rank for most records first.
-v, --focus-verdict <focus-verdict> Keep only nodes ruled with one of these comma-separated verdicts: legitimate, suspicious, malicious.
-i, --focus-indicator-matches Keep only nodes that match a flagged indicator.
-w, --with-neighbors With a verdict or indicator focus, also keep the nodes joined to a focused node by an edge.
-x, --cross-layer-only Keep only nodes held by two or more of the named layers, with their neighbours.
-n, --connectivity <connectivity> Keep only connected nodes, joined by an edge to another node that --focus-verdict, --focus-indicator-matches and --cross-layer-only keep, or only orphan nodes, joined to none: connected or orphan. An edge of a type --hide-relation hides still joins, and --time-start, --time-end, --label-contains and --entity-type narrow after this one.
-r, --hide-relation <hide-relation> Comma-separated connection types whose edges are left out of the answer.
-s, --time-start <time-start> Keep only nodes with a record at or after this ISO-8601 instant.
-e, --time-end <time-end> Keep only nodes with a record at or before this ISO-8601 instant.
-t, --label-contains <label-contains> Keep only nodes whose label contains this text, ignoring letter case.
-y, --entity-type <entity-type> Keep only nodes of these comma-separated entity types.
-N, --node-ids <node-ids> Comma-separated node ids: answer only those of them that the other flags keep.
-f, --format <format> Output format: json, table, jsonl or csv. Default: "json".

Examples

Print one layer's nodes

arcsentry graph nodes --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 --layer-ids 5d82a6f1-4c39-4e70-8a15-7b6d29c34e08

Print the orphan nodes of two layers together, the nodes no edge joins to another node

arcsentry graph nodes --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 --layer-ids 5d82a6f1-4c39-4e70-8a15-7b6d29c34e08,7a3c05e9-8b61-4d24-9f07-3e5a1c8b60d4 --connectivity orphan

Print the second page of nodes with the cursor the first page printed

arcsentry graph nodes --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 --layer-ids 5d82a6f1-4c39-4e70-8a15-7b6d29c34e08 --limit 500 --cursor WzEwMzQ4MV0

Print the nodes ruled malicious and their neighbours, most records first

arcsentry graph nodes --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 --layer-ids 5d82a6f1-4c39-4e70-8a15-7b6d29c34e08 --order rank --focus-verdict malicious --with-neighbors

arcsentry graph edges

Print the edges of one or more graph layers.

Edges are read per layer and carry the relation they represent, whether it is directed, its weight and its confidence, and naming two layers in --layer-ids returns both layers' edges together, each tagged with its layer. The filters of graph nodes narrow the edges, --node-ids lists the neighbours of those nodes, and --edge-mode induced with --peer-ids lists only the edges among the nodes and the peers. A first page carries total, and a next_cursor passed back with --cursor and the same flags continues after the last edge. A layer id that does not exist refuses the whole read, and the endpoint ids an edge references are node ids read with graph nodes. With --format jsonl or csv every page is written as it arrives, stderr shows how many connections are listed of the first page's total while stdout carries only the rows, and Ctrl-C stops the listing.

arcsentry graph edges --case <case> --layer-ids <layer-ids> [options]
OptionDescription
-c, --case <case>required Case UUID.
-L, --layer-ids <layer-ids>required Comma-separated layer ids to read.
-C, --cursor <cursor> Continue after the last edge of a page: pass the next_cursor that page printed, with the same other flags.
-l, --limit <limit> Edges per page. The page says whether more remain and how to continue.
-v, --focus-verdict <focus-verdict> Keep only nodes ruled with one of these comma-separated verdicts: legitimate, suspicious, malicious.
-i, --focus-indicator-matches Keep only nodes that match a flagged indicator.
-w, --with-neighbors With a verdict or indicator focus, also keep the nodes joined to a focused node by an edge.
-x, --cross-layer-only Keep only nodes held by two or more of the named layers, with their neighbours.
-n, --connectivity <connectivity> Keep only connected nodes, joined by an edge to another node that --focus-verdict, --focus-indicator-matches and --cross-layer-only keep, or only orphan nodes, joined to none: connected or orphan. An edge of a type --hide-relation hides still joins, and --time-start, --time-end, --label-contains and --entity-type narrow after this one.
-r, --hide-relation <hide-relation> Comma-separated connection types whose edges are left out of the answer.
-s, --time-start <time-start> Keep only nodes with a record at or after this ISO-8601 instant.
-e, --time-end <time-end> Keep only nodes with a record at or before this ISO-8601 instant.
-t, --label-contains <label-contains> Keep only nodes whose label contains this text, ignoring letter case.
-y, --entity-type <entity-type> Keep only nodes of these comma-separated entity types.
-N, --node-ids <node-ids> Comma-separated node ids whose connections to list: every edge with an end in them.
-m, --edge-mode <edge-mode> With --node-ids: incident for every edge with an end in them, or induced for edges among them and --peer-ids.
-P, --peer-ids <peer-ids> With --edge-mode induced: comma-separated node ids that may be the other end of an edge.
-f, --format <format> Output format: json, table, jsonl or csv. Default: "json".

Examples

Print one layer's edges

arcsentry graph edges --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 --layer-ids 5d82a6f1-4c39-4e70-8a15-7b6d29c34e08

Print the edges of two layers together

arcsentry graph edges --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 --layer-ids 5d82a6f1-4c39-4e70-8a15-7b6d29c34e08,7a3c05e9-8b61-4d24-9f07-3e5a1c8b60d4

Print every connection of one node

arcsentry graph edges --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 --layer-ids 5d82a6f1-4c39-4e70-8a15-7b6d29c34e08 --node-ids 2f6a9c41-7d3e-5b18-9a04-c85e1f27b3d6

Print the edges without the co-occurrence connections

arcsentry graph edges --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 --layer-ids 5d82a6f1-4c39-4e70-8a15-7b6d29c34e08 --hide-relation co-occurrence --connectivity connected

arcsentry graph indicator-matches

Print which flagged indicators the nodes of graph layers match, and on which field.

Each row names a node of the layers, the flagged indicator it matched, the field the indicator was flagged on, the indicator's type and value, and whether the node matched through a value it carries or through its record. Rows come in the order of the layers you name, then in the order the matches were found. Naming no layer reads every layer of the case, and --node-id keeps only the matches of one node. The first page carries total, the number of matches, and a page with has_more true carries a next_cursor that, passed back with --cursor and the same flags, continues the same walk. A cursor from before a layer was reloaded is refused; list again from the first page.

arcsentry graph indicator-matches --case <case> [options]
OptionDescription
-c, --case <case>required Case UUID.
-L, --layer-ids <layer-ids> Comma-separated layer ids to read. Without it every layer of the case is read.
-N, --node-id <node-id> Keep only the matches of this node, as printed by graph nodes.
-C, --cursor <cursor> Continue after the last match of a page: pass the next_cursor that page printed, with the same other flags.
-l, --limit <limit> Matches per page. The page says whether more remain and how to continue.
-f, --format <format> Output format: json, table, jsonl or csv. Default: "json".

Examples

Print every indicator match in the case

arcsentry graph indicator-matches --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2

Print the matches of one node using the short forms

arcsentry graph indicator-matches -c 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 -L 5d82a6f1-4c39-4e70-8a15-7b6d29c34e08 -N 2b8e41c7-6d09-4f3a-8c52-9e1a7d304b6f

Print the second page of matches over two layers

arcsentry graph indicator-matches --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 --layer-ids 5d82a6f1-4c39-4e70-8a15-7b6d29c34e08,7a3c05e9-8b61-4d24-9f07-3e5a1c8b60d4 --limit 200 --cursor WzEwMzQ4MV0

Print the nodes that match an indicator

arcsentry graph nodes --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 --layer-ids 5d82a6f1-4c39-4e70-8a15-7b6d29c34e08 --focus-indicator-matches

arcsentry graph node-timeline

Print the events linked to one graph node in time order.

Each row is one event linked to the node: when it happened, its event type, a one-line summary, the evidence and event ids to open it with incident record, the verdict ruled on it and the layers that hold the node. Rows come oldest first. --time-start and --time-end take an ISO 8601 timestamp with an offset or Z and keep only the events inside that window. A first page carries total, the number of records the window keeps, and a page with has_more true carries a next_cursor that, passed back with --cursor and the same flags, continues after its last row. A cursor from before a layer was reloaded is refused; read again from the first page.

arcsentry graph node-timeline --case <case> --layer-ids <layer-ids> --node-id <node-id> [options]
OptionDescription
-c, --case <case>required Case UUID.
-L, --layer-ids <layer-ids>required Comma-separated layer ids the node belongs to.
-N, --node-id <node-id>required Node whose events to print, as printed by graph nodes.
-s, --time-start <time> Earliest event time to include, as an ISO 8601 timestamp with an offset or Z.
-e, --time-end <time> Latest event time to include, as an ISO 8601 timestamp with an offset or Z.
-C, --cursor <cursor> Continue after the last row of a page: pass the next_cursor that page printed, with the same other flags.
-l, --limit <limit> Rows per page. The page says whether more remain and how to continue.
-f, --format <format> Output format: json, table, jsonl or csv. Default: "json".

Examples

Print the events linked to one node

arcsentry graph node-timeline --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 --layer-ids 5d82a6f1-4c39-4e70-8a15-7b6d29c34e08 --node-id 2b8e41c7-6d09-4f3a-8c52-9e1a7d304b6f

Print the same events inside a window using the short forms

arcsentry graph node-timeline -c 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 -L 5d82a6f1-4c39-4e70-8a15-7b6d29c34e08 -N 2b8e41c7-6d09-4f3a-8c52-9e1a7d304b6f -s 2026-04-27T20:00:00Z -e 2026-04-27T23:59:59Z

Print the second page for a node held by two layers

arcsentry graph node-timeline --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 --layer-ids 5d82a6f1-4c39-4e70-8a15-7b6d29c34e08,7a3c05e9-8b61-4d24-9f07-3e5a1c8b60d4 --node-id 2b8e41c7-6d09-4f3a-8c52-9e1a7d304b6f --limit 200 --cursor WzEwMzQ4MV0

Open one record a timeline row names

arcsentry incident record --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 --evidence-id 8c3d1e77-9f42-4a6b-b810-2e5d47c9a013 --event-id 6e41d0a2-5b78-4c93-a1f6-0d82b7c35e19

arcsentry graph set-verdict

Record a verdict on one node in a graph layer.

The verdict is one of legitimate, suspicious or malicious; any other word is refused. It is recorded on the node in every layer named by --layer-ids, and it cascades onto each event the node is linked to, so a verdict-scoped query returns those events too. Name only layers the node appears in, because a layer that does not currently hold the node refuses the write. The cascade reaches every linked event, and with --format json the answer reports marked, the number of events marked, and complete. A cascade that stopped early exits non-zero with its remedy, which is to run the command again, and graph clear-verdict clears a verdict.

arcsentry graph set-verdict --case <case> --node-id <node-id> --layer-ids <layer-ids> --verdict <verdict> [options]
OptionDescription
-c, --case <case>required Case UUID.
-N, --node-id <node-id>required Node id to rule on, as printed by graph nodes.
-L, --layer-ids <layer-ids>required Comma-separated layer ids the node belongs to.
-v, --verdict <verdict>required Verdict to record, e.g. suspicious or malicious.
-f, --format <format> Output format: json, table, jsonl or csv. Default: "json".

Examples

Rule one node malicious

arcsentry graph set-verdict --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 --layer-ids 5d82a6f1-4c39-4e70-8a15-7b6d29c34e08 --node-id 2f6a9c41-7d3e-5b18-9a04-c85e1f27b3d6 --verdict malicious

Mark a node suspicious pending review

arcsentry graph set-verdict --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 --layer-ids 5d82a6f1-4c39-4e70-8a15-7b6d29c34e08 --node-id 8b1d4e7a-3c59-5f02-a6e8-4d9b7c15e320 --verdict suspicious

Rule on a node that appears in two layers

arcsentry graph set-verdict --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 --layer-ids 5d82a6f1-4c39-4e70-8a15-7b6d29c34e08,7a3c05e9-8b61-4d24-9f07-3e5a1c8b60d4 --node-id 2f6a9c41-7d3e-5b18-9a04-c85e1f27b3d6 --verdict malicious

Read the nodes back; each one carries the verdict it was ruled

arcsentry graph nodes --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 --layer-ids 5d82a6f1-4c39-4e70-8a15-7b6d29c34e08 --format json

arcsentry graph clear-verdict

Clear the verdict on one node in graph layers.

Removes the verdict recorded on one node in every layer named by --layer-ids, and from each event the node is linked to, so the node and its events return to unreviewed together. Name only layers the node appears in, because a layer that does not currently hold the node refuses the write. The clearing reaches every linked event, in steps; with --format json the answer reports unmarked, the number of events returned to unreviewed, and complete. A clearing that stopped early exits non-zero with its remedy: run the command again to finish. Read each node's verdict with graph nodes.

arcsentry graph clear-verdict --case <case> --node-id <node-id> --layer-ids <layer-ids> [options]
OptionDescription
-c, --case <case>required Case UUID.
-N, --node-id <node-id>required Node id whose verdict to clear, as printed by graph nodes.
-L, --layer-ids <layer-ids>required Comma-separated layer ids the node belongs to.
-f, --format <format> Output format: json, table, jsonl or csv. Default: "json".

Examples

Clear the verdict on one node

arcsentry graph clear-verdict --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 --layer-ids 5d82a6f1-4c39-4e70-8a15-7b6d29c34e08 --node-id 2f6a9c41-7d3e-5b18-9a04-c85e1f27b3d6

Clear the verdict using the short forms of the flags

arcsentry graph clear-verdict -c 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 -L 5d82a6f1-4c39-4e70-8a15-7b6d29c34e08 -N 2f6a9c41-7d3e-5b18-9a04-c85e1f27b3d6

Clear the verdict of a node that appears in two layers and print the answer

arcsentry graph clear-verdict --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 --layer-ids 5d82a6f1-4c39-4e70-8a15-7b6d29c34e08,7a3c05e9-8b61-4d24-9f07-3e5a1c8b60d4 --node-id 2f6a9c41-7d3e-5b18-9a04-c85e1f27b3d6 --format json

Read the nodes back to confirm the verdict is gone

arcsentry graph nodes --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 --layer-ids 5d82a6f1-4c39-4e70-8a15-7b6d29c34e08 --format json

arcsentry graph rename-layer

Give a graph layer a new name.

The name is stored without surrounding white space, and a name that is blank after that is refused. Layer names need not be unique, so two layers can share one; address a layer by its UUID, printed by graph list-layers. The answer is the renamed layer, as one graph list-layers row.

arcsentry graph rename-layer --case <case> --layer <layer> --name <name> [options]
OptionDescription
-c, --case <case>required Case UUID.
-L, --layer <layer>required Layer UUID to rename, as printed by graph list-layers.
-n, --name <name>required The new name of the layer.
-f, --format <format> Output format: json, table, jsonl or csv. Default: "json".

Examples

Give a layer a meaningful name

arcsentry graph rename-layer --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 --layer 5d82a6f1-4c39-4e70-8a15-7b6d29c34e08 --name "Lateral movement"

Rename a layer using the short forms of the flags

arcsentry graph rename-layer -c 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 -L 5d82a6f1-4c39-4e70-8a15-7b6d29c34e08 -n "WS203 logons"

Rename a layer and print the renamed layer as JSON

arcsentry graph rename-layer --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 --layer 7a3c05e9-8b61-4d24-9f07-3e5a1c8b60d4 --name "Process starts" --format json

List the layers to confirm the new name

arcsentry graph list-layers --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2

arcsentry graph reorder-layers

Change the order the graph layers are listed in.

Name every layer of the case once, in the order you want them listed, top first. A list that leaves a layer out, names one twice or names a layer the case does not hold is refused and nothing is changed. Read the layers with graph list-layers first. The answer is the layers in their new order, as graph list-layers rows.

arcsentry graph reorder-layers --case <case> --layer-ids <layer-ids> [options]
OptionDescription
-c, --case <case>required Case UUID.
-L, --layer-ids <layer-ids>required Comma-separated ids of every layer of the case, in the order to list them, top first.
-f, --format <format> Output format: json, table, jsonl or csv. Default: "json".

Examples

Put the second of two layers on top

arcsentry graph reorder-layers --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 --layer-ids 7a3c05e9-8b61-4d24-9f07-3e5a1c8b60d4,5d82a6f1-4c39-4e70-8a15-7b6d29c34e08

Restore the first order using the short forms of the flags

arcsentry graph reorder-layers -c 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 -L 5d82a6f1-4c39-4e70-8a15-7b6d29c34e08,7a3c05e9-8b61-4d24-9f07-3e5a1c8b60d4

Reorder the layers and print the persisted list as JSON

arcsentry graph reorder-layers --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 --layer-ids 7a3c05e9-8b61-4d24-9f07-3e5a1c8b60d4,5d82a6f1-4c39-4e70-8a15-7b6d29c34e08 --format json

List the layers to confirm their order

arcsentry graph list-layers --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2

arcsentry graph list-layer-groups

List the layer groups of a case, with the layers in each.

Groups come back in the case's group order. Each row carries the group's id and name and its layers, each by id and name, in the case's layer order. A layer is in at most one group, and graph list-layers shows each layer's group_id and group_name. The id printed here is what --group takes.

arcsentry graph list-layer-groups --case <case> [options]
OptionDescription
-c, --case <case>required Case UUID.
-f, --format <format> Output format: json, table, jsonl or csv. Default: "json".

Examples

List the layer groups of a case

arcsentry graph list-layer-groups --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2

List them using the short form of the flag

arcsentry graph list-layer-groups -c 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2

Pull out just the group ids and names

arcsentry graph list-layer-groups --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 | jq -r '.[] | "\(.id) \(.name)"'

Print one group per line

arcsentry graph list-layer-groups --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 --format jsonl

arcsentry graph create-layer-group

Create an empty layer group in a case.

The group is listed after the other groups of the case. The name is stored without surrounding white space, a blank name is refused, and so is a name another group of the case already has, whatever its capitals. The answer is the new group, as one graph list-layer-groups row. Put layers in it with graph set-layer-group, or build a layer in it with graph create-layer --group.

arcsentry graph create-layer-group --case <case> --name <name> [options]
OptionDescription
-c, --case <case>required Case UUID.
-n, --name <name>required The name of the group.
-f, --format <format> Output format: json, table, jsonl or csv. Default: "json".

Examples

Create a group for the lateral movement layers

arcsentry graph create-layer-group --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 --name "Lateral movement"

Create a group using the short forms of the flags

arcsentry graph create-layer-group -c 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 -n "Logons"

Create a group and print it as JSON

arcsentry graph create-layer-group --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 --name "Persistence" --format json

List the groups to see the new one

arcsentry graph list-layer-groups --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2

arcsentry graph rename-layer-group

Give a layer group a new name.

The name is stored without surrounding white space, a blank name is refused, and so is a name another group of the case already has, whatever its capitals. Address the group by its UUID, printed by graph list-layer-groups. The answer is the renamed group, as one graph list-layer-groups row.

arcsentry graph rename-layer-group --case <case> --group <group> --name <name> [options]
OptionDescription
-c, --case <case>required Case UUID.
-g, --group <group>required Layer group UUID, as printed by graph list-layer-groups.
-n, --name <name>required The new name of the group.
-f, --format <format> Output format: json, table, jsonl or csv. Default: "json".

Examples

Give a group a meaningful name

arcsentry graph rename-layer-group --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 --group e3a1f6c2-8b47-4d09-9c15-6f2b7d4a0e38 --name "Initial access"

Rename a group using the short forms of the flags

arcsentry graph rename-layer-group -c 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 -g e3a1f6c2-8b47-4d09-9c15-6f2b7d4a0e38 -n "Logons"

Rename a group and print the renamed group as JSON

arcsentry graph rename-layer-group --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 --group c5d8b2e7-1f94-4a63-8e20-7b9c4d1a5f06 --name "Process starts" --format json

List the groups to confirm the new name

arcsentry graph list-layer-groups --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2

arcsentry graph delete-layer-group

Delete one layer group. Its layers stay in the case, without a group.

Deleting a group takes each of its layers out of it. The layers, their nodes, edges and verdicts stay as they are, in the same layer order, and can be put in another group with graph set-layer-group. The deletion is recorded in the case log.

arcsentry graph delete-layer-group --case <case> --group <group>
OptionDescription
-c, --case <case>required Case UUID.
-g, --group <group>required Layer group UUID to delete, as printed by graph list-layer-groups.

Examples

Delete one group

arcsentry graph delete-layer-group --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 --group e3a1f6c2-8b47-4d09-9c15-6f2b7d4a0e38

Delete it using the short forms of both flags

arcsentry graph delete-layer-group -c 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 -g e3a1f6c2-8b47-4d09-9c15-6f2b7d4a0e38

Check which groups exist before deleting one

arcsentry graph list-layer-groups --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2

List the layers, which stay after their group is deleted

arcsentry graph list-layers --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2

arcsentry graph reorder-layer-groups

Change the order the layer groups are listed in.

Name every group of the case once, in the order you want them listed, first first. A list that leaves a group out, names one twice or names a group the case does not hold is refused and nothing is changed. Read the groups with graph list-layer-groups first. The layers inside a group follow the case's layer order, which graph reorder-layers sets. The answer is the groups in their new order, as graph list-layer-groups rows.

arcsentry graph reorder-layer-groups --case <case> --group-ids <group-ids> [options]
OptionDescription
-c, --case <case>required Case UUID.
-g, --group-ids <group-ids>required Comma-separated ids of every layer group of the case, in the order to list them, first first.
-f, --format <format> Output format: json, table, jsonl or csv. Default: "json".

Examples

Put the second of two groups first

arcsentry graph reorder-layer-groups --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 --group-ids c5d8b2e7-1f94-4a63-8e20-7b9c4d1a5f06,e3a1f6c2-8b47-4d09-9c15-6f2b7d4a0e38

Restore the first order using the short forms of the flags

arcsentry graph reorder-layer-groups -c 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 -g e3a1f6c2-8b47-4d09-9c15-6f2b7d4a0e38,c5d8b2e7-1f94-4a63-8e20-7b9c4d1a5f06

Reorder the groups and print the persisted list as JSON

arcsentry graph reorder-layer-groups --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 --group-ids c5d8b2e7-1f94-4a63-8e20-7b9c4d1a5f06,e3a1f6c2-8b47-4d09-9c15-6f2b7d4a0e38 --format json

List the groups to confirm their order

arcsentry graph list-layer-groups --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2

arcsentry graph set-layer-group

Put a graph layer in a layer group, move it to another group, or take it out of its group.

A layer is in at most one group. Pass --group to put the layer in that group, which takes it out of the group it was in; leave --group out to take the layer out of its group. The layer keeps its place in the case's layer order. The answer is the layer, as one graph list-layers row, with its group_id and group_name.

arcsentry graph set-layer-group --case <case> --layer <layer> [options]
OptionDescription
-c, --case <case>required Case UUID.
-L, --layer <layer>required Layer UUID to move, as printed by graph list-layers.
-g, --group <group> Layer group UUID to put the layer in, as printed by graph list-layer-groups. Leave it out to take the layer out of its group.
-f, --format <format> Output format: json, table, jsonl or csv. Default: "json".

Examples

Put a layer in a group

arcsentry graph set-layer-group --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 --layer 5d82a6f1-4c39-4e70-8a15-7b6d29c34e08 --group e3a1f6c2-8b47-4d09-9c15-6f2b7d4a0e38

Move the layer to another group using the short forms of the flags

arcsentry graph set-layer-group -c 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 -L 5d82a6f1-4c39-4e70-8a15-7b6d29c34e08 -g c5d8b2e7-1f94-4a63-8e20-7b9c4d1a5f06

Take the layer out of its group

arcsentry graph set-layer-group --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 --layer 5d82a6f1-4c39-4e70-8a15-7b6d29c34e08

List the groups to see where each layer is

arcsentry graph list-layer-groups --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2

arcsentry graph reload-layer

Rebuild a graph layer in place from a restated definition, keeping its id and verdicts.

Give the whole definition again, as for graph create-layer; read the current one with graph list-layers --format json. Verdicts you set on the layer's entities are kept. The layer keeps its id, its previous definition, nodes and edges are replaced, and a verdict shows again on any entity the new definition yields. Each stage of the rebuild is written on stderr with its counts; Ctrl-C before Finishing is written stops the rebuild and the layer stays as it was before, and once Finishing is written the layer is rebuilt. The answer is the rebuilt layer, as one graph list-layers row.

arcsentry graph reload-layer --case <case> --layer <layer> --query <query> --evidence <evidence> --event-type <event-type> [options]
OptionDescription
-c, --case <case>required Case UUID.
-L, --layer <layer>required Layer UUID to rebuild, as printed by graph list-layers.
-q, --query <query>required Query returning records, one per row, whose fields become the layer's nodes and edges, in the language --query-language names.
-l, --query-language <query-language> Language of --query: aql or sql. Default: "aql".
-H, --evidence <evidence>required Evidence UUID the layer is built from.
-e, --event-type <event-type>required Event type the layer is built from, e.g. evtx_security.
-s, --time-start <time-start> Earliest event time to include, as an ISO 8601 timestamp with an offset or Z. Omitted means no window start.
-E, --time-end <time-end> Latest event time to include, as an ISO 8601 timestamp with an offset or Z. Omitted means no window end.
-f, --format <format> Output format: json, table, jsonl or csv. Default: "json".

Examples

Rebuild a layer from a changed query

arcsentry graph reload-layer --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 --layer 5d82a6f1-4c39-4e70-8a15-7b6d29c34e08 --evidence 8c3d1e77-9f42-4a6b-b810-2e5d47c9a013 --event-type evtx_security --query 'filter event_type == "evtx_security" | take 1000'

Rebuild a layer for a time window using the short forms of the flags

arcsentry graph reload-layer -c 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 -L 5d82a6f1-4c39-4e70-8a15-7b6d29c34e08 -H 8c3d1e77-9f42-4a6b-b810-2e5d47c9a013 -e evtx_security -q 'filter event_type == "evtx_security" | take 500' -s 2026-07-29T00:00:00Z -E 2026-07-29T06:00:00Z

Rebuild a layer from a SQL query and print the rebuilt layer as JSON

arcsentry graph reload-layer --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 --layer 7a3c05e9-8b61-4d24-9f07-3e5a1c8b60d4 --evidence 8c3d1e77-9f42-4a6b-b810-2e5d47c9a013 --event-type evtx_security --query-language sql --query "SELECT * FROM scope WHERE event_type = 'evtx_security' LIMIT 500" --format json

Read the layers' current definitions before restating one

arcsentry graph list-layers --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 --format json

arcsentry graph preview-layer

Show what a graph layer would hold without saving it.

Shows what a layer would hold without saving it: the records read, the entities and connections the definition yields, and how many of each type. Give the definition as for graph create-layer, without a name. Nothing is saved and no layer is left behind; to keep a definition, run graph create-layer with the same flags. Each stage of the build is written on stderr with its counts; Ctrl-C stops the preview and nothing is saved. Under --format json the counts by type are nested values; in the row formats each is a flattened type=count list.

arcsentry graph preview-layer --case <case> --query <query> --evidence <evidence> --event-type <event-type> [options]
OptionDescription
-c, --case <case>required Case UUID.
-q, --query <query>required Query returning records, one per row, whose fields would become the layer's nodes and edges, in the language --query-language names.
-l, --query-language <query-language> Language of --query: aql or sql. Default: "aql".
-H, --evidence <evidence>required Evidence UUID the layer would be built from.
-e, --event-type <event-type>required Event type the layer would be built from, e.g. evtx_security.
-s, --time-start <time-start> Earliest event time to include, as an ISO 8601 timestamp with an offset or Z. Omitted means no window start.
-E, --time-end <time-end> Latest event time to include, as an ISO 8601 timestamp with an offset or Z. Omitted means no window end.
-f, --format <format> Output format: json, table, jsonl or csv. Default: "json".

Examples

Preview what a query would put in a layer

arcsentry graph preview-layer --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 --evidence 8c3d1e77-9f42-4a6b-b810-2e5d47c9a013 --event-type evtx_security --query 'filter event_type == "evtx_security" | take 1000'

Preview a definition for a time window using the short forms of the flags

arcsentry graph preview-layer -c 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 -H 8c3d1e77-9f42-4a6b-b810-2e5d47c9a013 -e evtx_security -q 'filter event_type == "evtx_security" | take 500' -s 2026-07-29T00:00:00Z -E 2026-07-29T06:00:00Z

Preview a SQL definition and print the counts as JSON

arcsentry graph preview-layer --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 --evidence 8c3d1e77-9f42-4a6b-b810-2e5d47c9a013 --event-type evtx_security --query-language sql --query "SELECT * FROM scope WHERE event_type = 'evtx_security' LIMIT 500" --format json

Save a previewed definition as a layer

arcsentry graph create-layer --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 --name "Security logons" --evidence 8c3d1e77-9f42-4a6b-b810-2e5d47c9a013 --event-type evtx_security --query 'filter event_type == "evtx_security" | take 1000'

arcsentry graph layer-stats

Read what each graph layer holds: entity and connection counts, event types and verdicts.

One row per layer: how many entities and connections it holds, how many records stand behind them, the entity counts by type, the event types the layer was built from and how many entities carry each verdict. Under --format json the counts by type and by verdict are nested values; in the row formats each is a flattened type=count list. Omit --layer-ids to read every layer of the case. A layer's number of indicator matches is the total of graph indicator-matches --layer-ids for that layer.

arcsentry graph layer-stats --case <case> [options]
OptionDescription
-c, --case <case>required Case UUID.
-L, --layer-ids <layer-ids> Comma-separated layer ids to read. Every layer of the case when omitted.
-f, --format <format> Output format: json, table, jsonl or csv. Default: "json".

Examples

Read the statistics of every layer of a case

arcsentry graph layer-stats --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2

Read one layer's statistics using the short forms of the flags

arcsentry graph layer-stats -c 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 -L 5d82a6f1-4c39-4e70-8a15-7b6d29c34e08

Read two layers and print the nested counts as JSON

arcsentry graph layer-stats --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 --layer-ids 5d82a6f1-4c39-4e70-8a15-7b6d29c34e08,7a3c05e9-8b61-4d24-9f07-3e5a1c8b60d4 --format json

List the layers to find the ids to read

arcsentry graph list-layers --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2

arcsentry graph time-range

Read the span of time the records behind graph layers cover.

Prints the earliest and the latest time of the records behind the named layers, as ISO 8601 timestamps in UTC. Both are empty when no record of those layers carries a time. Omit --layer-ids to read every layer of the case. Use the span to choose --time-start and --time-end for graph nodes, graph node-timeline and graph histogram.

arcsentry graph time-range --case <case> [options]
OptionDescription
-c, --case <case>required Case UUID.
-L, --layer-ids <layer-ids> Comma-separated layer ids to read. Every layer of the case when omitted.
-f, --format <format> Output format: json, table, jsonl or csv. Default: "json".

Examples

Read the time span of every layer of a case

arcsentry graph time-range --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2

Read one layer's time span using the short forms of the flags

arcsentry graph time-range -c 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 -L 5d82a6f1-4c39-4e70-8a15-7b6d29c34e08

Read the combined span of two layers as JSON

arcsentry graph time-range --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 --layer-ids 5d82a6f1-4c39-4e70-8a15-7b6d29c34e08,7a3c05e9-8b61-4d24-9f07-3e5a1c8b60d4 --format json

Then read the activity inside that span, hour by hour

arcsentry graph histogram --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 --bin-seconds 3600

arcsentry graph histogram

Read how active graph layers are over time, bucket by bucket.

Each row is one bucket of the named layers' activity: the start of the bucket as an ISO 8601 timestamp and how many records fall in it, oldest bucket first. --bin-seconds sets the width of a bucket and must be longer than zero seconds. The focus flags are those of graph nodes and keep only the activity of the entities they select; the time window is not a flag here, because the histogram is how you choose one. A page says whether more buckets remain and how to continue; --format json prints the whole page with its continuation.

arcsentry graph histogram --case <case> --bin-seconds <bin-seconds> [options]
OptionDescription
-c, --case <case>required Case UUID.
-L, --layer-ids <layer-ids> Comma-separated layer ids to read. Every layer of the case when omitted.
-b, --bin-seconds <bin-seconds>required Width of one bucket in seconds. It must be longer than zero seconds.
-C, --cursor <cursor> Continue after the last bucket of a page: pass the next_cursor that page printed, with the same other flags.
-l, --limit <limit> Buckets per page. The page says whether more remain and how to continue.
-v, --focus-verdict <focus-verdict> Count only the activity of nodes ruled with one of these comma-separated verdicts: legitimate, suspicious, malicious.
-i, --focus-indicator-matches Count only the activity of nodes that match a flagged indicator.
-w, --with-neighbors With a verdict or indicator focus, also count the nodes joined to a focused node by an edge.
-x, --cross-layer-only Count only nodes held by two or more of the named layers, with their neighbours.
-n, --connectivity <connectivity> Count only the activity of connected nodes, joined by an edge to another node that --focus-verdict, --focus-indicator-matches and --cross-layer-only keep, or of orphan nodes, joined to none: connected or orphan. An edge of a type --hide-relation hides still joins, and --label-contains and --entity-type narrow after this one.
-r, --hide-relation <hide-relation> Comma-separated connection types; their edges still join nodes for --connectivity.
-t, --label-contains <label-contains> Count only nodes whose label contains this text, ignoring letter case.
-y, --entity-type <entity-type> Count only nodes of these comma-separated entity types.
-f, --format <format> Output format: json, table, jsonl or csv. Default: "json".

Examples

Read the activity of every layer of a case, hour by hour

arcsentry graph histogram --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 --bin-seconds 3600

Read one layer's daily activity of the entities ruled malicious, using the short forms

arcsentry graph histogram -c 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 -L 5d82a6f1-4c39-4e70-8a15-7b6d29c34e08 -b 86400 -v malicious

Read the ten-minute activity of the user entities of one layer as JSON

arcsentry graph histogram --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2 --layer-ids 5d82a6f1-4c39-4e70-8a15-7b6d29c34e08 --bin-seconds 600 --entity-type user --format json

Read the span first to choose a bucket width

arcsentry graph time-range --case 4f9a2c18-3b7e-4d51-9a20-6c1f8e35b7d2