Monitor a logfile with Ops Mgr 2007

I saw a question about monitoring a logfile with Ops Mgr 2007. Here is a short step by step guide

  1. In the console, under Authoring, Management Pack Objects, Rules, create a new rule
  2. Choose to create a Alert Generating Rules/Event Based/Generic Text Log (Alert), click next
  3. Input a rule name and choose rule target, click next
  4. Input a directory, for example C:\, input a pattern, for example logfile.log, click next
  5. Input the following expression,
    Parameter Name = Params/Param[1]
    Operator = Matches wildcard
    Value = warning
    click next
  6. Configure a suitable alert and then click create

Please note that this rule is case sensitiv, so it will make difference between WARNING and warning.