ConfigSentry

Collector Syslog Guide

How to trigger ConfigSentry collection from FortiGate configuration-change syslog events

Use this guide when your On-Premise Collector has syslog-triggered collection enabled. The collector listens for FortiGate configuration-change syslog messages and triggers a targeted collection for the appliance IP that sent the event.

1. Confirm the Collector Listener

On the collector machine, confirm the collector status shows the syslog listener as running and note the configured IP and UDP port. By default this is:

0.0.0.0:2216

If your collector is configured to listen on a specific address or port, use that value instead.

2. Multiple Collectors on One Host

On Linux and FreeBSD, each syslog-enabled collector on the same host needs its own non-conflicting local listener IP/UDP port. A Windows collector release that supports shared listener routing can safely share an overlapping configured endpoint: ConfigSentry automatically selects one listener and keeps the other collector's matching appliance on Scheduled collection while the overlap exists.

For example, one collector might use UDP 2216 and another UDP 2217. These are examples only: use the listener address and port configured for each collector, then point the corresponding FortiGate at that destination.

3. Configure FortiGate Syslog Destination

Point the FortiGate syslog configuration at the collector host and UDP port. Set the source IP to the same FortiGate address that ConfigSentry stores for the appliance, or to an address returned by that appliance hostname.

config log syslogd setting
  set status enable
  set server "x.x.x.x"
  set port 2216
  set source-ip y.y.y.y
end

x.x.x.x is the collector host. Replace 2216 with that collector's configured UDP listener port. y.y.y.y is the FortiGate source address and should match the appliance address ConfigSentry recognises. The source-ip command is available on newer FortiOS releases and may be unavailable when ha-direct is enabled.

4. Configure the Required Free-Style Filter

FortiGate should send only the configuration-change events needed by the collector. Use the free-style filter below:

config log syslogd filter
  config free-style
    edit 99
      set category event
      set filter "(logid 0100044546 0100044547)"
      set filter-type include
    next
  end
end

5. Relevant FortiGate Log IDs

The collector listens for these FortiGate configuration-change event log IDs:

  • 0100044547 – LOGID_EVENT_CONFIG_OBJATTR – object created / modified / deleted
  • 0100044546 – LOGID_EVENT_CONFIG_ATTR – global / system attribute changed

6. Example Event Payloads

Example object-change event:

date=2025-04-10 time=05:01:53 eventtime=1744286513150014241 tz="-0700" logid="0100044547" type="event" subtype="system" level="information" vd="root" logdesc="Object attribute configured" user="admin" ui="GUI(10.32.22.115)" action="Add" cfgtid=126746708 uuid="961e8b5a-1603-51f0-e0c5-204b0b600edc" cfgcomment="test" cfgpath="firewall.policy" cfgobj="8" cfgattr="name[testconfig]srcintf[port5]dstintf[port1]action[accept]srcaddr[all]dstaddr[all] schedule[always]service[ALL]nat[enable]" msg="Add firewall.policy 8"

Example system/global attribute-change event:

date=2025-04-10 time=05:23:12 eventtime=1744287792378243085 tz="-0700" logid="0100044546" type="event" subtype="system" level="information" vd="root" logdesc="Attribute configured" user="admin" ui="jsconsole(10.32.22.115)" action="Edit" cfgtid=821297153 cfgpath="system.global" cfgattr="admintimeout[5->120]" msg="Edit system.global "

7. What the Collector Does

The collector matches the actual UDP source address against the configured appliance address. A literal appliance IP is matched directly; a configured hostname remains supported through hostname resolution. Values contained inside the syslog payload, such as a device name or serial number, are not used as a substitute for source identity.

Events from a matched appliance can show syslog activity even when they are unrelated to configuration changes. Only supported configuration-change events from an eligible appliance can request a collection. The collector never guesses when the source cannot be matched safely, and cooldown protection suppresses duplicate work from a burst of changes. A successful collection may update an existing audit when the security posture has not changed; it does not guarantee a new report for every event.

On collectors that report Scheduled and Syslog-driven modes, a valid syslog message from an eligible, uniquely matched appliance can establish syslog receipt even if it is not a configuration-change event. This can select Syslog-driven mode while the listener is available. It does not request a configuration download unless it is one of the supported change events above, and it does not replace the initial full configuration collection.

A syslog-driven appliance requires a successful full configuration audit validation at least once every 24 hours after its last successful full validation. Syslog messages, polls and uploads alone do not extend that deadline. When validation is overdue or missing, ConfigSentry requests a full collection even while syslog messages continue. Queued or running work is tracked to avoid duplicate audits. An unchanged configuration can refresh validation without creating a new report. Syslog-driven appliances skip the short Scheduled poll expectation but still show genuinely overdue or missing full-audit safety. Scheduled appliances still show an overdue short poll even when full-audit safety is currently healthy. SSH trust approval is still required where applicable.

After setup, verify the first full configuration collection and the completed audit on the website. Syslog activity, a collector mode, or a successful upload alone does not confirm that an audit has completed. See Queued Audit Handling for processing states. Cooldown protection coalesces event bursts; do not assume that an unchanged configuration always avoids a device download or website processing.