Skip to content

[FEATURE] showperc with top #5530

Description

@Swiddis

Is your feature request related to a problem?
With top (and rare) commands, it'd be nice to conveniently get percentages. Currently they need to be computed manually with eventstats: stats count() as url_count by url | eventstats sum(url_count) as total | eval perc = 100.0 * url_count / total.

What solution would you like?
A simple implementation would rewrite top with showperc to its equivalent.

source=whatever | top url showperc=true

What alternatives have you considered?
Some more complex eval involving computing counts as a special-case without an eventstats node.

Do you have any additional context?
N/A

Metadata

Metadata

Assignees

Labels

PPLPiped processing languageenhancementNew feature or request

Type

No type
No fields configured for issues without a type.

Projects

Status
Not Started
Status
Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions