2 Replies Latest reply on Sep 3, 2019 4:14 AM by Steven Hicks

    mrl rule

    Steven Hicks
      Share This:

      Hello All,

       

      My MRL rule won't convert host names as expected.

       

      # This rule will convert the hostname to UPPER CASE

       

      refine hostname_UPPERCASE:

      EVENT ($EV)

      where

      [ status: less_than CLOSED ]

       

      {$EV.mc_host = touppercase($EV.mc_host);

       

      }

      END

       

      Any suggestions please?

       

      ta

       

       

        • 1. Re: mrl rule
          Anatoly Gofman

          Hi

          Please try to use != or < instead of less_than.

           

          Regards

          Tolik.

          1 of 1 people found this helpful
          • 2. Re: mrl rule
            Steven Hicks

            Thanks Tolik,

             

            I used your suggestion successfully i both cases. I have since complied correctly using

             

            # This rule will convert the hostname to UPPER CASE

             

            refine hostname_UPPERCASE:

            EVENT($EV)

            where

            [ status: less_than CLOSED ]

             

            {$EV.mc_host = touppercase($EV.mc_host);

            }

             

            END

             

            I am using msend to test this small piece of code and as expected the upper case characters appear in the Presentation Server event console

             

            msend -n pncell_MYCELLNAME -a EVENT -m "MY TEST" -b mc_host="textconvertedtouppercase" -r MAJOR

             

            However this only works for the msend test.

             

            Perhaps there is a way to capture all incoming events using this rule you know of?

             

            ta