Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
A sample outbound template to send syslog messages (to a syslog endpoint)
[ Edited ]Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2019 07:49 PM - edited 06-17-2019 07:50 PM
2616     0
The template logs variables into the debug log and send a simple syslog message to an endpoint.
{ "name": "Send syslog", "comment": "Send Syslog message", "type": "SYSLOG_EVENT", "version": "5.0", "event_type": ["RPZ", "TUNNEL", "LEASE", "NETWORK_IPV4", "RANGE_IPV4", "FIXED_ADDRESS_IPV4", "HOST_ADDRESS_IPV4", "NETWORK_IPV6", "RANGE_IPV6", "FIXED_ADDRESS_IPV6", "HOST_ADDRESS_IPV6", "DNS_RECORD", "DNS_ZONE" ], "action_type": "Send syslog", "content_type": "application/json", "vendor_identifier": "Syslog", "quoting": "XML", "steps": [ { "name": "Debug", "operation": "NOP", "body": "${XC:DEBUG:{H:}}${XC:DEBUG:{E:}}${XC:DEBUG:{I:}}${XC:DEBUG:{L:}}${XC:DEBUG:{S:}}${XC:DEBUG:{P:}}${XC:DEBUG:{R:}}${XC:DEBUG:{RH:}}${XC:DEBUG:{UT:}}" }, { "name": "Send Syslog", "operation": "SYSLOG_SEND_EVENT", "body": "${E::event_type} ${E::object_type} ${E::operation_type}" } ] }
BR,
Vadim
Labels: