> For the complete documentation index, see [llms.txt](https://docs.cennso.com/cennso/netcap/latest/llms.txt) (all documentation: [llms.txt](https://docs.cennso.com/llms.txt)). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cennso.com/cennso/netcap/latest/concepts/pcap-capturing.md).

# About PCAP capturing

To configure PCAP collection with NetCap, you must define two Kubernetes Custom Resources (CRs):

- [`NetCaptureStorage`](https://docs.cennso.com/cennso/netcap/latest/concepts/netcapturestorage.md) - specifies the storage location for collected PCAP files
- [`NetCaptureJob`](https://docs.cennso.com/cennso/netcap/latest/concepts/netcapturejob.md) - defines the traffic capture configuration, including source interface(s), start time and duration, destination(s) for storing captured traffic, optional filtering or tagging parameters

Both CRs are then processed by NetCap Provider, which translates the configuration from CRs into a NATS Key-Value (KV) entry that configures all NetCap components accordingly. This approach allows for:

- Centralized configuration using Kubernetes CRs (`NetCaptureJob` and `NetCaptureStorage`)
- Automatic distribution of capture configuration to all NetCap components
- Fine-grained control over where (on which nodes and VPP instances) and when traffic is captured
- Flexible PCAP storage options (local disk, remote S3 storage, or SFTP server)
- CRs are Crossplane-managed resources, which enables integration with Crossplane composition
