mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
Add LF to the end of syslog message when sending over TCP
This commit is contained in:
parent
841b476f59
commit
683a4a727b
1 changed files with 1 additions and 1 deletions
|
|
@ -110,7 +110,7 @@ function syslog.sendMessage(settings, notif, severity, syslog_format)
|
|||
msg = "<"..prio..">"..date.." "..tag.."["..pid.."]: "..msg
|
||||
|
||||
if settings.protocol == 'tcp' then
|
||||
ntop.send_tcp_data(settings.host, settings.port, msg, 1 --[[ timeout (msec) --]] )
|
||||
ntop.send_tcp_data(settings.host, settings.port, msg.."\n", 1 --[[ timeout (msec) --]] )
|
||||
else
|
||||
ntop.send_udp_data(settings.host, settings.port, msg)
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue