Skip to main content
akshaywaghm
New Member
July 23, 2025
Question

Need command to activate syslog local traffic logging through fortimanager.

  • July 23, 2025
  • 1 reply
  • 635 views

We have 242 devices we need to enable local traffic logging option of syslog through Forti manager.

 

Local traffic logging.png




1 reply

AEK
SuperUser
SuperUser
July 23, 2025

Did you try with scripts?

FMG > Device Manager > Scripts > Create New

  • write the script: config log syslogd ...
  • Run on: Device Database

Hope it helps.

AEK
akshaywaghm
New Member
July 23, 2025

We have created the script & its working ,but we need to enable local traffic logging option of syslog I have marked specific option in image which we need to enable.

Toshi_Esumi
SuperUser
SuperUser
July 23, 2025

The CLI to get that setting you showed in GUI is:
config log setting
  set local-in-allow disable
  set local-in-deny-unicast disable

  set local-in-deny-broadcast disable

  set local-out enable
end

And you could push this via a script or CLI template. But changes made by script might not stick when you swap the hardware with a new one. I recommend CLI template then sync it with both device DB and remote device config.

However, I believe this setting is default values after factory reset. Isn't this set already at those FGTs you manage?

Toshi