List supported event fields
Discover filter fields for writing custom rule conditions and outputs
falco --list | grep -E 'k8s\.|container\.|proc\.' | sort
- tool
- falco6 commands
More falco commands
-
cat > /etc/falco/rules.d/shell.yaml <<'EOF' - rule: Shell in container desc: A shell was spawned in a container condition: container and proc.name in (bash, sh, zsh) output: "Shell spawned (pod=%k8s.pod.name cmd=%proc.cmdline)" priority: WARNING EOFMinimal custom rule with condition/output/priority; loaded from rules.d drop-in dir
-
falco -r /etc/falco/falco_rules.yaml --validateLint rule syntax offline before applying; note: nonzero exit on error, use in CI gate
-
kubectl logs -l app.kubernetes.io/name=falco -n falco | jq 'select(.priority=="Critical")'Pull only Critical Falco events from JSON output; requires json_output: true in falco.yaml
-
falcoctl artifact install falco-rules:latest && falcoctl artifact listPull and manage versioned rules/plugins via OCI; modern: replaces manual rule file copying
-
falco -M 60 -o json_output=true 2>/dev/null | jq -c '{rule,output_fields}'Run Falco for 60s then exit; great for ad-hoc triage on a suspect node