socket

Configuration options for defining output sockets.

Options

name

Name of the socket. This is a required field.

Default value

n/a

Allowed values

Any name is allowed except agent

location

Path of the socket. This is a required field.

Default value

n/a

Allowed values

Any path is allowed.

mode

UNIX socket communication protocol.

Default value

udp

Allowed values

tcp, udp

prefix

The prefix is placed before the message.

Default value

n/a

Allowed values

Any string

Example of configuration

<socket>
  <name>custom_socket</name>
  <location>/var/run/custom.sock</location>
  <mode>tcp</mode>
  <prefix>custom_syslog: </prefix>
</socket>