List apache error/access logs list trough the API

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

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?

Yes I need to fetch the logs via remote api.

Ok, I will add a get-logs API command in the next release.

Automatically closed -- issue fixed for 2 weeks with no activity.