Changing and viewing log location information by using REST Administration APIs
You can send log messages to a file or to a syslog server, and you can view current log location information by using Eclipse Amlen REST Administration APIs.
If you are sending log messages to a syslog server, then all logs will share the same syslog server IP, port and protocol. The protocol can be tcp or udp. Use a different syslog facility to separate messages by component. The LogLocation object cannot be deleted by using the REST API DELETE method. To change the log location, complete the following steps:
You can view log location information by using the Eclipse Amlen REST API GET method with the following Eclipse Amlen configuration URI:
http://<admin-endpoint-IP:Port>/ima/v1/configuration/LogLocation
The following example displays log location information by using cURL:
curl
-X GET http://127.0.0.1:9089/ima/v1/configuration/LogLocation
An example response to the GET method:
{
"Version": "v1",
"LogLocation": {
"DefaultLog": {
"LocationType": "file",
"Destination": "/var/messagesight/diag/logs/imaserver-default.log"
},
"ConnectionLog": {
"LocationType": "file",
"Destination": "/var/messagesight/diag/logs/imaserver-connection.log"
},
"AdminLog": {
"LocationType": "file",
"Destination": "/var/messagesight/diag/logs/imaserver-admin.log"
},
"SecurityLog": {
"LocationType": "file",
"Destination": "/var/messagesight/diag/logs/imaserver-security.log"
},
"MQConnectivityLog": {
"LocationType": "file",
"Destination": "/var/messagesight/diag/logs/imaserver-mqconnectivity.log"
}
}
}