@Alok_Pal,
For example:
python3.6 lasrlog.py /Users/alexal/Downloads/LASR.1332805759.98431.saslasr.log 20
This command prints 20 actions from the log sorted by run time.
usage: lasrlog.py [-h] [-c HOWMANY] [-s {id,pid,sastime,time,user,rawcmd,tablename,statusmsg,runtime}] [-r REVERSE] [-g GREATERTHAN] [-coloring COLORING] file
positional arguments: file The path to actions file
optional arguments: -h, --help show this help message and exit -c HOWMANY, --howmany HOWMANY How many actions needs to be printed after sorting? By default 10. -s {id,pid,sastime,time,user,rawcmd,tablename,statusmsg,runtime}, --sortby {id,pid,sastime,time,user,rawcmd,tablename,statusmsg,runtime} Sort by specific field. By default sorting by runtime. Possible values are: id, pid, sastime, time, user, rawcmd, tablename, statusmsg, runtime -r REVERSE, --reverse REVERSE This is using to flag descending sorts (boolean value), by default True. -g GREATERTHAN, --greaterthan GREATERTHAN Print actions with run time greater or equals specified value -coloring COLORING, --coloring COLORING
... View more