IBM Cloud Docs
Managing usage quotas

Managing usage quotas

In IBM Cloud® Activity Tracker, you can use the Usage Quota settings to control how much data is stored so you can manage your data cost while still being able to view and retain the data you need.

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.

What are usage quotas?

You can use the Usage Quotas feature to set daily or monthly thresholds for the volume of log files that are to be stored. When the threshold is exceeded, IBM Cloud® Activity Tracker will take the actions you configure.

You can configure the system to:

  • Stop storing all logs when the threshold is exceeded.
  • Stop storing specific logs based on exclusion rules.
  • Create alerts when a usage quote threshold is met.

When you stop storing some or all logs, logs will still be available in the live tail but will be unavailable for historical or audit purposes. Logs that are not stored do not count towards your usage billing.

By setting Usage Quotas you can balance your organization's needs to view, alert, and maintain important logs while balacing the need to manage the cost of data storage.

Types of usage quotas

There are three types of usage quotas.

Hard quotas
A hard quota will stop saving or archiving all logs when the configured daily or monthly quota threshold is reached.
Soft quotas
A soft quota will stop saving or archiving logs based on the exclusion rules you define. These exclusion rules can be configured to specify which logs to store and which to discard. For example, you can specify exclusion rules to discard rules from a specific host, application, or other query.
Alert-only
An alert-only quota will send an alert allowing logs to continue to be saved, and your data usage to grow, even though the defined threshold has been exceeded.

Considerations when using usage quotas

When you exclude logs using the Usage Quotas function, the excluded logs will not be archived or streamed.

When deciding to use Usage Quotas, consider the following:

  • Usage Quotas configured actions are separate from any other defined exclusion rules. Usage Quotas rules are triggered dynamically based on your defined thresholds while other exclusion rules are always in effect.

  • If the quota is set to a value lower than what has been consumed and sent to storage, all incoming logs after the rule value has been set will be discarded.

  • If you change your daily or monthly usage quota, all exclusion rules will be automatically disabled. For example, if your set your monthly usage quota to 100 GB, and you have three daily exclusion rules configured to that quota, if you change your monthly usage quota to a different value the exclusion rules will be disabled. You can reenable them if desired. Exclusion rules are automatically disabled to help avoid having having logs being unintentionally discarded.

Configuring usage quotas

You can configure quotas and what is done when various thresholds are reached.

Accessing usage quotas

To configure Usage Quotas, access the Usage Quotas settings by doing the following:

The Usage Quotas option is in the left-pane of the LogDNA application, under Settings > Usage .

  1. Log in to your IBM Cloud account.

    After you log in with your user ID and password, the IBM Cloud dashboard opens.

  2. Click the Menu icon Menu icon > Observability.

  3. Select Activity Tracker.

    The list of IBM Cloud Activity Tracker instances is displayed.

    There is 1 instance per region.

  4. Select the instance in the region where you want to view events. Then, click Open Dashboard.

  5. In the web UI, click the Settings icon Settings icon > Usage > Usage Quotas.

Enabling and disabling Usage Quotas

To enable Usage Quotas make sure the selection at the top of the dialog is set to on. To disable the Usage Quota configuration, make sure the selection is set to off. Usage Quotes are disabled by default.

Setting up your usage quotas

When you first access the Usage Quotas dialog you will see the daily and monthly quotas set for your instance.

To change the daily and monthly quotas, do the following:

  1. Click Edit Usage Quotas

  2. Change the Daily Usage Quota and Monthly Usage Quota to your desired values. The quotas can be specified in MB, GB, or TB. These are hard quotas.

  3. Select what you would like to occur when the quotas are reached.

    Discard logs when the Daily Usage Quota is reached until midnight UTC
    If selected, when the daily quota is reached within a 24-hour period at UTC, logs will no longer be saved.
    Discard logs when the Monthly Usage Quota is reached until the next billing cycle
    If selected, when the monthly quota is reached before the end of the billing cycle, logs will no longer be saved.

    If logs are not being saved they will still be available for live tail and alerting.

    Verify all conditions and exclusion rules when selecting these options. Selecting these options will result in logs being discarded and not saved for searching, archiving, or streaming.

  4. Click Apply to save your changes.

Configuring usage quota exclusion rules

If you want to take action prior to daily or monthly quota being reached, you can set up exclusion rules that operate as soft quotas.

These exclusion rules will allow you to discard specific non-critial logs before reaching the hard quota threshold.

For example, if the daily usage quote is 2 GB and your set an exclusion rule for 50%, IBM Cloud Activity Tracker will apply the configured exclusion rule and no longer retain logs from the sources, apps, hosts, or queries specified in the rule.

You can specify up to 5 daily exclusion rules and 5 monthly exclusion rules.

Daily exclusion rules

To specify a daily exclusion rule, do the following from the Usage Quotas dialog:

Verify that each exclusion rule that you add behaves as expected. Improper configured exclusion rules can result in storing data not intended for storage.

  1. In the Triggered Exclusion Rules section click Add daily rule.

  2. Drag the slider to the percentage of the daily usage quota when you want the rule triggered. For example, 50%. If you try to set a percentage where an exclusion rule exists, you will be warned that the existing rule will be replaced.

  3. Select the source of the logs you want to exclude.

  4. Select the apps you want to exclude.

  5. Specify a query to select the log lines you want to exclude.

  6. Select if your want to discard all matching log lines until midnight UTC and if you want those log lines preserved for live tail and alerting.

    All configured alert recipients will be alerted when the percentage threshold of the daily quota is reached. This behavior cannot be changed.

  7. Click Apply to save the exclusion rule.

  8. After you configure an exclusion rule, verify that the exclusion rule behaves as you expect.

    Check the query in a custom view by entering the search criteria in the search bar of the Everything view, and validating that the data that is displayed is the data that you want excluded.

Monthly exclusion rules

To specify a monthly exclusion rule, do the following from the Usage Quotas dialog:

Verify that each exclusion rule that you add behaves as expected. Improper configured exclusion rules can result in storing data not intended for storage.

  1. In the Triggered Exclusion Rules section click Add monthly rule.

  2. Drag the slider to the percentage of the monthly usage quota when you want the rule triggered. For example, 50%. If you try to set a percentage where an exclusion rule exists, you will be warned that the existing rule will be replaced.

  3. Select the source of the logs you want to exclude.

  4. Select the apps you want to exclude.

  5. Specify a query to select the log lines you want to exclude.

  6. Select if your want to discard all matching log lines until the next billing cycle and if you want those log lines preserved for live tail and alerting.

    All configured alert recipients will be alerted when the percentage threshold of the monthly quota is reached. This behavior cannot be changed.

  7. Click Apply to save the exclusion rule.

  8. After you configure an exclusion rule, verify that the exclusion rule behaves as you expect.

    Check the query in a custom view by entering the search criteria in the search bar of the Everything view, and validating that the data that is displayed is the data that you want excluded.

Enable and disabling exclusion rules

Toggle the selection next to the exclusion rules to enable or disable the rule.

Example switch to enable or disable exclusion rule
Figure 1. Example switch showing exclusion rule is enabled

Editing exclusion rules

To edit an exclusion rule click Edit next to the exclusion rule that you want to change.

Configuring usage quota alerts

By default the account owner is configured to receive alert emails. You can configure your systems to send email alerts, Slack notifications, or both.

To configure notifications when a quota threshold is exceeded, do the following:

  1. Under Alert recipients select the desired recipient email addresses. There must be at least one email address configured if Slack notifcations are not configured.

  2. If desired, select one or more Slack recipients to receive notifications. If you configure a Slack recipient, you can delete all email recipients if desired.