Configure Rsyslog Forwarder via Director Console API
A Raw Syslog Forwarder (RSF) collects logs from different sources and forwards the raw messages to a remote server. The RawSyslogForwarder API allows you to configure and manage raw syslof forwarders and target devices via Director Console API.
Follow the steps mentioned below to forward raw messages from a LogPoint via Director Console API:
Create a Target
Execute the RawSyslogForwarder - CreateTarget API in the Director Console API.
Add the Target to a Device
Execute the RawSyslogForwarder - ListTarget API to obtain the value of the id parameter.
Execute the RawSyslogForwarder - Create API with the required parameters.
View the Logs in the Target
View the forwarded logs in the target device.
Sample API Requests and Responses for attaching a device in the LogPoint Collector (LPC) setup
Create a Target
Execute the RawSyslogForwarder - CreateTarget API in the Director Console API.
Config API: POST https://api-server-host-name/configapi/{pool_UUID}/{logpoint_identifier}/RawSyslogForwarder/Target { "data": { "ip": "10.45.9.18", "enable_udp": "on", "name": "target_1", "port": 514 } } Response: { "status": "Success", "message": "monitorapi/v1/336294dbd0f141ce86cb925bca74133a/41b5b7fffa6c4e3cb6bc6d799a5ee6e5/orders/71c23e11-a25b-4688-a88d-275e14251d6c" } Monitoring API: GET https://api-server-host-name/monitorapi/v1/336294dbd0f141ce86cb925bca74133a/41b5b7fffa6c4e3cb6bc6d799a5ee6e5/orders/71c23e11-a25b-4688-a88d-275e14251d6c Response: { "request": {}, "logpoint_identifier": "ea92ab66cae24e4e9fe22189468056f8", "pool_uuid": "a068f9a59fbc424db87f59ad1f4de86d", "response": { "success": true, "message": "Syslog Remote Target Added." } }
Add the Target to a Device
Execute the RawSyslogForwarder - ListTarget API to obtain the value of the id parameter.
Execute the RawSyslogForwarder - Create API with the required parameters.
View the forwarded logs in the Target
View the forwarded logs in the target device.
Last updated
Was this helpful?