Support Forum
The Forums are a place to find answers on a range of Fortinet products from peers and product experts.
Commanders
New Contributor

Issues with TCP Syslog Logs on FortiGate 60E (FortiOS v5.6.4)

 

Hello,

I am experiencing issues when sending logs from a FortiGate 60E device running FortiOS v5.6.4 to a Logstash server using syslog over TCP. Upon inspecting the packets reaching the log server, I can see the traffic arriving correctly, but the logs contain messages like:

 

2024-10-03T18:06:49.773760+00:00 169.254.106.82 <greeting />#015
2024-10-03T18:06:59.924314+00:00 169.254.106.82 <greeting />#015
2024-10-03T18:07:10.093023+00:00 169.254.106.82 <greeting />#015

 

Instead of the complete data I need (ACK, hostnames, etc.).

The same setup works fine on another FortiGate device sending logs via UDP, but in this case, I do not have the option to configure the transport mode as UDP on the Caseros device. I've tried different configurations, including adjusting the log severity and filters, but the issue persists.

My questions are:

  1. Is it possible to configure logs to be sent correctly over TCP in this version of FortiOS?
  2. If not, is there a way to force the use of UDP without the explicit option set mode udp?
  3. Any other suggestions for resolving this issue?

Here is my current configuration:

 

 

config log syslogd setting
set status enable
set server "10.102.139.28"
set reliable disable
set port 514
set facility local7
set source-ip "169.254.106.82"
set format csv
end

Any guidance would be greatly appreciated, as collecting the correct logs is crucial for my infrastructure.

Thank you for your help.

Best regards,
Agustín

1 REPLY 1
funkylicious
SuperUser
SuperUser

Hi,
set reliable disable , means UDP, enable means TCP

 

set reliable {enable | disable} Enable/disable reliable logging (RFC3195).

 

"jack of all trades, master of none"
"jack of all trades, master of none"
Announcements

Select Forum Responses to become Knowledge Articles!

Select the “Nominate to Knowledge Base” button to recommend a forum post to become a knowledge article.

Labels
Top Kudoed Authors