Latest Entries (-l)
This parameter allows you to the query latest data entries for any given metric.
Note: In a query, this parameter can be added in place of a start date and end date parameter. However, both parameters cannot be specified in the same query.
This parameter applies to all frequency types. For example, the following syntax queries data for the BG process for the last 2 days:
swadm METRICS -d -o PROCESS{"NAME=BG,INSTANCE=1"} -l 2
The same command can be used to get entries for the last 2 hours as follows:
swadm METRICS -h -o PROCESS{"NAME=BG,INSTANCE=1"} -l 2
Likewise, you can also use it to get entries for the last 2 minutes: