ReceiveSyslog

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: 10 Imported by: 0

README

Receive Syslog trigger

This trigger receives syslog messages.

installation

flogo install github.com/TIBCOSoftware/lmi-flogo-collectors/ReceiveSyslog

Settings

Trigger
Setting Description
protocol protocol to use, only tcp is supported at the moment
port port to bind for listening to incoming syslog messages
Handler
Setting Description
regex Filter messages (not implemented yet)

Schema

name type Description
body string The whole message received
severity integer The severity
facility integer The facility
sourceIP string The source of the syslog connection
source string The source from the syslog header
eventTime long The time of the message as a UNIX timestamp
message string The syslog message without its header

Notes

Only Syslog in RFC 3164 format is properly supported right now

Documentation

Index

Constants

View Source
const DATE_FORMAT_SYSLOG_3164 = "Jan 02 15:04:05"

Variables

This section is empty.

Functions

func NewFactory

func NewFactory(md *trigger.Metadata) trigger.Factory

NewFactory create a new Trigger factory

Types

type ServerTCP

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

func (*ServerTCP) Start

func (s *ServerTCP) Start() error

func (*ServerTCP) Stop

func (s *ServerTCP) Stop() error

type SyslogFactory

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

SyslogFactory Syslog Trigger factory

func (*SyslogFactory) New

func (t *SyslogFactory) New(config *trigger.Config) trigger.Trigger

New Creates a new trigger instance for a given id

type SyslogTrigger

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

func (*SyslogTrigger) Initialize

func (t *SyslogTrigger) Initialize(ctx trigger.InitContext) error

func (*SyslogTrigger) Metadata

func (t *SyslogTrigger) Metadata() *trigger.Metadata

Metadata implements trigger.Trigger.Metadata

func (*SyslogTrigger) Start

func (t *SyslogTrigger) Start() error

func (*SyslogTrigger) Stop

func (t *SyslogTrigger) Stop() error

Stop implements util.Managed.Stop

Jump to

Keyboard shortcuts

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