-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Audit log file fed but not displayed through the admin web interface #318
Audit log file fed but not displayed through the admin web interface #318
Comments
Same thing here. I'm using docker oficial image and can't get the audit log working... any ideas? |
Same issue here. Nextcloud on Apache2. |
Same here (apache2, without docker). |
Same problem. Tested on: |
Tested also with NC 18.0.1 with apache2 (no docker) and still have the same problem |
maybe the problem is not the logreader but the log itself. I think, the log is in JSON format. Maybe the JSON stucture in the log file is corrupt. |
GambaJo, I don't think so, the JSON structure is pretty the same compared to nextcloud.log. I think that the problem could be because logreader is ignoring 'audit.log' file and only reading 'nextcloud.log' file, all the events in nextcloud.log are represented but audit.log ones are absent. I tried to move audit.log file out of the cloud storage to /var/log/nextcloud/audit.log for avoiding permissions problem, locating it in the same place that nextcloud.log without success. |
I updated NC to 18.0.1 and now I can see the log. |
I updated some days ago to 18.0.1 and I still cannot view the logs. This is mine: Also version and logfile, please: |
Updated to 18.0.3 and I still cannot see the audit log in the admin web interface. |
I never had this issue until I updated to NC 20 b1-2 Update: NC 20 B3 seems to have fixed it. I can see the logs again. |
Add a LogFileProvider class that identifies the available log files It checks if the admin_audit app is enabled, and fetches it's logfile path. Additionally, add ability for user to select the file they want to view. The "Download logs" button now downloads the currently selected log file. Tested by enabling and disabling the admin_audit app TODO: Update the commands to also use the choosen logfile Fixes: #318 Signed-off-by: Abijeet <abijeetpatro@gmail.com>
Add a LogFileProvider class that identifies the available log files It checks if the admin_audit app is enabled, and fetches it's logfile path. Additionally, add ability for user to select the file they want to view. The "Download logs" button now downloads the currently selected log file. Tested by enabling and disabling the admin_audit app TODO: Update the commands to also use the chosen logfile Fixes: #318 Signed-off-by: Abijeet <abijeetpatro@gmail.com>
Add a LogFileProvider class that identifies the available log files It checks if the admin_audit app is enabled, and fetches it's logfile path. Additionally, add ability for user to select the file they want to view. The "Download logs" button now downloads the currently selected log file. Tested by enabling and disabling the admin_audit app TODO: Update the commands to also use the chosen logfile Fixes: #318 Signed-off-by: Abijeet <abijeetpatro@gmail.com>
The Try this in your
And make sure you don't have any other stray |
Steps to reproduce
Expected behaviour
The content of the audit.log file should be displayed in the web administration logging panel
Actual behaviour
Login or log out requests are not displayed on the web interface
Server configuration
Operating system: Debian 9
Web server: Apache 2
Database: Mysql
PHP version: 7
Nextcloud version: 16.0.3
Updated from an older Nextcloud/ownCloud or fresh install: fresh install
List of activated apps:
App list
Auditing / LoggingNextcloud configuration:
Config report
'owsk6pnizeou', 'passwordsalt' => 'xxxxx' 'secret' => 'xxxxx', 'trusted_domains' => array ( 0 => 'nextcloud.intra.inet, ), 'datadirectory' => '/home/nextclouduser', 'dbtype' => 'mysql', 'version' => '16.0.3.0', 'overwrite.cli.url' => 'https://nextcloud.intra.inet', 'dbname' => 'xxxx', 'dbhost' => 'xxxx', 'dbport' => '', 'dbtableprefix' => 'oc_', 'mysql.utf8mb4' => true, 'dbuser' => 'nextcloud', 'dbpassword' => '', 'installed' => true, 'log_type' => 'file', 'logfile' => 'nextcloud.log', 'loglevel' => '0', );Are you using external storage, if yes which one: no
Are you using encryption: no
Are you using an external user-backend, if yes which one: no
Client configuration
Browser: Firefox/60.0
Operating system: Microsoft Windows 10
Logs
Web server error log
Web server error log
No error in the error log
Nextcloud log
Nextcloud log
Nextcloud audit log
``` {"reqId":"A2rPl1W4l4JQTIOih1aS","level":1,"time":"August 16, 2019 13:16:56","remoteAddr":"10.100.18.116","user":"Admin01","app":"admin_audit","method":"GET","url":"\/ocs\/v2.php\/apps\/notifications\/api\/v2\/notifications","message":"Login successful: \"Admin01\"","userAgent":"Mozilla\/5.0 (Windows 10 rv:58.0) Gecko\/20100101 Firefox\/60.0","version":"16.0.3.0"} ```The text was updated successfully, but these errors were encountered: