A companion function Sankey Widget that produces data compatible with the widget.
Parameter | Type | Required | Default Value | Description |
---|---|---|---|---|
source | string | required | The field containing the source node ID. | |
target | string | required | The field containing the target node ID. | |
weight | aggregate | optional[a] | count(as=_count) | A function used to calculate the weight the edges. Good candidates are functions like, for example, sum() , count() or max() . |
[a] Optional parameters use their default value unless explicitly set. |
sankey()
Examples
For a webserver log, show which URLs match HTTP methods
logscale
#type=accesslog
| sankey(source=method, target=url)
For a webserver log, show referrers by URL
logscale
#type=accesslog referrer!="-"
| sankey(source=referrer, target=url)