- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
01-08-2026 02:58 AM
Hi.
I try to create report for different datasource which create Cases or issues. i got error > Aggregation by original_tags field of type array is unsupported. when i try to use COMP with original_tags
Here is example what i try to do > | filter (`resolution_status` in (RESOLVED_FALSE_POSITIVE, RESOLVED_TRUE_POSITIVE))
//| filter (`resolution_status` in (RESOLVED_FALSE_POSITIVE, RESOLVED_TRUE_POSITIVE) and `original_tags` contains """DS:PANW/*/""")
| filter (`original_tags` contains """DS:""")
01-08-2026 07:04 AM
Hello @T.Nurmi ,
Greetings for the day!
The error message Aggregation by original_tags field of type array is unsupported occurs because the original_tags field is stored as an array (a list of values), and the XQL comp (aggregate) stage cannot directly group data by an array object. This field captures the state of tags at the time of alert/incident creation.
To resolve this and successfully use comp with original_tags, you must first flatten the array into individual rows using the arrayexpand stage.
Insert the | arrayexpand original_tags command before your comp stage. This breaks the list of tags into separate records, allowing the aggregation engine to process each tag individually.
Updated Query Example:
dataset = incidents // or alerts | filter resolution_status in (RESOLVED_FALSE_POSITIVE, RESOLVED_TRUE_POSITIVE) | arrayexpand original_tags | filter original_tags contains "DS:" | comp count() as total_incidents by original_tags
If you feel this has answered your query, please let us know by clicking like and on "mark this as a Solution".
Happy New Year!!
Thanks & Regards,
S. Subashkar Sekar
01-08-2026 07:04 AM
Hello @T.Nurmi ,
Greetings for the day!
The error message Aggregation by original_tags field of type array is unsupported occurs because the original_tags field is stored as an array (a list of values), and the XQL comp (aggregate) stage cannot directly group data by an array object. This field captures the state of tags at the time of alert/incident creation.
To resolve this and successfully use comp with original_tags, you must first flatten the array into individual rows using the arrayexpand stage.
Insert the | arrayexpand original_tags command before your comp stage. This breaks the list of tags into separate records, allowing the aggregation engine to process each tag individually.
Updated Query Example:
dataset = incidents // or alerts | filter resolution_status in (RESOLVED_FALSE_POSITIVE, RESOLVED_TRUE_POSITIVE) | arrayexpand original_tags | filter original_tags contains "DS:" | comp count() as total_incidents by original_tags
If you feel this has answered your query, please let us know by clicking like and on "mark this as a Solution".
Happy New Year!!
Thanks & Regards,
S. Subashkar Sekar
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!

