There's more...

In this recipe, we did not use the top command, as this command only provides limited functionality. The stats command is far more powerful and has many available functions, including distinct count.

Get Splunk Operational Intelligence Cookbook - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.