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

Need command to activate syslog local traffic logging through fortimanager.

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

 

Local traffic logging.png




AW
AW
3 REPLIES 3
AEK
SuperUser
SuperUser

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
AEK
akshaywaghm
New Contributor II

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.

AW
AW
Toshi_Esumi

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 

Announcements
Check out our Community Chatter Blog! Click here to get involved
Labels
Top Kudoed Authors