I have installed OEM 12c Cloud Control(R1). I want to monitor a log file in OEM like if the particular log file contains the string "ERROR" I want to send create an incident and send notification. Can anyone please suggest me how can I achieve this?
You can define Incident Rules that enable you to manage the automation and implementation of operational practices that manage events, incidents, and problems.
A rule consists of the selection criteria to identify the incidents the rule applies to, the conditions when the rule should be applied, and actions to be taken in response to the incident.
Configuring notification rules in 12c is different from earlier releases.
The concept and function of notification rules has been replaced with a two-tier system consisting of Incident Rules and Incident Rule Sets :
1. Incident Rules: Operate at the lowest level granularity (on discrete events) and performs the same role as notification rules from earlier releases.
By using incident rules, you can automate the response to incoming incidents and their updates.
A rule contains a set of automated actions to be taken on specific events, incidents or problems.
The actions taken are for example : sending e-mails, creating incidents, updating incidents, and creating tickets.
2. Incident Rule Set: A rule set is a collection of rules that applies to a common set of objects, for example, targets, jobs, and templates.
To help you to achieve the Notification Rules configuration, refer those notes :
How To Configure Notification Rules in 12C Enterprise Manager Cloud Control ? Doc ID 1368036.1
EM12c How to Add and Configure Email Addresses to EM Administrators and Update the Notification Schedule ?Doc ID 1368262.1
EM12c How to Subscribe or Unsubscribe for Email Notification for an Incident Rule Set ?Doc ID 1389460.1
One more thing on the log file monitoring, you can actually also setup an alert for a wild card regex directly in the normal metric thresholds for a WebLogic Server target. If you go to the list of all metrics under "Monitoring" for a WebLogic Server target and show "All Metrics", you will see a section called "Log File Monitoring" that can be enabled and then allows you to match patterns and alert on that pattern matching. These will then show up as alerts/incidents like a normal metric alert.
Are you referring OEM 12c Cloud Control(R2) ? I am using OEM 12c Cloud Control 12c(R1) and think this metric is not avaialable with this release I mean with OEM 12c Cloud Control(R1). Can you please confirm once?