Hello Filip Kelava,
Thank you for posting in our Q&A forum.
Based on the description "The machine is in a domain, but I need it to log locally.", you can use a local account on this machine to login to this machine, and try a local user account with wrong password to see if it helps.
If it does not word, check if you set "Legacy audit policy(Computer Configuration\Windows settings\security settings\local policies\audit policy)" OR “Advanced audit policy(Computer Configuration\Windows settings\security settings\Advanced Audit Policy Configuration)”
Please check:
1.If you have never configured any advanced audit policy before, then you configure the legacy audit policy.
2.If you have configured any advanced audit policy before, then you have configured the advanced audit policy.
3.Advanced audit policies will overwrite all legacy audit policies by default.
4.Did you configure audit policy via local machine or domain wide? If you configure audit policy via domain controller, whether you configure audit policy within "Default Domain Policy"?
5.If you configure audit policy via domain controller and configure audit policy within "non-Default Domain Policy (a custom GPO)", you should apply this GPO to this machine.
Hope the information above is helpful. If you have any question or concern, please feel free to let us know.
Best Regards,
Daisy Zhou
============================================
If the Answer is helpful, please click "Accept Answer" and upvote it.