Applies to:
- Plan -
- Deployment -
- Use case - How to filter project logs with existing Topics classifications and promote matching traces into a dataset
Summary
Topics classifications appear in Logs. If you cannot select a topic in the Issues dropdown or open filtered Logs from a topic, filter by its classification ID.What is happening
This workflow applies to project logs with existing Topics classifications. You can filter classifications by ID or label. Issues classification IDs are stored on source logs atclassifications.Issues.id.
Fix or suggestion
Option 1: Use Loop to retrieve the classification ID (recommended)
-
Ask Loop to look up the classification ID with the following prompt:
-
If Loop returns an ID, replace
<CLASSIFICATION_ID>in the following filter, which applies to both the SQL filter in Logs and the source SQL filter in your dataset pipeline: - Go to Logs and remove the previous filter that compares the Issues facet summary with the topic label.
- Open Add a structured filter > SQL, enter the filter from step 2, and click Apply.
- Set the Logs time range to cover the traces you want.
- Select the matching traces loaded in Logs, click Add to > Add to dataset, and choose an existing dataset or create a new one. To promote the full matching set in bulk, use Option 2.
Option 2: Use a dataset pipeline for bulk promotion
- Follow the Dataset pipelines guide and use the SQL filter from Option 1 as the source SQL filter.
- Set the pipeline’s discovery window and limit to cover the traces you want.
How to confirm it worked
- Before promoting logs with either option, confirm that the source logs have the expected topic label and that
classifications.Issues.idmatches the ID used in the filter. - After promotion, confirm that the selected traces were added to the destination dataset.