Reserved fields
Overview
Coralogix ingests data documents containing multiple fields with specific data types. Fields are dynamically stored and indexed in the order they are ingested. Once the maximum number of stored fields is reached, additional fields may not be available for querying.
Use reserved fields to avoid dependency on ingestion order and gain more control over field creation and storage. This feature allows you to explicitly define fields of importance for querying and monitoring purposes, while still enabling Coralogix to dynamically add other fields as needed.
Reserved fields apply to logs and spans datasets. You configure them per dataset: select a dataspace and dataset, then define the fields to reserve for that dataset.
With reserved fields, you can:
-
Ensure important fields are always available for queries across the Coralogix platform.
-
Specify the data type for each field to make storage and querying more efficient.
-
Prevent indexed field limitations that could impact query performance.
If a field is queried but not reserved, Coralogix must parse raw log data to retrieve it, which can slow query performance. When this happens, a performance warning appears in Explore and Custom Dashboards identifying the affected fields.
For how the limit works and why an unreserved field can lose its slot even when you query it often, see Why a field isn't indexed.
How it works
How Coralogix applies a reserved field depends on where the dataset is stored:
-
Frequent Search logs (
frequentsearch/logs) are indexed in OpenSearch. Coralogix maps fields to the index automatically as data arrives. This automatic mapping enables dynamic field additions but may result in missing or misclassified fields due to ingestion order. Reserved fields predefine specific fields and their data types in the index mapping. See Index mapping. -
Archive datasets, such as
default/logsanddefault/spans, are stored in your S3 archive. When a reserved field appears in newly written data, it gets its own column. The reserved type is applied when the data is queried, including data written before you reserved the field. See Archive datasets.
Index mapping
Index mapping applies to frequentsearch/logs, which Coralogix stores and queries through OpenSearch. For this dataset, reserved fields are applied automatically at 00:00 UTC each day when a new daily index is created. During this process:
-
Fields explicitly defined as reserved are pre-mapped in the index.
-
Any additional fields are mapped dynamically as data is ingested.
If needed, users can perform a manual index reset once per day. This allows newly added reserved fields to be mapped immediately, without waiting for the midnight split.
-
A manual reset can only occur after reserved fields have been configured.
-
Any fields reserved after the reset will not be mapped until the next automatic split.
-
Only one manual reset is permitted per day.
-
The Reset index action, and the ingested-fields and mapping-exceptions counters, appear when
frequentsearch/logsis selected.
Archive datasets
Archive datasets, which are stored in and queried from your S3 bucket (for example, default/logs and default/spans), do not use daily index mapping. For these datasets:
-
Coralogix creates a dedicated column for a reserved field in newly ingested data, as long as the field is present in that data. Data that is already stored is not rewritten, so it doesn't get the dedicated column. You can still query older data, but queries on it can be slower.
-
When you query the dataset, Coralogix reads the field as its reserved type. This applies to all data, including data stored before you reserved the field. Values that cannot be read as the reserved type are returned as
null.
Reserved fields do not convert your data, so don't use them to change a field's type. To convert values, use parsing rules.
Use reserved fields on archive datasets to:
-
Make sure a field is always available for efficient querying.
-
Restore query performance when a field that used to hold a single scalar type, such as a string, number, or boolean, starts to also arrive as an object or an array.
Array keypaths, such as foo.bar[].baz, are not yet supported for archive datasets.
Reserved type mismatch
If the type observed in your data differs from the reserved type, queries that use the field read it as the reserved type. In Custom Dashboards, the widget shows a warning: "Query field(s) … have been converted to their reserved type, which may affect results." Check the field's observed types in Schema Explorer, then either fix the services that send the field with a different type or change the field's reserved type.
Data types
Each field has an associated data type, determining the kind of data it holds. The same data types are supported for logs and spans datasets. The following types are supported:
| Data type | Description | Example JSON usage |
|---|---|---|
| boolean | Represents a true or false value, commonly used for logical checks and conditions. | true or false |
| string | A sequence of characters, often used for text, identifiers, or alphanumeric data. Stored internally in UTF-8 encoding. | "example text" |
| number | A numeric value, either an integer or a floating-point number, used for calculations or measurements. | 123 or 45.67 |
Coralogix tracks data types throughout the ingestion and query process, maintaining a data lineage that records type conversions and transformations. This ensures better validation, autocompletion, and query-building support within DataPrime.
Getting started
To open reserved fields, navigate to Data Flow > Schema Manager from your Coralogix toolbar, then select the Reserved fields tab.
Reserved fields are scoped to a single dataset. Before you add or edit fields, select the Dataspace and Dataset you want to configure.
By default, you can reserve up to 800 fields per dataset.
When frequentsearch/logs is selected, a counter shows how many fields were ingested today against the daily limit. The limit resets daily.
Adding reserved fields
Manually add detected fields
To reserve fields that have been ingested by Coralogix in the last 24 hours, take the following steps.
STEP 1. Select + Add field from the Reserved fields screen.
STEP 2. Type the field name. A dropdown of detected fields will appear. Select the desired field.
STEP 3. If the data type is mismatched, you can override it by selecting a different data type in the drop-down menu.
STEP 4. Select Save.
Manually add undetected fields
To reserve fields that have not been ingested by Coralogix and are undetected by the system, take the following steps.
STEP 1. Select + Add field from the Reserved fields screen. Type the field name.
STEP 2. Select the field’s data type in the drop-down menu.
STEP 3. Select Save.
Select fields from a full list of detected fields
STEP 1. Select + Add field from the Reserved fields screen.
STEP 2. Select the search bar that appears.
STEP 3. In the dropdown menu, select View full list.
STEP 4. In the popup modal that appears, select the detected fields that you would like to reserve. You can modify the time picker to change the time period for which fields were detected.
STEP 5. Select Add to list.
STEP 6. Select Save.
Managing reserved fields
Search and filter
Use the search bar in the Reserved fields screen to locate fields based on specific criteria.
Edit or remove fields
-
Edit: Update field properties directly in the Reserved fields screen.
-
Remove: Remove fields no longer required.
Permissions
To view or manage reserved fields, users must have the required permissions. The same permissions apply to reserved fields on logs and spans datasets.
| Permission | Description | Roles |
|---|---|---|
LOGS.RESERVED-FIELDS:READ | View reserved fields. | Data Admin, Observability Lead, Platform Admin, Read-Only User, Security User, Standard User |
LOGS.RESERVED-FIELDS:MANAGE | Add, edit, or delete reserved fields. | Data Admin, Observability Lead, Platform Admin |

