Syslog Message Template

SOTI MobiControl supports both RFC 3164 and RFC 5424 as message formats. We recommend using RFC 5424 whenever feasible.

Log messages are sent to the syslog server using the following template:



DateTime:%DateTime%, LogCategory:%LogCategory%, LogSeverity:%LogSeverity%, Event:%Event%, Message:%Message%, DeviceID:%DeviceID%, DeviceName:%DeviceName%, Server:%Server%, UserName:%UserName%
			
Macro Description
%DateTime% Is replaced by the date and time of the event
%LogCategory% Is replaced by the category that the event relates to:
  • Manager
  • Device
  • Network
  • Jobs
  • Database
  • User
%LogSeverity% Is replaced by the severity of the event
  • Information
  • Warning (indicates a potential problem)
  • Error (indicates a serious problem)
%Event% Is replaced by a short description of the event being logged
%Message% Is replaced by a message that is specific and related to the event that occurred.
%DeviceID% Is replaced by the device ID of the affected device. Device IDs are allocated by SOTI MobiControl.
%DeviceName% Is replaced by the device name of the affected device. Device names are allocated by SOTI MobiControl.
%Server% Is replaced by the name of the management server or deployment server.
%UserName% Is replaced by the name of the user creating the event, system administrator, device user, technical user.

Customizing Syslog Message Templates

You can create your own templates for syslog messages. Add your new syslog message template as a new entry to the Settings table in database with the key =Syslog.MessageTemplate. Preserve the formatting of the macros (example %macro%) and use ":" as the delimiter.



=Syslog.MessageTemplate : { "Enter your message template here" }