Hi,
There is no need for explicit configuration under "protocol ospf", however if you have enabled "notice" severity under syslog, you will see the OSPF events in the corresponding file.
For example if you enable below syslog, you will be OSPF event syslog in file messages:
[edit] show system
syslog {
file messages {
any notice;
}
}
Example:
rpd[15029]: RPD_OSPF_NBRDOWN: OSPF neighbor 20.8.1.0 (ae0) state changed from Full to Init due to 1WayRcvd (event reason: neighbor is in one-way mode)
rpd[1359]: RPD_OSPF_NBRDOWN: OSPF neighbor 10.8.1.1 (realm ospf-v2 xe-1/3/1.0 area 0.0.0.0) state changed from Full to Down due to InActiveTimer (event reason: BFD session timed out and neighbor was declared dead)
rpd[2986]: RPD_OSPF_NBRDOWN: OSPF neighbor fe80::280:42ff:fe11:e415 (so-0/0/0.10) state changed from Full to Down due to KillNbr (event reason: interface went down)
Regards
Surya