What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

iTechGuides is reader-supported. When you buy through links on our site, we may earn an affiliate commission. As an Amazon Associate I earn from qualifying purchases. Learn more

To monitor Nextcloud for unauthorized file and app changes, combine the Activity app, the admin_audit audit trail, and scheduled occ code-integrity checks. Activity shows a human-readable timeline of file events, admin_audit records broader instance actions with identity and network context, and integrity checks detect modified, missing, or extra core and app files.

Protect and centralize the resulting logs, alert on unexpected accounts, IP addresses, times, paths, and integrity failures, and preserve the original evidence before you remediate anything. No single layer answers every question: an Activity entry can show that a file was deleted, while an integrity check can show that a PHP file was added without identifying the person who added it.

What does each Nextcloud monitoring layer tell you?

Use the layers together because they observe different parts of the system. The Activity app records user-visible file and folder events. admin_audit is the built-in source for a fuller, compliance-oriented record of actions across the instance. Code-integrity commands verify that signed Nextcloud core and app files still match an expected release.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Layer Best for Main limitation
Activity app Human-readable history of file and folder activity It is a user-facing stream, not a complete server audit
admin_audit Compliance and incident records with identity, IP address, user agent, and time context It must be enabled, retained, protected, and deliberately shipped or collected
occ integrity checks Detecting tampered, missing, or unexpected core and app code It does not identify who changed a file or whether a change was authorized
File Activity Monitor Searching large Activity histories by user, file, action, or date It is an optional third-party app and requires Activity to be enabled
Storage or SIEM telemetry Long-term retention and correlation with operating-system or storage events It requires a separate deployment and tuning effort

The Activity app documentation describes events such as create, modify, delete, rename, and move. Nextcloud’s administration documentation explicitly recommends admin_audit when you need a complete log of instance actions.

Popular on Amazon
Silkland 40Gbps USB C 90 Degree Right Angle Adapter 2 Pack, 240W USB4 | Male to Female Extender, 8K@60Hz, Thunderbolt 4/3, Steam Deck, ROG Ally, MacBook, Switch 2, iPhone 18/17/16/15, Quest 3 VR
  • 【90 Degree Full Function USB C Adapter】Supports the latest USB4 standard for up to 40Gbps of bandwidth, 8K video support, and up to 240W Fast charging; Support USB PD 3.1 Extended Power Range (EPR) including 140W, 180W and 240W. Your productivity is easily doubled. *Warm Tip: For the best fit, please make sure the USB-C port is fully exposed; thick or bulky cases may affect compatibility.
  • 【Reliable Quality】Made from high-quality, scratch-resistant aluminum alloy, delicate metal frame. get excellent wear resistance and heat dissipation. Non-Slip Design for easier insertion and removal.
  • 【Small and portable】Ultra thin size, ultra compact design, a petite physique that matches the minimalist design of your modern laptops. Coming with a slim figure that won't block the port next to the one it's plugged into.
  • 【Compatibility】Widely work with most usb c, thunderbolt 4/3 devices. Compatibilit for ROG Ally, Steam Deck, Switch, MacBook Pro, Quest 3 VR headset, Surface Book 2, iPhone 18/17/16/15, Samsung Galaxy S23/S22/S21, Note 20/10, Google Pixel, ChromeBook, etc.
  • 【Excellence Customer Support】If you experience any issues or cable failure, simply reach out to our dedicated customer service team. We provide a prompt response within 18 hours, providing you with the necessary technical support to resolve any concerns.

How do I see who changed or deleted a file in Nextcloud?

Start with the Activity stream for a quick, human-readable answer, then confirm the event in admin_audit when the change matters for security, compliance, or an incident.

Review the Activity stream

  1. Sign in to Nextcloud and open Activity from the app navigation or user menu.
  2. Use the available filters to narrow the timeline to file activity, a user, or a date range.
  3. Inspect the event details: the account, action, object name, and timestamp. Create, modify, delete, rename, and move events are typical file and folder entries.
  4. Record the event time in UTC and preserve a screenshot or exported record according to your evidence policy before changing anything.

Activity is enabled by default and also displays events generated by other installed apps. It is useful for answering “who changed this file?” during normal administration, but it is not a complete security audit. Entries can be difficult to search once the history is large, and Activity alone does not provide the same instance-wide context as the audit app.

Search a large history

If manual filtering is no longer practical, the optional File Activity Monitor app can search Activity records by user, filename, action type, and date range. Activity must remain enabled for it to have data to search. Verify that the app version is compatible with your Nextcloud release before deploying it, and treat it as a search interface rather than a replacement for protected audit logging.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

How do I enable Nextcloud’s complete audit trail?

Enable the shipped admin_audit app, select a supported logging backend, and give its events a dedicated logging condition so audit records are not lost when the global log level is less verbose.

1. Enable the app

Run the command as the web-server account. On a typical Debian or Ubuntu installation that account is www-data:

sudo -E -u www-data php occ app:enable admin_audit

If your occ file is not in the current directory, run the command from the Nextcloud installation directory or provide its full path, for example:

sudo -E -u www-data php /path/to/nextcloud/occ app:enable admin_audit

Using the same account that runs PHP prevents permission differences from creating misleading failures or unreadable log files.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Also popular on Amazon
Sale
Anker USB C Hub, 5-in-1 USBC to HDMI Splitter with 4K Display | 85W Max PD, 1 Powered USB-C 5Gbps & 2 Powered USB-A 3.0 5Gbps Data Ports, for MacBook Pro, MacBook Air, Dell and More (Black)
  • 5-in-1 Connectivity: Equipped with a 4K HDMI port, a 5 Gbps USB-C data port, two 5 Gbps USB-A ports, and a USB C 100W PD-IN port. Note: The USB C 100W PD-IN port supports only charging and does not support data transfer devices such as headphones or speakers.
  • Powerful Pass-Through Charging: Supports up to 85W pass-through charging so you can power up your laptop while you use the hub. Note: Pass-through charging requires a charger (not included). Note: To achieve full power for iPad, we recommend using a 45W wall charger.
  • Transfer Files in Seconds: Move files to and from your laptop at speeds of up to 5 Gbps via the USB-C and USB-A data ports. Note: The USB C 5Gbps Data port does not support video output.
  • HD Display: Connect to the HDMI port to stream or mirror content to an external monitor in resolutions of up to 4K@30Hz. Note: The USB-C ports do not support video output.
  • What You Get: Anker 332 USB-C Hub (5-in-1), welcome guide, our worry-free 18-month warranty, and friendly customer service.

2. Choose and protect the audit log destination

With file logging, the audit log is normally written as audit.log in the Nextcloud data directory. The logfile_audit configuration parameter can move it to a protected path. Keep the file outside locations served directly by the web server, restrict read access to trusted administrators and the logging service, and include it in your retention and backup policy.

Nextcloud supports multiple logging backends. The logging configuration documentation explains the available backends and parameters. Configure an app-specific log.condition for admin_audit so audit events are recorded even when the global log level is set lower for routine operation. Review the exact syntax for your Nextcloud release before editing config.php.

3. Forward a copy to a central collector

For incident response, do not rely on a single file in the same server that may be compromised. Forward audit events to a write-restricted central log collector or SIEM, preserve the original event fields, and limit access to trusted administrators. Central retention should cover the period in which an intrusion could remain undiscovered, as required by your organization’s policy.

The audit trail covers user sessions, file handling, user management, sharing, user agents, IP addresses, and timestamps. Those fields let you compare an unexpected file event with an approved administrator account, an automation identity, a source address, and the corresponding session.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

How can I tell if someone added or changed a PHP file?

Run Nextcloud’s code-signing checks as the web-server account. They compare core and installed-app files with the signed versions expected for the release and can report modified, missing, or unexpected files.

Check the Nextcloud core

sudo -E -u www-data php occ integrity:check-core

Check every installed app

sudo -E -u www-data php occ integrity:check-app --all

Check one app

sudo -E -u www-data php occ integrity:check-app contacts

Replace contacts with the app identifier you need to investigate. The Nextcloud code-signing documentation explains why signed-code verification is an additional security layer and how integrity results are interpreted.

How should I interpret the result?

A successful check can be silent. A failure may identify one or more of these conditions:

Also popular on Amazon
Sale
Anker USB C Hub, 7in1 Multi-Port USB Adapter, 4K@60Hz USBC to HDMI Splitter | 85W Max PD, 2 USB 3.0 & 1 USBC Data Ports, SD/TF Card Reader, for Laptops/Mac and Other Type C Devices (Charger Not Included)
  • Sleek 7-in-1 USB-C Hub: Features an HDMI port, two USB-A 3.0 ports, and a USB-C data port, each providing 5Gbps transfer speeds. It also includes a USB-C PD input port for charging up to 100W and dual SD and TF card slots, all in a compact design.
  • Flawless 4K@60Hz Video with HDMI: Delivers exceptional clarity and smoothness with its 4K@60Hz HDMI port, making it ideal for high-definition presentations and entertainment. (Note: Only the HDMI port supports video projection; the USB-C port is for data transfer only.)
  • Double Up on Efficiency: The two USB-A 3.0 ports and a USB-C port support a fast 5Gbps data rate, significantly boosting your transfer speeds and improving productivity.
  • Fast and Reliable 85W Charging: Offers high-capacity, speedy charging for laptops up to 85W, so you spend less time tethered to an outlet and more time being productive.
  • What You Get: Anker USB-C Hub (7-in-1), welcome guide, 18-month warranty, and our friendly customer service.
  • INVALID_HASH: a file’s contents differ from the expected signed version.
  • MISSING_FILE: a file expected by the release is absent.
  • EXTRA_FILE: an unexpected file exists in the checked code tree.
  • Signature exception: the app or package cannot be validated as expected.

Any failure is an investigation trigger, not automatic proof of an attack. Record the complete output, every path, and the release or package hashes used for comparison. An integrity difference immediately after an approved update may indicate a failed or incomplete deployment. An unplanned difference requires incident handling.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Code signing checks authenticity and completeness for signed code; it does not prove that a user-visible file event was malicious. Correlate the result with Activity, admin_audit, deployment records, operating-system logs, and administrator activity.

How often should Nextcloud integrity checks run?

Run the core and app checks on a schedule that matches your change window and alerting requirements. Nextcloud’s configuration guidance describes running a code-integrity check once a day in a background job and notifying administrators when files in the Nextcloud or app folders are modified or added.

A daily schedule is a practical baseline for installations with routine updates. Environments with frequent deployments or stricter detection requirements can run checks more often, provided the resulting workload and alert volume are acceptable. Every scheduled run should:

  1. Execute as the web-server account.
  2. Capture standard output and standard error in a protected location.
  3. Return a failure status to the scheduler when a check fails.
  4. Send an alert containing the check time, command, release, and affected paths.
  5. Retain the original output with the related audit and deployment records.

Use your operating system’s cron or systemd timer with the full path to occ. A generic cron pattern is shown below; replace the path, account, and notification command with values approved for your installation:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
15 2 * * * www-data /usr/bin/php /path/to/nextcloud/occ integrity:check-core >> /var/log/nextcloud/integrity-core.log 2>&1

Schedule the app check separately or invoke both checks from a root-owned wrapper that writes to a protected directory. Do not make the wrapper silently overwrite evidence, and do not automatically restore files before the investigation is complete.

What should I do when an unauthorized change is suspected?

Preserve evidence first, establish who and what changed, rule out an approved deployment, and only then contain and recover. The following sequence keeps the evidence trail usable.

Also popular on Amazon
BENFEI USB C Hub 5-in-1 with 4K HDMI(Certified), 100W Power Delivery, 3 USB-A, Silicone Cable, Aluminum Case Compatible with MacBook Pro/Air, iPad Pro, iMac, iPhone 15 Pro/Pro Max, XPS, Thinkpad
  • Portable and powerful USB-C HUB: BENFEI USB Type-C HUB, with super-soft and knot-free silicone woven design cable, meets most mobile office needs. Compact, lightweight, stylish, and powerful portable USB C Hub equipped with 1 x HDMI port, 1 x 100W charging, and 3 x USB ports. 18-month warranty, 24-hour response, to ensure you feel at ease when using our product.
  • Design centered on comfort and reliability: Thanks to BENFEI's end-to-end in-house cable production capability, in-house PCBA and assembly capability, using the industry's most advanced silicone woven design and process, 20cm cable in length, no knots, super-soft, the HUB is easy to use in all scenarios: laptop, tablet, stand etc. Super-soft, 25000+ life cycles, to meet your daily carrying and office needs.
  • 100W Charging: Support up to 90W USB C pass-through charging via Type-C port to keep your laptop powered. 10W is reserved for other interface operations. No data and video function on the Type-C port.
  • 4K HDMI Display: The HDMI port supports media display at resolutions up to 4K 30Hz, keeping every incredible moment detailed and ultra vivid. Please note that the C port of the Host device needs to support video output.
  • Transfer Files in Seconds: Transfer files and from your laptop at speeds up to 10 Gbps with USB A 3.2 port. Extra 2 USB A 2.0 ports are perfectly for your keyboards and mouse.
  1. Record the alert and time in UTC. Save the original Activity entry, audit event, integrity output, and relevant application-log lines before rotation, cleanup, or editing. Record the server, Nextcloud version, and the person who received the alert.
  2. Identify the actor and source. Compare the account, user agent, IP address, request or session timing, and authentication context with your approved administrator and automation lists. An unexpected IP or service account is a lead to investigate, not by itself a final attribution.
  3. Locate the object and action. Use Activity filters for the user-facing timeline. Search File Activity Monitor if the history is too large to review manually. Note the exact path, whether the event was a create, modify, delete, rename, or move, and whether sharing or another app generated the event.
  4. Run code-integrity checks. Execute integrity:check-core and integrity:check-app --all. Preserve the complete output and the hashes or package versions used for comparison. Check the specific app again when a broad scan identifies one application.
  5. Compare with change records. Check approved maintenance windows, deployment pipelines, package-manager history, administrator tickets, and operating-system access logs. A mismatch directly following a release may be deployment damage; a mismatch with no authorized change is a stronger incident indicator.
  6. Contain carefully. Follow your incident-response process. Depending on the evidence, disable or rotate affected credentials, restrict administrative access, isolate a host, or block a suspicious automation identity. Avoid deleting the suspicious file or resetting logs before collecting evidence.
  7. Recover from a known-good source. Restore core or app files from a trusted package or backup only after evidence collection and approval. Re-run integrity checks, confirm normal operation, and document exactly what was restored and why.

How should audit logs be retained and protected?

Treat audit data as security evidence rather than ordinary application output. Use least-privilege permissions, protected storage, centralized copies, and a documented retention period.

  • Keep the audit file outside web-served directories and make it readable only by the logging service and designated administrators.
  • Forward events to a central collector with write-restricted ingestion so an administrator of the Nextcloud host cannot quietly rewrite the only copy.
  • Preserve timestamps in UTC and keep the original event fields, including account, IP address, user agent, action, path, and session context when present.
  • Monitor log rotation and collector health. An absent log can indicate a configuration or permission failure, not an absence of activity.
  • Alert on disabled admin_audit, changes to logging configuration, repeated integrity failures, and unexpected changes outside approved windows.
  • Limit access to people with a legitimate operational or compliance need, and document who can export or delete records.

Nextcloud’s configuration parameter reference lists logging-related settings such as logfile_audit. Apply the parameter names and syntax documented for your installed version rather than copying a configuration from a different release.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

What happens with files changed directly on external storage?

Out-of-band edits on an external storage backend can fall outside Nextcloud’s normal event path. Nextcloud documents a “Check for changes: Never” setting that makes Nextcloud ignore new files not added through Nextcloud. This can reduce the chance that an external-storage administrator silently introduces files, but it is suitable only when legitimate out-of-band changes are not expected.

If external edits are legitimate, leave change detection enabled and monitor the storage layer as well. Use filesystem audit events or the provider’s access log, then reconcile those records with Nextcloud Activity and admin_audit events. A storage-layer record can explain a change that Nextcloud cannot attribute through its normal request path.

Why did Nextcloud report an integrity error?

An integrity error means that the checked code does not match what Nextcloud expects; it does not automatically mean an attacker modified it. Common explanations include an interrupted update, a package copied incompletely, a locally modified file, an unrecognized app build, or a genuinely unauthorized change.

  1. Record the exact error code and path before changing the file.
  2. Check whether a release, app installation, configuration-management run, or rollback occurred at that time.
  3. Compare the installed version and package contents with the approved source.
  4. Review Activity, admin_audit, deployment records, and operating-system logs for the same period.
  5. Restore from a trusted package or backup only after preserving the original evidence.
  6. Run the relevant integrity command again and document the clean result or any remaining exception.

Do not suppress an integrity warning merely to make the dashboard appear healthy. If a locally maintained customization is intentional, document the exception, restrict who can modify it, and ensure your alerting distinguishes that approved exception from new changes.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

What is a practical monitoring policy for a small Nextcloud installation?

A small installation can implement the same three-layer model without a full SIEM, provided the records are protected and reviewed consistently.

Also popular on Amazon
𝟒𝐏𝐚𝐜𝐤 𝐔𝐩𝐠𝐫𝐚𝐝𝐞𝐝 USB to USB C Adapter,Type-C Female to A Male Charger Converter for iPhone 18 Charger,iWatch Ultra SE 9 10,iPhone 17 Pro Max 16 15 14,Samsung S25,AirPods,iPad,Car,Xbox
  • 【Read before You Buy】 Note: This adapter is USB 2.0 version and cannot transmit HDM, VGA, or other video signals. Nevertheless, they are fully capable of charging devices,duplicating files, and can be seamlessly integrated with USB-C earphones, wireless network adapters, and SD card adapters.
  • 【Easy to Use and Safe】Thanks to modern manufacturing techniques, we've made these adapters sufficiently compact so that they can remain inserted in your device without noticeable protrusion or inconvenience. This means you don't have to constantly plug and unplug them, reducing the likelihood of wear and misalignment, and making them more convenient to carry around.
  • 【Reliable Quality】Engineered for enhanced durability, durable aluminum alloy shell material,get excellent wear resistance and heat dissipation,the male USB C and female USB connectors & the male USB and female USB C connectors are designed to be plugged and unplugged up to 20000 times. Provides data transfer, device charging, memory space expansion, and additional computer peripherals.
  • 【Think more for you】Do you need to connect a USB-C-enabled device to an odd device that only has USB-A ports? Then these USB-A male to USB-C female adapters are made for you.Simply insert the adapter into the USB-A port on the device, and you can instantly connect your USB-C device to the device that originally didn't have the correct connection port.
  • 【Trusted xiwxi Quality and Service】As a responsible brand seller, you will receive xiwxi's 12-month Quality assurance and lifetime friendly customer service, you're not just buying a product,you're investing in peace of mind with all-round quality and exceptional customer service.
  1. Leave Activity enabled and teach administrators where to find its filters.
  2. Enable admin_audit and set a protected audit destination.
  3. Forward or copy audit records to storage that is not writable by the Nextcloud service account.
  4. Run core and all-app integrity checks daily, with an alert on any non-clean result.
  5. Review alerts against a written list of approved administrators, automation accounts, IP ranges, and maintenance windows.
  6. Keep a short incident checklist that requires UTC timestamps, evidence preservation, credential review, and trusted-source recovery.
  7. Test the alerting path by checking that a scheduled job failure and a missing log generate notifications; do not describe this as a security test of the application itself.

For larger or regulated environments, add centralized retention, role-based access to audit records, storage-layer telemetry for external backends, and a formal incident-response process. The important distinction is that more tooling does not remove the need to correlate application events with deployment and host evidence.

How do the monitoring layers work together during an investigation?

Think of the layers as complementary questions:

  • Activity: What happened to this user-visible file or folder, and when?
  • admin_audit: Which account, session, IP address, user agent, or administrative action provides context for the event?
  • Integrity checks: Does the installed core or app code still match the signed release, and are files missing or extra?
  • Storage and SIEM telemetry: What happened outside the normal Nextcloud request path, and can the event be retained and correlated over time?

For example, a new PHP file reported by integrity:check-app --all should lead you to preserve the command output, search admin_audit for the relevant session and source address, review Activity for associated file events, and check deployment records. A deleted user document may appear in Activity without any code-integrity failure, which is why code checks cannot replace action auditing.

Frequently Asked Questions

Where is the Nextcloud audit log stored?

With file logging, the audit trail is normally an audit.log file in the Nextcloud data directory. The logfile_audit setting can move it to a protected location; the exact path depends on your configuration.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Can Nextcloud show the original contents of a deleted file?

The Activity and audit layers record actions and context, not necessarily a recoverable copy of the deleted content. Use your file-versioning, recycle-bin, snapshot, or backup policy to recover content, and preserve the event records before restoration.

Do integrity checks scan user-uploaded documents?

The built-in integrity:check-core and integrity:check-app commands verify Nextcloud core and installed-app code. They are not malware scanners for ordinary documents stored in user file areas.

Will an external-storage edit always appear in Activity?

No. A change made directly on the storage backend can bypass Nextcloud’s normal event path. Keep a storage-layer audit source, such as filesystem or provider access logs, when out-of-band edits are allowed.

How can I reduce false alarms after a planned update?

Record the maintenance window, release version, deployment identity, and expected file changes before updating. Correlate the integrity result with those records, and document any intentional local customization instead of ignoring every warning.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply. Prices as of December 6, 2026 10:01 am GMT.