SendUldp

package
v0.0.0-...-36f611e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 18, 2019 License: BSD-3-Clause Imports: 11 Imported by: 0

README

SendULDP

This activity allows you to send log messages to LMI using ULDP (realtime syslog messages).

Installation

Flogo Web

Add the activity using its GitHub reference

Flogo CLI
flogo add activity <TBD>

Schema

Inputs and Outputs:

{
 "inputs":[
    {
      "name": "host",
      "type": "string",
      "value": "",
      "required" : true
    },
    {
      "name": "port",
      "type": "integer",
      "value": 5515,
      "required" : false
    },
    {
      "name": "origin",
      "type": "string",
      "value": null,
      "required": false
    },
    {
      "name": "deviceDomain",
      "type": "string",
      "value": null,
      "required": false
    },
    {
      "name": "appName",
      "type": "string",
      "value": null,
      "required": false
    },
    {
      "name": "msgId",
      "type": "string",
      "value": null,
      "required": false
    },
    {
      "name": "flowInfo",
      "type": "boolean",
      "value": "false"
    },
    {
      "name": "facility",
      "type": "integer",
      "value": 16,
      "required": true
    },
    {
      "name": "severity",
      "type": "integer",
      "value": 6,
      "required": true
    },
    {
      "name": "flattenJson",
      "type": "boolean",
      "value": "false",
      "required": false
    },
    {
      "name": "message",
      "type": "string",
      "value": "",
      "required" : true
    }
}

Settings

Setting Required Description
host True The hostname/IP of the Syslog receiver
port False The port of the Syslog receiver (default 514)
origin False The IP address to use in ULDP as message origin (defaults to host IP)
deviceDomain False The LMI device domain to use
appName False The app name to put in the Syslog header
msgId False The message ID to put in the Syslog header
flowInfo False If set to true this will append the flow information to the log message
flattenJson False If true, assumes the message is a JSON payload and flattens it to CSV
message True The body of the message to send

Remarks

There is no support for secure ULDP (TLS) for now To work, the ULDP for GO library has to be added as a contribution (available as ZIP package in LMI supplemental disk)

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewActivity

func NewActivity(metadata *activity.Metadata) activity.Activity

NewActivity creates a new activity

Types

type ActivitySendUldp

type ActivitySendUldp struct {
	// contains filtered or unexported fields
}

ActivitySendSyslog implementation

func (*ActivitySendUldp) Eval

func (a *ActivitySendUldp) Eval(context activity.Context) (done bool, err error)

Eval implements activity.Activity.Eval

func (*ActivitySendUldp) Metadata

func (a *ActivitySendUldp) Metadata() *activity.Metadata

Metadata implements activity.Activity.Metadata

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL