Get/Set Syslog Options
- Last Updated: October 14, 2024
- 1 minute read
- LoadMaster
- Multi-Tenant LoadMaster
- Documentation
The get/set commands can be used to retrieve or configure the syslog options.
Example Command
Set (Configure):
curl -k "https://<Username>:<Password>@<MTIPAddress>/mtaccess/set?param=syslogwarn&value=<HostIPAddress>"Get (Retrieve):
curl -k "https://<Username>:<Password>@<MTIPAddress>/mtaccess/get?param=syslogwarn"Available Parameters
|
Parameter |
Parameter Type |
Parameter Description |
Mandatory |
|---|---|---|---|
|
param |
String |
The name of the parameter to be retrieved/configured. The parameters for the syslog settings are: syslogemergency - host(s) that will receive the EMERGENCY events only. syslogcritical - host(s) that will receive the EMERGENCY and CRITICAL events. syslogerror - host(s) that will receive the EMERGENCY, CRITICAL and ERROR events. syslogwarn - host(s) which will receive the EMERGENCY, CRITICAL, ERROR and WARNING events. syslognotice - host(s) that will receive the EMERGENCY, CRITICAL, ERROR, WARNING and NOTICE events. sysloginfo - host(s) that will receive ALL events. |
Yes |
|
value |
String |
The value to set the parameter to. In this case, specify the host(s) that will receive the events. Entries must be comma separated. Up to 10 entries are supported. |
Yes - if setting. No - if getting. |
Example Output
Set (Configure):
<?xml version="1.0" encoding="ISO-8859-1"?><Response stat="200" code="OK"><Success>Command completed ok</Success></Response>Get (Retrieve):
<Response stat="200" code="ok"><Success><Data><syslogwarn>172.21.122.220</syslogwarn></Data></Success></Response>