Hi folks!
This new version gives you the ability to sort the N last lines of your log file.
Your settings are set in the URL when you sort logs so if you bookmark the current displayed page, you should retrieve exactly the same display when loading the bookmark.
You can also decide to sort logs by default. Just add the sort
and the order
parameters in your configuration file.
Warning
Sorting is not performed on the whole file but only with the N last lines !
Here is a config.user.json
sample:
...
"files": {
"apache1": {
"display" : "Apache Error #1",
"path" : "\/var\/log\/apache2\/error.log",
"thinit" : [ "Log" , "Severity" ],
"sort" : "Log",
"order" : -1,
"format" : {
"type" : "HTTPD 2.2",
"regex": "|^\\[(.*)\\] \\[(.*)\\] (\\[client (.*)\\] )*((?!\\[client ).*)(, referer: (.*))*$|U",
"match": {
"Date" : 1,
"IP" : 4,
"Log" : 5,
"Severity" : 2,
"Referer" : 7
},
...
}
},