log analyzer rules to create alerts based on a variable

I have error logs with entries like ErrorCode="integer value". Is there a way to create a rule to generate an alert for each error code.

Example: ErrorCode= 123 will create an alert and when ErrorCode= 234 appears in the log file it should create another alert.

I don't want to create multiple rules for each ErrorCode.