Both stats and rare are transforming commands, meaning only the fields used in or produced by the commands are available to later commands. So the only fields available after stats are count and SHA256HashData; and the only fields available after rare are SHA256HashData, count, and percent. To get additional fields out of stats, include them in the command. To work around rare, use sort and tail. index=myindex
| stats count, max(_time) as _time by SHA256HashData
| sort - SHA256HashData
| tail 10
... View more