Schema Explorer
Use the Schema Explorer to automatically detect, highlight, and report on differences detected in the structure of your logs as they are ingested such as duplicate fields with different data types that cause conflict.
Logs often come from different sources and might have different naming conventions, causing inconsistencies that can quickly make analysis harder. In IBM® Cloud Logs, you can use the Schema Explorer to centralize information about
the structure of your logs, naming conventions and data types.
At ingestion, all fields are extracted regardless of structure or naming convention. After ingestion, the Schema Manager identifies duplicate or similar keys. Then, you can explore how each field is used, how often it appears, its unique values and any mapping exceptions.
You can use the Schema Explorer to automatically detect, highlight, and report on differences identified on the structure of your logs.
- Prevent duplicate fields.
- Reduce query errors caused by inconsistent keys.
- Discover and resolve duplicate or conflicting fields.
- Provide feedback to developers when fields are misaligned.
Use-case scenarios
Consider the following use-case scenarios when using the Schema Explorer:
-
Regularly check for new fields ingested to catch inconsistent naming early.
-
Standardize fields names with your development teams to enhance querying and keep consistency across services and applications.
-
Standardize the type of fields names with your development teams to reduce mapping exceptions.
-
Identify fields that you must define as
Reserve fieldsfor critical analysis.
Information per field
You can use Schema Explorer to get a complete view of the fields that are ingested across your logs, For each field, you can see:
Path: The field name and locationMapping Status: Indexing status for the selected time range:Mapped: IndexedUnmapped: Not IndexedPartially mapped- Indexed for part of the time rangeType- Data type (string, numeric, object etc.).Popularity over time- How frequently the field appears.Cardinality- Number of unique values and how it changes over time.First seen/Last seen- When the field was ingested.
This helps you identify fields that may be redundant, inconsistent, or unexpectedly missing.
Example Scenario
{: #schema-explorer-example-scenario } You have three services sending user data:
Service A uses surnameService B uses familynameService C uses family-nameWithout Schema Management, your queries might miss data because the fields don't match. With Schema Management, you can detect these variations and map them to a unified key such as last_name by using a parsing rule.
Launching Schema Explorer
Complete the following steps:
-
Navigate to your IBM Cloud Logs instance: Observability > Logging > Cloud Logs > Your Service Instance > Open Dashboard.
-
In the dashboard, click Data Pipeline > Schema Manager.
The Schema Explorer opens.
Next, you can:
- Use the search bar to find specific fields.
- Review each field's popularity, type, mapping status, and cardinality to identify duplicates or inconsistencies
- Check Mapping Exceptions to align similar fields into a single schema.