reverse command: Examples

The following are examples for using the SPL2 reverse command. To learn more about the reverse command, see How the SPL reverse command works.

1. Reversing events

This example shows a set of events returned from a search. By default, events are returned with the most recent event first.

When you add the reverse command to the end of your search, the rows are reversed showing the oldest event first.

2. Reversing aggregated results

The following search uses the stats command to determine the number of different page requests, GET and POST, that occurred for each Web server.

CODE

The results look something like this:

Add the reverse command to the end of the search.

CODE

The rows in the results are reversed.