Thank you for supporting the Cloud Customer Connect Community in 2024. It's a gift to work with you!

Look back
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

How do I specify a literal "*" when creating a rule for an OCI event

edited Dec 19, 2024 1:17AM in OCI - General

Summary: When creating a condition for a rule,

When creating a Rule for an Event in OCI (eg Application Integration -> Events Service -> Rules), or from the CLI as per https://docs.oracle.com/en-us/iaas/tools/oci-cli/3.51.0/oci_cli_docs/cmdref/events/rule/create.html, wildcard matching is supported with the asterisk (*) character. But how do I escape (*), so that the condition is looking for a literal "*" and not treating it as a wildcard.

eg, the following rule logic

MATCH event WHERE (eventType EQUALS ANY OF (com.oraclecloud.datasafe.generateauditalert)AND (commandText MATCHES ANY OF (*PHONE_TYPE*,*PHONE_NUMBER*)))

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!