copyright | lastupdated | keywords | subcollection | ||
---|---|---|---|---|---|
|
2024-10-09 |
events, serverless, code engine, activity tracker, analyzing events |
codeengine |
{{site.data.keyword.attribute-definition-list}}
{: #at_events}
You can view, manage, and audit user-initiated activities made in your {{site.data.keyword.codeenginefull}} service instance by using the {{site.data.keyword.at_full_notm}} service. {: shortdesc}
As of 28 March 2024, the {{site.data.keyword.at_full_notm}} service is deprecated and will no longer be supported as of 30 March 2025. Customers will need to migrate to {{site.data.keyword.logs_full_notm}} before 30 March 2025. During the migration period, customers can use {{site.data.keyword.at_full_notm}} along with {{site.data.keyword.logs_full_notm}}. Activity tracking events are the same for both services. For information about migrating from {{site.data.keyword.at_full_notm}} to {{site.data.keyword.logs_full_notm}} and running the services in parallel, see migration planning. {: important}
{{site.data.keyword.at_full_notm}} records user-initiated activities that change the state of a service in {{site.data.keyword.cloud_notm}}. You can use this service to investigate abnormal activity and critical actions and to follow regulatory audit requirements. You can also be alerted about actions as they happen. The events that are collected follow the Cloud Auditing Data Federation (CADF) standard. For more information, see the Getting Started tutorial for {{site.data.keyword.at_full_notm}}.
You can also start auditing from your {{site.data.keyword.codeengineshort}} dashboard by selecting Add auditing. {: tip}
{: #list-events-cli-console}
The following events are generated when an initiator interacts with the {{site.data.keyword.codeenginefull_notm}} console and CLI or with the kubectl
and kn
commands. These events are sent to {{site.data.keyword.at_full_notm}}.
{: shortdesc}
{: #project-events}
These actions generate project events.
Action | Description |
---|---|
codeengine.project.create |
Create a project. |
codeengine.project.read |
Get information about or list projects. |
codeengine.project.update |
Update a project. |
codeengine.project.delete |
Delete a project. |
codeengine.projectconfig.read |
Get a project kubeconfig file. |
{: caption="Actions that generate project events" caption-side="bottom"} |
{: #app-events}
These actions generate application events.
Action | Description |
---|---|
codeengine.application.create |
Create an application in a project. |
codeengine.application.read |
Get information about an application. |
codeengine.application.list |
List applications. |
codeengine.application.update |
Update an application. |
codeengine.application.delete |
Delete one or more applications. |
{: caption="Actions that generate application events" caption-side="bottom"} |
{: #configmap-events}
These actions generate configmap events.
Action | Description |
---|---|
codeengine.configmap.create |
Create a configmap in a project. |
codeengine.configmap.read |
Get information about a configmap. |
codeengine.configmap.list |
List configmaps. |
codeengine.configmap.update |
Update a configmap. |
codeengine.configmap.delete |
Delete one or more configmaps. |
{: caption="Actions that generate configmap events" caption-side="bottom"} |
{: #secret-events}
These actions generate secret events.
Action | Description |
---|---|
codeengine.secret.create |
Create a secret in a project. |
codeengine.secret.read |
Get information about a secret. |
codeengine.secret.list |
List secrets. |
codeengine.secret.update |
Update a secret. |
codeengine.secret.delete |
Delete one or more secrets. |
{: caption="Actions that generate secret events" caption-side="bottom"} |
{: #build-events}
These actions generate build and build run events.
Action | Description |
---|---|
codeengine.build.create |
Create a build in a project. |
codeengine.build.read |
Get information about a build. |
codeengine.build.list |
List builds. |
codeengine.build.update |
Update a build. |
codeengine.build.delete |
Delete one or more builds. |
codeengine.buildrun.create |
Submit a build run in a project. |
codeengine.buildrun.read |
Get information about a build run. |
codeengine.buildrun.list |
List build runs. |
codeengine.buildrun.delete |
Delete one or more build runs. |
{: caption="Actions that generate build and build run events" caption-side="bottom"} |
{: #job-events}
These actions generate job and job run events.
Action | Description |
---|---|
codeengine.job.create |
Create a job in a project. |
codeengine.job.read |
Get information about a job. |
codeengine.job.list |
List jobs. |
codeengine.job.update |
Update a job. |
codeengine.job.delete |
Delete one or more jobs. |
codeengine.jobrun.create |
Submit a job run. |
codeengine.jobrun.read |
Get information about a job run. |
codeengine.jobrun.list |
List job runs. |
codeengine.jobrun.delete |
Delete one or more job runs. |
{: caption="Actions that generate job and job run events" caption-side="bottom"} |
{: #subscription-events}
These actions generate subscription events.
Action | Description |
---|---|
codeengine.subscription.create |
Create subscription in a project. |
codeengine.subscription.read |
Get information about a subscription. |
codeengine.subscription.list |
List subscriptions. |
codeengine.subscription.update |
Update a subscription. |
codeengine.subscription.delete |
Delete one or more subscriptions. |
{: caption="Actions that generate subscription events" caption-side="bottom"} |
{: #kubect1-events}
The following events are generated when an initiator interacts with the kubectl
and kn
commands. These events are sent to {{site.data.keyword.at_full_notm}}.
{: #kubect1-pod-events}
These actions generate pod events.
Action | Description |
---|---|
codeengine.pods.create |
Create a pod in a project. |
codeengine.pods.read |
Get information about a pod. |
codeengine.pods.list |
List pods. |
codeengine.pods.update |
Update a pod. |
codeengine.pods.delete |
Delete a pod. |
{: caption="Actions that generate pod events" caption-side="bottom"} |
{: #kubect1-serviceaccount-events}
These actions generate service account events.
Action | Description |
---|---|
codeengine.serviceaccounts.read |
Get information about a service account. |
codeengine.serviceaccounts.list |
List service accounts. |
{: caption="Actions that generate service account events" caption-side="bottom"} |
{: #kubect1-event-events}
These actions generate event-type events.
Action | Description |
---|---|
codeengine.events.read |
Get information about an event. |
codeengine.events.list |
List events. |
{: caption="Actions that generate event-type events" caption-side="bottom"} |
{: #kubect1-resourcequote-events}
These actions generate resource quota events.
Action | Description |
---|---|
codeengine.resourcequotas.read |
Get information about a resource quota. |
codeengine.resourcequotas.list |
List resource quotas. |
{: caption="Actions that generate resource quota events" caption-side="bottom"} |
{: #kubect1-limitrange-events}
These actions generate limit range events.
Action | Description |
---|---|
codeengine.limitranges.read |
Get information about a limit range. |
codeengine.limitranges.list |
List limit ranges. |
{: caption="Actions that generate limit range events" caption-side="bottom"} |
{: #kubect1-deployment-events}
These actions generate deployment events.
Action | Description |
---|---|
codeengine.deployments.read |
Get information about a deployment. |
codeengine.deployments.list |
List deployments. |
{: caption="Actions that generate deployment events" caption-side="bottom"} |
{: #kubect1-servicebinding-events}
These actions generate service bind events.
Action | Description |
---|---|
codeengine.servicebindings.create |
Create a service binding in a project. |
codeengine.servicebindings.read |
Get information about a service binding. |
codeengine.servicebindings.list |
List service bindings. |
codeengine.servicebindings.update |
Update a service binding. |
codeengine.servicebindings.delete |
Delete a service binding. |
{: caption="Actions that generate service bind events" caption-side="bottom"} |
Note:
- The update event does not include the original value; it includes only the new value that is provided in request body. To find the original value, you can run read action before you run the update action.
- The
requestData
field includes request body and verb of action. - The
responseData
field includes response body of action. - For some actions, for example
codeengine.pods.list
orcodeengine.pods.get
actions, the event length might exceed 16 K. If this event length occurs, theresponseData
field is set toInformation about the action is not included for performance and size reasons.
{: #view}
{{site.data.keyword.codeenginefull_notm}} sends audit logs to the {{site.data.keyword.at_full_notm}} service in the same region as the {{site.data.keyword.codeenginefull_notm}} project. For example, audit logs in an {{site.data.keyword.codeenginefull_notm}} project in us-south
are sent to a logging instance in us-south
. For more information about setting up {{site.data.keyword.at_full_notm}}, see Provisioning an instance.
{: #at_events_analyze}
After you view events that are captured by {{site.data.keyword.at_full_notm}}, you can then analyze the events. {: shortdesc}
Identifying the {{site.data.keyword.codeengineshort}} project that generates the event
: To identify the project for which the event was generated, look at the target.id
field. You can use this field to filter events in {{site.data.keyword.loganalysisshort_notm}}, for example, showing events for only a specific project.
: You can use the CLI to find details about your project.
Getting the unique ID of a request
: Each action that you perform on a {{site.data.keyword.codeengineshort}} project resource has a unique ID.
: To find the unique ID of a request, look at the correlationId
value that is set in the correlationId
field.
Getting information for failures
: All events that are issued for failed actions display failure
in the outcome
field, and in addition provide more details as part of the reason
field. Note that the reason.reasonForFailure
field might be especially helpful, as it contains details of the failure.
Custom views : For more information about generating custom views by using event fields, see Creating custom views in {{site.data.keyword.loganalysislong_notm}}.