Use this command to sort logs according to specified fields.
sort [+|-] <field_name> (,[+|-]<field_name>)*
The following table lists the parameters used with this command, along with their descriptions.
Use this parameter to specify the field according to which you want the results sorted.
For examples of using this command in typical scenarios, see:
- Use Link Navigation Functions to Identify Events in a Database in Using Oracle Log Analytics
The following query returns the list of fatal logs, arranged in descending order, according to time.
Severity = fatal | fields Time, Target, 'Target Type' | sort -Time