ReferenceCLISystem
System Retrieve Log Policy Create
System Retrieve Log Policy Create CLI command reference
goodmem system retrieve-log-policy create
Create a RetrieveMemory auto-logging policy
goodmem system retrieve-log-policy create [flags]Examples
# Log all RetrieveMemory calls while this policy is active
goodmem system retrieve-log-policy create --display-name "Log all retrievals" --match-all
# Log calls authenticated by a specific API key
goodmem system retrieve-log-policy create --display-name "Audit key" --api-key-id 550e8400-e29b-41d4-a716-446655440000Options
--active-from string Inclusive RFC3339 activation time
--active-until string Exclusive RFC3339 deactivation time
--api-key-id strings API key UUID to match (repeatable)
--api-key-label strings API-key label selector key=value (repeatable)
--description string Optional policy description
--display-name string Human-readable policy name
-h, --help help for create
--label strings Policy label key=value (repeatable)
--match-all Match every authenticated RetrieveMemory call
-o, --output string Output format: text, json, compact, quiet (default "text")
--policy-id string Optional policy UUID
--requestor-user-id strings Requestor user UUID to match (repeatable)
--space-id strings Accessible space UUID to match (repeatable)
--space-label strings Space label selector key=value (repeatable)Options inherited from parent commands
--api-key string API key for authentication (can also be set via GOODMEM_API_KEY environment variable)
--server string GoodMem server address (gRPC API)SEE ALSO
- goodmem system retrieve-log-policy - Manage RetrieveMemory auto-logging policies