AFAIK logevent doesn't parse "id", it doesn't parse anything actually.
You need to get the log argument with read_logdata() or read_logargv(), then use parse_loguser() on it to get the player name and then use get_user_index() to get the player's entity index which you can use on that function.