Export Event Data from MATRIXX Event Files
The event_export.yaml file is an example configuration file that is provided for you to use with the data_export.jar utility for exporting event data from MATRIXX Event Files (MEFs) to CSV files. The utility also generates script files to create SQL tables and to load the exported Event data into the SQL tables. data_export.jar supports MEF input in compact MDC format only.
Procedure
-
Run the /opt/mtx/bin/data_export.jar utility with the
example event_export.yaml file as the entry for
exportConfigFile or the file that you customized before.
java -jar data_export.jar <inputFolder> <outputFolder> <customMdcConfigFile> <MtxVersion> <exportConfigFile> [sqlSchemaName]
For example:java -jar /opt/mtx/bin/data_export.jar /opt/mtx/event_files /tmp/event_export/csv /opt/mtx/conf/mdc_config_custom.xml 5100 /opt/mtx/data/event_export.yaml
See the discussion about data_export.jar for a complete description of each of the data_export.jar parameters.
Three sets of files are generated when the data_export.jar utility successfully completes:- Extracted MEF data that is written to one or more CSV files.
- A script file to create SQL tables for importing the extracted MEF data.
- A script file to load the exported MEF data into the SQL tables after they are created.
Note: If pricing does not include bundles, you need not add theEvent_Bundle_Info
andEvent_Applied_Bundle
fields to the .yaml file for data_export.jar. - Run the create_tables.sql script to create new SQL tables.
- Run the load_tables.sql script to import the CSV data into the new SQL tables.