How to create and edit a dynamic enrichment source file
Before you enable a dynamic enrichment policy, you must import or enter the data that you want to use for enrichment into a data file. You can import the enrichment data into any delimited flat file; however, BMC recommends importing the data into a .csv file and using Microsoft Excel to view and manipulate the contents of the file. The spreadsheet format of Microsoft Excel makes it easier to view and manipulate the information in the file.
You can use the sample data enrichment files provided with the product as a guide to set up your own data enrichment source files. The sample files are located in the installationDirectory\pw\admin\etc\samples directory. For a list of sample files provided with the product, see Sample dynamic enrichment source files.
Before you begin
If you are referencing a timeframe in your dynamic enrichment source file, you must ensure that the timeframe that you are referencing already exists. If the timeframe you want to reference does not exist, you must define it as described in How-to-create-a-new-local-timeframe.
To create a dynamic enrichment source file
- In Microsoft Excel, create a new file and save it as type .csv.
In each column of the spreadsheet, enter information that corresponds to each match value and output value that is included in your dynamic enrichment policy.
- Save and close the file.
To edit a sample dynamic enrichment source file
- Open one of the sample data source files included with the product located in the installationDirectory\pw\server\admin\etc\samples directory.
Import or enter information specific to your enterprise.
The following figure shows an example of an edited location.csv file.
Example edited location.csv file# This enrichment file is used to add an extra field "mc_location" to an event.
# This can be useful to group together or understand the physical location of IT components to help with event assignment and resolution.
# mc_host, mc_location
Texan1, Houston
Texan2, Houston
Cowboy*, DallasThe location for hosts Texan1 and Texan2 is listed as Houston. The location for all hosts beginning with Cowboy (for example, Cowboy1, CowboySmith, CowboyAikman) is listed as Dallas.
- Save and close the file.
- The data enrichment source must be imported into the policy each time you modify the .csv file. For information about importing dynamic enrichment data source, see Importing-dynamic-enrichment-source.