RawSyslogForwarder
RawSyslogForwarder - Create
Creates a new Raw Syslog Forwarder
POST
https://api-server-host-name/configapi/{pool_UUID}/{logpoint_identifier}/RawSyslogForwarderParameters
device_config
-
[json]
Json containing information of the devices. LogPoint collects and forwards the raw syslog messages from the devices. Either can be absent or following parameters must be provided to define device_config. device_group : Id of devicegroup. Value should be an empty string when no device_group is present for the devices. Mandatory field. include_all_devices : Can be either true or false . devices should not be present in the request when include_all_devices is true. Optional field devices : list of devices. devices should be present and non empty when include_all_devices is either not present or false. Value should be present when device_group is empty. . Optional Field
pattern
Pattern
String
Provide the regex Pattern. Only the logs matching the specified pattern are forwarded. For example: '[ 0-9 ]+:' forwards log only if any digit is present in logs. Optional Field
remote_syslog_collectors
Remote Target
[String]
ID of the Targets where the logs are to be forwarded. Mandatory Field
Request Example
{
"data": {
"device_config": [
{
"device_group": "60a4a72c2d76c9046d54a3b6",
"include_all_devices": true
},
{
"device_group": "40a4a72d2d76c9045d54a3b5",
"devices": [
"2344a72d2d76c9045d54a3c6",
"5674a72d2d76c9045d54a3d7"
]
}
],
"pattern": "[ 0-9 ]+",
"remote_syslog_collectors": [
"60a4a72c2d76c9046d54a3b6",
"31a4a72c2e66c9046d54a3c2"
]
}
}Success Response
RawSyslogForwarder - CreateTarget
Creates a new Target
POST
Parameters
enable_udp
Protocol
String
Accepts either "on" or "off" values only. "on" implies UDP while "off" implies TCP being selected as protocol for sending syslogmessage. Mandatory Field
ip
IP
String
Ip address or hostname of the target device. Mandatory Field
name
Name
String
Name of the target. Mandatory Field
port
Port
int
Port number for the input port of the target. Mandatory Field
Request Example
Success Response
RawSyslogForwarder - Edit
Updates the existing configuration of the Raw Syslog Forwarder with the given id.
PUT
Parameters
device_config
-
[json]
Json containing information of the devices. LogPoint collects and forwards the raw syslog messages from the devices. Either can be absent or following parameters must be provided to define device_config. device_group : Id of devicegroup. Value should be an empty string when no device_group is present for the devices. Mandatory field. include_all_devices : Can be either true or false . devices should not be present in the request when include_all_devices is true. Optional field devices : list of devices. devices should be present and non empty when include_all_devices is either not present or false. Value should be present when device_group is empty. . Optional Field
id
-
String
Existing Raw Syslog Forwarder id. Obtain the value of the required Raw Syslog Forwarder id using RawSyslogForwarder - List API. Mandatory Field
pattern
Pattern
String
Pattern of logs to be collected and forwarded. Optional Field
remote_syslog_collectors
Remote Target
[String]
ID of the Targets where the logs are to be forwarded. Mandatory Field
Request Example
Success Response
RawSyslogForwarder - EditTarget
Edits the target settings with the given id
PUT
Parameters
enable_udp
Protocol
String
Accepts either "on" or "off" values only. "on" implies UDP while "off" implies TCP being selected as protocol for sending syslogmessage. Mandatory Field
id
-
String
Existing Target id. Obtain the value of the required Target id using Target - ListTarget API. Mandatory Field
ip
IP
String
Ip address or hostname of the target device. Mandatory Field
name
Name
String
Name of the target. Mandatory Field
port
Port
int
Port number for the input port of the target. Mandatory Field
Request Example
Success Response
RawSyslogForwarder - Get
Fetches the Raw Syslog Forwarder with the given id.
GET
Parameters
id
-
String
The id of the Raw Syslog Forwarder to fetch.
Success Response
RawSyslogForwarder - GetTarget
Fetches the target with the given id
GET
Parameters
id
-
String
Id of the target whose information you want to fetch
Success Response
RawSyslogForwarder - List
Lists all available Raw Syslog Forwarder.
GET
Success Response
RawSyslogForwarder - ListTarget
Lists all Targets in the Fabric-enabled Logpoint
GET
Success Response
RawSyslogForwarder - Trash
Delete the Raw Syslog Forwarder with given id.
DELETE
Parameters
id
-
String
Existing Raw Syslog Forwarder id. Obtain the value of the required Raw Syslog Forwarder id using RawSyslogForwarder - List API. Mandatory Field
Success Response
RawSyslogForwarder - TrashTarget
Deletes the Target with the given id
DELETE
Parameters
id
-
String
Existing Target id. Obtain the value of the required Target id using Target - ListTarget API. Mandatory Field
Success Response
Last updated
Was this helpful?