IBM Cloud Docs
Managing events in your account

Managing events in your account

IBM Cloud Activity Tracker is used to collect, archive, view and analyze events.

As of 28 March 2024 the IBM Log Analysis and IBM Cloud Activity Tracker services are deprecated and will no longer be supported as of 30 March 2025. Customers will need to migrate to IBM Cloud Logs, which replaces these two services, prior to 30 March 2025. For information about IBM Cloud Logs, see the IBM Cloud Logs documentation.

Collecting events to monitor activity in the account

In IBM Cloud Activity Tracker, events are collected automatically for most enabled-AT services. However, some services might require an upgrade of the service plan, a configuration setting, or both, for you to be able to collect and analyze them. Learn more.

Defining views, dashboards, and screens to analyze events

You can define views, dashboards, and screens to analyze events and monitor activity in your account.

Categories are used to group resources of the same type so that users can easily find them. You can use categories to group views, dashboards, and screens.

Categories are defined in the Categories section in the web UI.

The service plan determines the number of days that you have data available for search through the UI.

Archiving events for long-term storage

You can archive events from an IBM Cloud Activity Tracker instance into a bucket in an IBM Cloud Object Storage (COS) instance. Learn more.

  • Events are automatically archived in a compressed format (.json.gz). Each event preserves its metadata.

  • Events are archived within 24-48 hours after you save the configuration.

  • Logs are archived hourly.

  • The archive directory format looks like this:

    year=<YYYY>/month=<MM>/day=<DD>/<accountID>.<YYYY>-<MM>-<DD>.<HHHH>.json.gz
    

    Where

    YYYY represents the year; MM represents the month; and DD represents the day.

    <accountID> represents the auditing account ID, that is, the ID that showd in the web UI URL.

    HHHH represents hours in 24 format.

  • The timestamp that is used to determine whether the event is included in an archive is the UTC timestamp.

    Depending on your location, there might be events that you see in local time in your views on a specific day. However, you cannot find them in the archive file. You are most likely viewing events in local time and the archive process uses the UTC timestamp.

  • After you configure archiving, the first archive file is created when the archiving process runs and there is data.

  • The first time the archive process runs the number of days archived is dependent on the plan:

    • The maximum number of days that data is archived includes events for the past 30 days when the instance has a 30 day search plan.

    • The maximum number of days that data is archived includes events for the past 14 days when the instance has a 14 day search plan.

    • The maximum number of days that data is archived includes events for the past 7 days when the instance has a 7 day search plan.

For example, you have a service plan of 30 days. You configured the instance 10 days ago. You enable archiving on the 10th day. The archiving process generates multiple files. Each file includes events for the period of time indicated as part of its name. If there is no data, the archive file for that period is empty.

Each IBM Cloud Activity Tracker instance has its own archiving configuration.

The following figure shows a high-level view of the different components that are integrated when archiving events:

High-level view archiving events

The IBM Cloud Object Storage instance is provisioned within the context of a resource group. The IBM Cloud Activity Tracker instance is also provisioned within the context of a resource group. Both instances can be grouped under the same resource group or in different ones.

IBM Cloud Activity Tracker uses a service ID to communicate with the IBM Cloud Object Storage service.

  • The service ID that you create for an IBM Cloud Object Storage instance is used by IBM Cloud Activity Tracker to authenticate and access the IBM Cloud Object Storage instance.
  • You can assign specific access policies to the service ID that restrict permissions on the IBM Cloud Object Storage instance. Restrict the service ID to only have writing permissions on the bucket where you plan to archive the events.
  • You can also restrict the IP addresses that are allowed to manage the bucket.

Archiving in an EU-managed location: You must configure a bucket that complies with the EU-managed and GDPR regulations.

Viewing archived events by using the SQL Query service

Data Engine provides a serverless, no-ETL solution to easily query data stored in COS. Learn more.

You can use this service to analyze data from archived files in COS.

Once you have SQL Query running on IBM Cloud, you can immediately start querying your data using the SQL Query user interface, programmatically by using either the REST API or the Python ibmcloudsql library, or write a serverless function by using Cloud Functions.

When you query events:

  • You must provision an instance of the Data Engine service.
  • You must restrict user access to work with that instance. Users need the platform viewer role to launch the UI, and the service writer role to run queries.
  • When you open the UI, the Data Engine service automatically generates a unique COS bucket that will store all of the results as CSV files from your SQL queries. To make sure that you are using a custom bucket, create one. You can specify your custom bucket as the place to to store results.