Write a program in Python to parse a complex JSON string, extract specific security log events, and format them for an alerting pipeline.