If statement is failing to match for certain values.. pls help

You are testing [system][syslog][hostname], not [syslog][system][hostname]