I need to produce a "top-ten" error report from log4j logs. Specifically, I need to sort the logs by error type/text over a specific time range, count the occurrence of each error type/text, then report the top-ten occurrences from most-repeated to least-repeated, and print the text of the first occurrence of each error. I can't find any examples of this kind of application of Splunk. Can someone help?