Technical Tip: FortiGate with HA cannot send syslog
Description
This article describes how to fix the issue when there is a FortiGate which cannot send syslog out properly with HA setting.
Scope
- FortiGate with HA setting.
- After the debugging is run and get the message: 'miglog socket connect(global-syslog) failed'.
Solution
- Run the debugging CLI commands to investigate the issue:
Debugging log.
From CLI.
This article describes how to fix the issue when there is a FortiGate which cannot send syslog out properly with HA setting.
Scope
- FortiGate with HA setting.
- After the debugging is run and get the message: 'miglog socket connect(global-syslog) failed'.
Solution
- Run the debugging CLI commands to investigate the issue:
# diagnose debug resetThen it may show the message 'miglog socket connect(global-syslog) failed'.
# diagnose debug disable
# diagnose debug console timestamp enable
# diagnose debug application miglogd -1
# diagnose debug enable
Debugging log.
2021-09-15 15:59:19 miglog_socket_set_interface()-221: Binded interface index: 55.Solution to fix the issue.
2021-09-15 15:59:19 <29555> __syslog_start_connection()-182: miglog socket connect(global-syslog) failed.
From CLI.
# config system ha
set ha-direct disable
end