4.6.1 Merging Logs of Different Types

The video tutorial Layout Creation Wizard on Youtube will also explain how to merge logs of different formats. Therefore it is necessary to create a common layout for both log file formats by merging the grammars describing these two formats.

It is also possible to display logs belonging to different log types in the Main tab of the Log window. Log records of different types do have different headers. If the grammar definition of the loaded layout does not already describe all the different headers the definitions of these headers have to be merged to the grammar definition. You can proceed in a similar way as described in Creating a Grammar – A Short Introduction but there is one difference. In order to create the desired grammar definition select a record whose header you want to add. The record will be displayed in the Details window. Select the header (do not select the description) and copy the header to the clipboard. Then go to the Tools menu and open the Grammar Definition dialog. Paste the header into the Text sample edit control and press the Scan button next to the control. Ascolog Insight will scan the log header and create a grammar definition, i.e. it will create terminals and nonterminals and replace the previously shown terminals and nonterminals. However, the original terminals and nonterminals are not gone because they are still stored in the grammar definition file but they are just not displayed in the dialog. In order to add the new definitions to the grammar definition file go to the File menu, select Merge and then File... Ascolog Insight will propose the currently loaded grammar definition file as merge target. You can also select a different grammar definition file if you want. Press OK to add the new definitions to the grammar definition file. The old definitions will be kept. Go again to File, press Save & Apply to save the new grammar definition and to apply it to the currently loaded logs.