Search Commands
mvexpand
mvexpand
Expand multi-value fields into separate events. Convert arrays into individual rows.
Description
The mvexpand command takes a field containing multiple values (array) and creates a separate event for each value. This is useful for analyzing array fields, expanding lists, or normalizing data.
Syntax
... | mvexpand <field> [limit=<int>]Required Arguments
field
Field containing multiple values to expand
Optional Arguments
limit
Syntax: limit=<int>
Description: Maximum number of values to expand per event
Examples
Expand port list
* | mvexpand dest_portsExpand user list
* | mvexpand users limit=10Expand and analyze
* | mvexpand tags
| stats count() by tagsExpand IP list
* | mvexpand related_ips
| dedup related_ipsUsage Notes
Creates rows: Each value becomes a separate event with all other fields duplicated.
Array fields: Only works on fields containing arrays/lists.
Performance: Can significantly increase row count.