On This Page

Home / Search/ Manage/ Usage Settings/Usage Groups

Usage Groups ​

Limit searches run by specific users and API Credentials.


When a search exceeds its Usage Group limit, Cribl Search rejects the search or stops it during the run.

To set limits that apply to every search in your Workspace, see Limits.

Cribl Search includes three Usage Groups:

  • system sets limits for every search in the Workspace.
  • default sets limits for every user with no other Usage Group.
  • default_api_credentials sets limits for every API Credential with no other Usage Group.

You can change the limits Cribl Search sets on default_api_credentials:

  • Running time limit is 28800 seconds (eight hours).
  • Results limit is 50000.
  • Overall concurrent search limit is 25%.

You can’t delete system, default, or default_api_credentials.

Enabled is always on for system and default, and you can turn it off for default_api_credentials.

While a Usage Group is off, only the system limits apply to its Members.

You can’t use default_api_credentials as the ID when you create a Usage Group.

A Member is a user or an API Credential assigned to a Usage Group. Each Member belongs to one Usage Group.

When you add a Member to a Usage Group, Cribl Search removes that Member from the previous Usage Group.

Cribl Search adds each new API Credential to default_api_credentials.

An API Credential that you assign to another Usage Group stays in that Usage Group.

When you delete an API Credential, Cribl Search removes that API Credential from its Usage Group.

Searches started after you move an API Credential follow that API Credential’s Usage Group. A search that is already running keeps the limits from the Usage Group the search started in.

Create a Usage Group ​

Select Add Usage Group at Settings > Search > Usage Groups. Cribl Search opens the New Usage Group modal.

Enter a name and set the Usage Limits on the Configuration tab. Leave Enabled on, and then save.

Add Members ​

Select Add Members on the Members tab of a new or existing Usage Group.

You see users by email and API Credentials by name, with an API tag on each API Credential.

Type a name or an email to narrow the list.

You see API Credentials in Add Members only when you have permission to view API Credentials.

If Cribl Search can’t load API Credentials, you see API credentials are unavailable. You can add users.

Select All, Users, or API credentials on the Members tab to filter the list.

An API Credential’s Name includes an API tag. You also see the creator’s email and the roles assigned to that API Credential.

Select the Members to remove, and then select Remove Selected Members.

Cribl Search places a removed Member as follows:

  • A user removed from a Usage Group other than default goes to default.
  • A user removed from default goes back to default.
  • An API Credential removed from a Usage Group other than default_api_credentials goes to default_api_credentials.
  • An API Credential removed from default_api_credentials goes back to default_api_credentials.

To move a user out of default, or an API Credential out of default_api_credentials, assign that Member to another Usage Group.

When you delete a Usage Group, Cribl Search places that group’s users in default and that group’s API Credentials in default_api_credentials.

Usage Limits ​

You can configure the following usage limits for each group:

  • Earliest relative time range - How far back in time the search can go. For example: 60m, 30d, 6mon, 1y. To specify time in seconds, enter a number with no time unit. This limit can be overridden by max_earliest_relative.

  • Time range limit - Maximum time range for one search query, for example 3 days (3d). This limit can be overridden by max_timerange_width.

    Enter a whole number or a percentage for each of the following three concurrent limits.

    When dynamic search concurrency is on, ad hoc and scheduled percentages use this Group’s Overall concurrent search limit. If this Group doesn’t set that limit, percentages use the system Usage Group’s automatically adjusted limit. For example, an overall limit of 10 and an ad hoc limit of 50% allows five concurrent ad hoc searches. Cribl Search rounds fractional results up.

    When dynamic search concurrency is off, a percentage is still a share of CPU capacity on the Leader. Cribl Search calculates it as Math.min(1, numCPU x maxConcurrentSearches/100). A Leader with only 1 CPU treats every percentage as 100%. Omit % to allocate an absolute number of CPUs on the Leader.

    Lower the default 100% if you notice an impact on UI responsiveness, or on workloads like Stream Collector jobs.

  • Concurrent ad hoc search limit - Maximum volume of ad hoc searches that all Members of this Group can run simultaneously. Queries exceeding this limit will get queued. This limit can be overridden by max_searches_per_user, and by the Overall concurrent search limit value in this modal.

  • Concurrent scheduled search limit - Maximum volume of scheduled searches that all Members of this Group can run simultaneously. Queries exceeding this limit will get queued. This limit can be overridden by max_scheduled_searches_per_user, and by the Overall concurrent search limit value in this modal.

  • Overall concurrent search limit - Maximum number of searches that Members of this Group can run at the same time. On the system Usage Group, this limit applies to every search in the Workspace.

    • Cribl Search will be entirely disabled if you set this limit to 0.
    • When dynamic search concurrency is on for the system Usage Group, this field is read-only and Cribl Search adjusts the cap automatically based on its current load.
  • Results limit - Maximum number of events that can be returned per search.

    • Default is 50000.
    • Minimum of 1.
    • Maximum of 10000000. When a search exceeds this limit, Cribl Search displays a warning in the results toolbar indicating that results may be incomplete. To reduce the number of results returned, see Optimize Searches. To raise the limit, override it with max_results_per_search or see Overriding Limits.
    • If set for the system Usage Group, the limit will apply to all searches in the Workspace, including Packs and Dashboard parent searches.
  • Executors limit - Maximum number of executors dispatched per search.

    • Default is 50.
    • Minimum of 1.
    • This limit can be overridden by max_executors.
  • Byte limit - Maximum number of bytes that can be read per search. When the limit is exceeded, the search gets canceled. This limit can be overridden by max_bytes_read_per_search.

  • Running time limit - Maximum time, in seconds, that a single search is allowed to run.

    • Cribl Search sets Running time limit on the system Usage Group to 86400 seconds (24 hours).
    • When you set this limit on another Usage Group, the recommended value is 28800 seconds (eight hours).
    • This limit can be overridden by max_running_time_per_search.

Overriding Limits ​

Certain usage limits can be overridden by set-statement options, for example: set max_searches_per_user=100000.

Search Members and API Credentials with the Admin Permission can override a Usage Group limit with a set-statement option.

Use usage_group to run a query with another Usage Group’s limits. For example, enter set usage_group="secops" to use the Usage Group named secops.

The following set options correspond to the limits in Usage Limits:

LimitSetting
Earliest relative time rangemax_earliest_relative
Time range limitmax_timerange_width
User concurrent ad hoc search limitmax_searches_per_user
User concurrent scheduled search limitmax_scheduled_searches_per_user
Results limitmax_results_per_search
Executors limitmax_executors
Byte limitmax_bytes_read_per_search
Running time limitmax_running_time_per_search