Logging Host

Configures, modifies, and retrieves logging host configuration. The URI to configure data for remote log servers is:

/system/logging

To create logging host configuration using POST method:

/system

To modify logging host configuration using PATCH method:

/system/logging       

To delete logging host configuration in the system:

/system/logging   

Supported HTTP Operations

GET method

URL: https://<host>/restconf/data/system/logging
Request body: None
Response body:     
{
   "openconfig-system:logging" : {
      "remote-servers" : {
         "remote-server" : [
            {
               "config" : {
                  "remote-port" : 514,
                  "host" : "10.10.10.10"
               },
               "host" : "10.10.10.10"
            },
            {
               "config" : {
                  "remote-port" : 2345,
                  "host" : "6001::1"
               },
               "host" : "6001::1"
            }
         ]
      }
   }
}       

PUT method

URL: https://<host>/restconf/data/system/logging    
Request body:
 {
   "openconfig-system:logging" : {
      "remote-servers" : {
         "remote-server" : [
            {
               "config" : {
                  "remote-port" : 1000,
                  "host" : "100.100.100.100"
               },
               "host" : "100.100.100.100"
            },
            {
               "config" : {
                  "remote-port" : 3000,
                  "host" : "3001::1"
               },
               "host" : "3001::1"
            },
            {
               "config" : {
                  "remote-port" : 2000,
                  "host" : "120.120.120.120"
               },
               "host" : "120.120.120.120"
            },
            {
               "config" : {
                  "remote-port" : 5000,
                  "host" : "5001::1"
               },
               "host" : "5001::1"
            },
            {
               "config" : {
                  "remote-port" : 6000,
                  "host" : "160.160.160.160"
               },
               "host" : "160.160.160.160"
            },
            {
               "config" : {
                  "remote-port" : 7000,
                  "host" : "7001::1"
               },
               "host" : "7001::1"
            }
         ]
      }
   }
}
Response body: None    

PATCH method

URL: https://<host>/restconf/data/system/logging   
Request body:
{
   "openconfig-system:logging" : {
      "remote-servers" : {
         "remote-server" : [
            {
               "config" : {
                  "remote-port" : 1000,
                  "host" : "50.50.50.50"
               },
               "host" : "50.50.50.50"
            }
         ]
      }
   }
}
Response body: None    

DELETE

URL: https://<host>/restconf/data/system/logging    
Request body: None    
Response body: None