Nextcloud Plugin Read Log Files

2otherjobs

Cadet
Joined
Jun 4, 2019
Messages
4
Hello and thanks to all who make the Nextcloud plugin. I have been using Nextcloud in my own jail for years, and recently switched to the plugin. Works great,
and was easy to install.

I have always had problems with the Nextcloud log - it exists in JSON format. It is read nicely through the Nextcloud website as an Admin in the 'Settings' > 'Logging' page. However, if the website is down or unavailable, reading the raw JSON log file (/var/log/nextcloud/nextcloud.log) is difficult to say the least.

I found that installation of the package textproc/jq can help: install pkg jq
Then several options exist:
root@Nextcloud:/var/log/nextcloud #tail -f nextcloud.log | jq
or
root@Nextcloud:/var/log/nextcloud #cat nextcloud.log | jq

both produce readable output. I am not a jq expert, but this was quite easy to do.
To the developers of this plugin: Perhaps jq should be part of the standard installation? Will it disappear with the next upgrade of the plugin? A brief note during installation about this feature might help anyone with difficulty getting the plugin to work.

Thanks again for this plugin.
 
Top