Already a NinjaOne customer? Log in to view more guides and the latest updates.

Finding and Collecting NinjaOne Log Files

Topic

This article describes the log files that NinjaOne components generate, where those files are located on managed endpoints, and how to collect them for troubleshooting purposes.

Environment

  • NinjaOne Endpoint Management
  • NinjaOne Mobile Device Management (MDM)
  • NinjaOne Remote and Quick Connect
  • NinjaOne OS Deployment

Description

After installation, NinjaOne components generate log files that record operational activity, errors, and diagnostic data for the services running on managed endpoints. When you encounter an issue, knowing where to find these files and how to collect them increases resolution speed and accuracy. This article consolidates log file locations for the NinjaOne agent and related components across supported operating systems.

Select a topic to continue:

Log File Locations

NinjaOne Agent

The NinjaOne agent writes log files to fixed locations on each supported operating system. The following table lists the log file locations by platform.

Operating SystemLog File Location
Microsoft WindowsC:ProgramDataNinjaRMMAgent
Apple macOS/Applications/NinjaRMMAgent/programdata
Linux/opt/NinjaRMMAgent/programdata/logs
Windows

The following table describes the key log files found in the Windows directory.

FileContents
NinjaRMMAgent_<date>_<time>.txtThis file records ongoing agent activity, including executed tasks, triggered conditions, installation events, and communications between the agent and NinjaOne servers. A new file is created each day or when the agent restarts. The 14 most recent files are retained.
NinjaRMMPatcher_<date>_<time>.txtThe patcher log records activity related to agent version updates and upgrade failures.
NinjaRMMSignal_<date>_<time>.txtThe agent writes distress signals to this file when it detects a potential problem, such as a crash or loss of connectivity.
njlink_<xxxxx>_<date-time>.logThis log captures Cloud RDP connection activity.
jsonoutput-agent.txtThis file contains hardware and software inventory data collected from the device and sent to NinjaOne servers, including OS details, installed software, network adapters, running services, and storage configuration.
jsonoutput-output.jsonNinjaOne uses this file to track the current pending, approved, and rejected OS patches on the device.
jsonoutput-hist-output-xxx.jsonThis file records OS patches that have been installed on the device.
jsonoutput-softwarepatchrecords2.jsonNinjaOne uses this file to track the current pending, approved, and rejected third-party software patches on the device.
jsonoutput-softwarepatch_history_2.jsonThis file records third-party software patches that have been installed on the device.
policyagent.config.*.jsonThese files store the policy settings applied to the device locally, covering areas such as patch management, antivirus, conditions, scheduled automations, and backup.
appevents.txtThis file contains the 500 most recent events from the Windows Application Event Log.
sysevents.txtThe System Event Log export contains the 500 most recent system events.
secevents.txtThe Security Event Log export contains the 500 most recent security events.
macOS
On macOS, the programdata folder is hidden by default. To reveal it, press Shift + Command + Period. If that shortcut does not work, run the following command in a Terminal session: defaults write com.apple.Finder AppleShowAllFiles true

The macOS programdata directory is organized into the following subfolders.

SubfolderContents
LogsAgent activity logs (NinjaRMMAgent_<date>_<time>.txt) and patcher logs (NinjaRMMPatcher_<date>_<time>.txt).
JsonoutputHardware and software inventory data collected from the device and sent to NinjaOne servers, along with patch records.
JsoninputRecords of scheduled automations and tasks sent to the device.
PolicyConfiguration files representing the policy settings applied to the device locally.
PatchPatch-related output files.
Linux

The /opt/NinjaRMMAgent/programdata directory is organized into the following subfolders.

SubfolderContents
LogsAgent activity logs (NinjaRMMAgent_<date>_<time>.txt) and patcher logs (NinjaRMMPatcher_<date>_<time>.txt).
JsonoutputHardware and software inventory data collected from the device and sent to NinjaOne servers, along with patch records.
PolicyConfiguration files representing the policy settings applied to the device locally.

NinjaOne Mobile Device Management (MDM)

In the NinjaOne MDM Assist app, tap the NinjaOne logo 7-9 times rapidly. The app will enter QA mode. Click the Network logs button, which will appear at the base of the screen. The app will display the logs in plain text. Click the Export logs button to export the logs to a sharing application.

NinjaOne Remote

NinjaOne Remote generates log files for its streaming and playback components. The following table lists the log file locations by operating system.

OSLog File Location
Windows
  • NCstreamer: Navigate to C:WindowsSystemTempncstreamer*.log
  • NCplayer: Navigate to C:Users[user_name]AppDataLocalTemp
macOSNCstreamer and NCplayer: Navigate to /Applications/NinjaRemote/logs NCPlayer. From there, navigate to the location stored in the $TMPDIR environment variable. (For example: /var/folders/v1/<<temp_folder_name>>/T)
Linux
  • NCstreamer: Navigate to /tmp/NCstreamer. From there, navigate to the location stored in the $TMPDIR environment variable. (for example: /tmp/ncstreamer5858_24_09_25_11_21_59.log).
  • NCplayer: Navigate to /tmp/NCPlayer. From there, navigate to the location stored in the $TMPDIR environment variable (for example: /tmp/ncplayer5858_24_09_25_11_21_59.log).

Quick Connect

NinjaOne Quick Connect writes log files to the following locations on Windows and macOS endpoints:

Operating SystemLog File Location
WindowsC:UsersPublicNinjaOneLLCQClogs
macOSUsers/Shared/NinjaRMM

OS Deployment

NinjaOne OS Deployment writes log files to the following location on Windows endpoints: C:ProgramDataNinjaOSDeploy

Collecting NinjaOne Agent Log Files

You can collect NinjaOne agent log files using the methods described below. The collection method differs by operating system.

Windows

To collect log files on a Windows endpoint, run the following command in an elevated command prompt. Replace [OrganizationName-Version] with the organization name and version number from your agent installation folder.

C:Program Files (x86)[OrganizationName-Version]ninjarmmagent.exe /collectlogs

Alternatively, if your agent is installed in the default location, run:

C:Program Files (x86)Ninjaoneninjarmmagent.exe /collectlogs

These commands instruct NinjaOne to save the collected log file to the following location:

C:WindowsTempninjalogs.cab

macOS

To collect log files on a macOS endpoint, zip the following folders from the NinjaRMM Agent → Programdata directory and send them to your support contact:

  • Logs
  • Policy
  • Jsonoutput
  • Jsoninput
  • Patch

Linux

To collect log files on a Linux endpoint, zip the following folders from the /opt/NinjaRMMAgent/programdata directory and send them to your support contact:

  • Logs
  • Policy
  • Jsonoutput

FAQ

Next Steps