-
Notifications
You must be signed in to change notification settings - Fork 73
Final Cedarling Log Design
Michael Schwartz edited this page Sep 18, 2024
·
8 revisions
Name | Description | Type |
---|---|---|
id | unique identifier for this event | string |
time | Time of decision | integer |
logkind |
decision , system , metric
|
string |
pdp_id | unique id of cedarling | string |
application_id | name of application from bootstrap properties | string |
decision |
ALLOW or DENY
|
string |
Principal | Cedar principal | string |
Action | Cedar Action | string |
Resource | Cedar Resource | string |
Context | Cedar Context | string |
diagnostics | Any resulting diagnostics | string |
msg | Any other message | string |
- subscribeToLogStream() - Enables real-time log streaming, where developers can subscribe to a stream of logs as they are generated.
- getLogById(id: String) - get specific log
- getLogIds() - returns a list of all log ids.
- filterLogs(field, value) - for example, decision = DENY, or action = view ...