Updated event log query