Export Sessions PCAP
export-sessions-pcapExport a PCAP file of network sessions from GreyNoise sensors. Filter by Lucene queries (e.g., 'destination.port:443') to capture specific traffic for analysis in Wireshark or tcpdump.
Instructions
Export a PCAP file containing packets from multiple GreyNoise sensor sessions matching query criteria. Saves the binary PCAP to a temporary directory and returns the file path. The file can be opened with Wireshark, tshark, or tcpdump.
Use Lucene query syntax to filter sessions (e.g., "destination.port:443", "source.ip:1.2.3.4").
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | No | Maximum number of sessions to include (default: 100) | |
| query | No | Lucene query string to filter sessions | |
| scope | No | Data scope for the query (default: workspace) | |
| sort_by | No | Field to sort results by (default: lastPacket) | lastPacket |
| end_time | Yes | End time for the query range (ISO 8601 format, e.g. 2026-01-07T23:59:59Z) | |
| sort_desc | No | Sort in descending order (default: true) | |
| start_time | Yes | Start time for the query range (ISO 8601 format, e.g. 2026-01-01T00:00:00Z) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | No | ||
| fileSize | No | ||
| available | Yes |