The following examples show how you can use the enrich event action to enrich events with information from a Java method when search patterns match. The examples uses CA CMDB and CA Spectrum enrichments provided with the Mid-tier connector. The enrichments could be useful in CA SOI for situations such as the following:
Important! The enrichments use .jar files that are only available with the Mid-tier connector. Deploy these provided enrichments on the Mid-tier connector only.
Example: Enrich events with location information from CA CMDB
This example enriches events with location information stored in CA CMDB. The information could help you create alert queues by location or add location-based criteria to escalation policy.
Note: For CA CMDB r12 and above, use location.address1 instead of location.address.
This parameter configuration queries the defined CA CMDB instance for CIs with a dns_name property that matches the event AlertedMdrProdInstance property value and returns the location.address and location.city properties of the matching CI. It uses substitution strings for the required CA CMDB credentials (referencing the credentials entered on the previous page) to avoid entering the information unencrypted.
Note: For CA CMDB r12 and above, use location.address1 instead of location.address.
This enrichment queries the defined CA CMDB instance for the location.address and location.city properties of the CI with a dns_name property value that matches the event AlertedMdrProdInstance property value. If there is no match, the enrichment does not occur. If there is a match, the location.address and location.city values are returned from the matching CI and assigned to the User Attribute 1 and User Attribute 2 properties in the enriched event.
For example, consider an event with the AlertedMdrProdInstance value of server4. The server4 value matches a CA CMDB CI DNS name. The location.address and location.city values in the matching CI are 453 Elm St and Los Angeles, and these values appear in the enriched event for User Attribute 1 and User Attribute 2.
http://cmdbserver:8080/CAisd/pdmweb.exe?OP=SEARCH+FACTORY=nr+SKIPLIST=1+QBE.EQ.id=${pattern1.AlertedMdrProdInstance}
Example: Enrich events with CA Spectrum model attributes
This example enriches events with model attributes stored in CA Spectrum. The information could help you add CA Spectrum-specific information to CA SOI services.
Note: This example works with CA Spectrum r9.2.
This parameter configuration queries the defined CA Spectrum server for models with a name that matches the AlertedMdrProdInstance property value and returns the owner and organization properties of the matching model. You can enter the CA Spectrum hex codes for any model attribute.
This enrichment queries the defined CA Spectrum server for the owner and organization attributes of the model with a name that matches the AlertedMdrProdInstance property value. If there is no match, the enrichment does not occur. If there is a match, the owner and organization values are returned from the matching CI and assigned to the User Attribute 1 and User Attribute 2 properties in the enriched event.
For example, consider an event with the AlertedMdrProdInstance value of server4. The server4 value matches a CA Spectrum model name. The owner and organization values in the matching CI are Dave and Spectrum, and these values appear in the enriched event for User Attribute 1 and User Attribute 2.
|
Copyright © 2013 CA.
All rights reserved.
|
|