This is a solution for security logs not being generated.
set security policies from zone trust to zone untrust policy permit-all then log session-init
If all symptoms match, there's an issue with the "rtlogd" daemon (security-log daemon).
Restart the daemon with "restart security-log" if, after running the command you get the following output "warning: security-log subsystem has been disabled by the user", it means the daemon was disabled in the config, specifically the "system processes" deleting the "disable" command will make the daemon come back up and fix the issue.