Log Collection and Submission
A Support Application 6 feature that collects device logs and uploads them for remote troubleshooting.
Overview
Log Collection and Submission gathers device and third-party application logs, including OEM diagnostic logger output, and uploads them to Azure Blob Storage and/or Splunk, or hands them off to sibling BlueFletch apps. This allows a help-desk ticket to include real log data without physically retrieving the device.
By default, log-file submission is disabled.
User Guide
To configure Log Collection and Submission, complete the following steps:
Set submitLogs.enabled to true to enable log-file submission.
Configure the upload destination: set logUrl for a host URL,loggingConnection and loggingContainer for Azure Blob Storage, or splunkApiLogPath and splunkLogAuth for Splunk log uploads.
Optionally enable scheduled uploads by settingsubmitLogs.alarmEnabled to true and configuringsubmitLogs.multipleHoursOfDayToSend.
Optionally enable boot-time uploads by settingsubmitLogs.sendOnBoot to true.
Configure submitLogs.directories[] to specify per-app log file globs to collect.
If using Zebra RxLogger or Honeywell HxLogger, setrxLogger.loggingDuration to control how long logging stays enabled before auto-revert.
Configuration
Enabling Log Submission
To enable log-file submission, set submitLogs.enabled to true:
Configuring the Upload Destination
Set logUrl for a host URL, or loggingConnection andloggingContainer for Azure Blob Storage:
To upload logs to Splunk, set splunkApiLogPath andsplunkLogAuth:
Configuring Scheduled Uploads
To enable scheduled (alarm-driven) log uploads, setsubmitLogs.alarmEnabled to true and specify the hours to run:
Configuring Boot-Time Uploads
To upload logs on device boot, set submitLogs.sendOnBoot to true:
Configuring Log Directories
Set submitLogs.directories[] to specify per-app log file globs to collect. Each entry includes application, location, files (regex), and an optional extractor (currently only rxloggercsvis supported):
Configuring RxLogger/HxLogger Auto-Revert
Set rxLogger.loggingDuration to the number of minutes RxLogger or HxLogger stays enabled before auto-revert:
This table provides the settings for the Log Collection and Submission feature.
logUrl
String
-
Host URL used when submitting device application logs
loggingConnection
String
-
Azure Blob Storage connection string
loggingContainer
String
-
Azure Blob Storage container name
splunkApiLogPath
String
-
Splunk collector path for device log uploads (distinct from the event API path)
splunkLogAuth
String
-
Splunk auth token used specifically for log submission
rxLogger.loggingDuration
Integer
-
Minutes RxLogger/HxLogger stays enabled before auto-revert
submitLogs.enabled
Boolean
false
Enables log-file submission
submitLogs.alarmEnabled
Boolean
false
Enables scheduled (alarm-driven) log uploads
submitLogs.sendOnBoot
Boolean
false
Upload logs on device boot
submitLogs.multipleHoursOfDayToSend
String
-
Comma-separated hours (0-23, device local time) to run scheduled uploads
submitLogs.directories[]
Array
-
Per-app log file globs to collect: application, location, files (regex), optional extractor (currently only rxloggercsv is supported)
Error Handling
No logUrl/Azure/Splunk log destination configured
Zip saved to Downloads folder (SavedLocally)
User/technician manually retrieves the file
Network unavailable during upload
NetworkFailure result
Re-run submission when connectivity returns; no automatic background retry was found for this specific pipeline (unlike the generic event queue)
HTTP error from destination HttpError result Check destination credentials/URL
HttpError result
Check destination credentials/URL
Troubleshooting
If you encounter issues with Log Collection and Submission, check the following:
Log submission reports SavedLocally unexpectedly.
Resolution Steps:
Check whether
logUrl,loggingConnection/loggingContainer, or the Splunk log fields (splunkApiLogPath,splunkLogAuth) are populated in the effective config.If none are set, this is expected behavior, not a bug - the zip will be in the device Downloads folder.
RxLogger/HxLogger doesn't stop.
Resolution Steps:
Ensure the
SCHEDULE_EXACT_ALARMpermission is granted. This is required for the auto-revert timer (RevertSystemLoggerAlarmReceiver) to fire.Check whether the logging duration (
rxLogger.loggingDuration) was configured or left at a default that is longer than expected.
Putting It All Together
For the example described above, the full configuration for the Log Collection and Submission feature is as follows:
Last updated