Submitted by george.asenov on Tue, 06/23/2015 - 04:11
Hello,
Sorry is there is such functionality already but I can't find it.
But is there and API option to list the apache error/access logs for website like in the web UI >Logs and Reports>Apache Error Log. Also an some options for changing the limit of the limit for the number of rows to list and maybe string to search will be very helpful.
Status:
Closed (fixed)
Comments
Submitted by JamieCameron on Tue, 06/23/2015 - 15:19 Comment #1
There's no API for this, but the logs are just files under /var/log/virtualmin so any script that is running API commands locally should be able to access them. Or are you looking for a way to fetch the logs via a remote API call?
Submitted by george.asenov on Tue, 06/23/2015 - 15:27 Comment #2
Yes I need to fetch the logs via remote api.
Submitted by JamieCameron on Wed, 06/24/2015 - 20:00 Comment #3
Ok, I will add a get-logs API command in the next release.
Submitted by george.asenov on Thu, 06/25/2015 - 07:18 Comment #4
Thanks Jamie.
Submitted by Issues on Thu, 07/09/2015 - 07:20 Comment #5
Automatically closed -- issue fixed for 2 weeks with no activity.