socket
Configuration options for defining output sockets.
Note
The Wazuh agent ignores <socket> blocks received through the centralized configuration (agent.conf) unless logcollector.remote_commands=1 is set in the /var/ossec/etc/local_internal_options.conf file of the agent. It logs Remote sockets are not accepted from the manager for each ignored socket. Sockets defined in the local ossec.conf file aren't affected.
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 |
tcp |
Allowed values |
tcp, udp |
prefix
The prefix is placed before the message.
Default value |
n/a |
Allowed values |
Any string |
Default configuration
<socket>
<name>custom_socket</name>
<location>/var/run/custom.sock</location>
<mode>tcp</mode>
<prefix>custom_syslog: </prefix>
</socket>