Make-Streams

make-streams

Splits the input stream into multiple output streams based on the distinct values of one or more columns.

Spec

... | make-streams <column> [, ...]

Parameters

column - One or more columns whose distinct values determine how the stream is split.

Return Value

Multiple output streams, one per unique combination of the specified column values.

Example

datatable(Service:string, Level:string, Message:string)
[
    "web", "info", "request started",
    "web", "error", "timeout",
    "api", "info", "healthy"
]
| make-streams Service
#ServiceLevelMessage
0webinforequest started
1weberrortimeout
2apiinfohealthy