logreader icon indicating copy to clipboard operation
logreader copied to clipboard

Show URL and UID columns on the main log screen

Open LukasReschke opened this issue 9 years ago • 7 comments

LukasReschke avatar Nov 21 '16 17:11 LukasReschke

afaik we dont log that atm, so it would need to be added in core first

icewind1991 avatar Nov 21 '16 18:11 icewind1991

We do in most cases. See the following log entry.

{"reqId":"AUZyiJLxbVi8UKRvC+RL","remoteAddr":"10.211.55.2","app":"no app in context","message":"Exception: {\"Exception\":\"Symfony\\\\Component\\\\Routing\\\\Exception\\\\RouteNotFoundException\",\"Message\":\"Unable to generate a URL for the named route \\\"theming.Icon.getTouchIcon\\\" as such route does not exist.\",\"Code\":0,\"Trace\":\"#0 \\\/media\\\/psf\\\/nextcloud\\\/lib\\\/private\\\/Route\\\/Router.php(339): Symfony\\\\Component\\\\Routing\\\\Generator\\\\UrlGenerator->generate('theming.Icon.ge...', Array, 1)\\n#1 \\\/media\\\/psf\\\/nextcloud\\\/lib\\\/private\\\/URLGenerator.php(70): OC\\\\Route\\\\Router->generate('theming.Icon.ge...', Array)\\n#2 \\\/media\\\/psf\\\/nextcloud\\\/lib\\\/private\\\/URLGenerator.php(169): OC\\\\URLGenerator->linkToRoute('theming.Icon.ge...', Array)\\n#3 \\\/media\\\/psf\\\/nextcloud\\\/lib\\\/private\\\/legacy\\\/template\\\/functions.php(170): OC\\\\URLGenerator->imagePath('core', 'favicon-touch.p...')\\n#4 \\\/media\\\/psf\\\/nextcloud\\\/core\\\/templates\\\/layout.guest.php(14): image_path('', 'favicon-touch.p...')\\n#5 \\\/media\\\/psf\\\/nextcloud\\\/lib\\\/private\\\/Template\\\/Base.php(174): include('\\\/media\\\/psf\\\/next...')\\n#6 \\\/media\\\/psf\\\/nextcloud\\\/lib\\\/private\\\/Template\\\/Base.php(149): OC\\\\Template\\\\Base->load('\\\/media\\\/psf\\\/next...', NULL)\\n#7 \\\/media\\\/psf\\\/nextcloud\\\/lib\\\/private\\\/legacy\\\/template.php(228): OC\\\\Template\\\\Base->fetchPage(NULL)\\n#8 \\\/media\\\/psf\\\/nextcloud\\\/lib\\\/private\\\/legacy\\\/template.php(250): OC_Template->fetchPage()\\n#9 \\\/media\\\/psf\\\/nextcloud\\\/lib\\\/private\\\/Template\\\/Base.php(130): OC_Template->fetchPage()\\n#10 \\\/media\\\/psf\\\/nextcloud\\\/core\\\/templates\\\/403.php(7): OC\\\\Template\\\\Base->printPage()\\n#11 {main}\",\"File\":\"\\\/media\\\/psf\\\/nextcloud\\\/3rdparty\\\/symfony\\\/routing\\\/Generator\\\/UrlGenerator.php\",\"Line\":130}","level":3,"time":"2016-11-21T17:47:54+00:00","method":"GET","url":"\/nextcloud\/data\/htaccesstest.txt?t=1479750473680","user":"admin","version":"11.0.0.2"}

LukasReschke avatar Nov 21 '16 18:11 LukasReschke

url and user is what is of interest here :). Maybe combine method and url.

LukasReschke avatar Nov 21 '16 18:11 LukasReschke

And reqId would also be handy :)

LukasReschke avatar Nov 21 '16 19:11 LukasReschke

Clicking on a log entry now highlights all entries from that request and you can search for request Ids, urls and user ids.

I'm not sure of a clean way to show this info without adding a lot of clutter but these features should cover most use cases for those fields.

icewind1991 avatar Feb 13 '17 14:02 icewind1991

Sorry for digging up this old ticket. Searching for the reqId works, but I would also find it handy to have this as optional column to be displayed.

simonspa avatar Apr 03 '20 12:04 simonspa