stratumctl flow-logs
Manage flow logs
stratumctl flow-logs [flags]Aliases: flow-log, fl
Subcommands
Section titled “Subcommands”stratumctl flow-logs create: Create a flow log (captures traffic verdicts into a log group)stratumctl flow-logs delete: Delete a flow log (reaps the capture ACLs)stratumctl flow-logs get: Describe a flow logstratumctl flow-logs list: List flow logs in a project
stratumctl flow-logs create
Section titled “stratumctl flow-logs create”Create a flow log (captures traffic verdicts into a log group)
stratumctl flow-logs create [flags]Examples
Section titled “Examples”stratumctl flow-logs create --project p-team-a --resource vpc-9k2m4x7q --log-group lg-2k8m4x7q9astratumctl flow-logs create --project p-team-a --resource-type subnet --resource subnet-3k8m2x7q --log-group lg-2k8m4x7q9a --traffic-type all| Flag | Type | Default | Description |
|---|---|---|---|
--log-group |
string | Destination log group ID (required) | |
--project |
string | Project ID (defaults to STRATUM_PROJECT or profile project_id) | |
--resource |
string | The VPC / subnet / NIC to capture (required) | |
--resource-type |
string | vpc |
Captured scope: vpc | subnet | networkInterface |
--traffic-type |
string | Captured verdicts: reject (default) | accept | all |
stratumctl flow-logs delete
Section titled “stratumctl flow-logs delete”Delete a flow log (reaps the capture ACLs)
stratumctl flow-logs delete <fl-id> [flags]Examples
Section titled “Examples”stratumctl flow-logs delete fl-6k2m8x4q7a| Flag | Type | Default | Description |
|---|---|---|---|
--project |
string | Project ID (defaults to STRATUM_PROJECT or profile project_id) |
stratumctl flow-logs get
Section titled “stratumctl flow-logs get”Describe a flow log
stratumctl flow-logs get <fl-id> [flags]Examples
Section titled “Examples”stratumctl flow-logs get fl-6k2m8x4q7astratumctl flow-logs get fl-6k2m8x4q7a --output json| Flag | Type | Default | Description |
|---|---|---|---|
--project |
string | Project ID (defaults to STRATUM_PROJECT or profile project_id) |
stratumctl flow-logs list
Section titled “stratumctl flow-logs list”List flow logs in a project
stratumctl flow-logs list [flags]Examples
Section titled “Examples”stratumctl flow-logs liststratumctl flow-logs list --vpc vpc-9k2m4x7q --output json| Flag | Type | Default | Description |
|---|---|---|---|
--project |
string | Project ID (defaults to STRATUM_PROJECT or profile project_id) | |
--vpc |
string | Filter by VPC ID |
