13.5.3. The syslog-ng pattern database format The syslog-ng Premium Edition 7 Administrator Guide
Pattern databases are XML files that contain rules describing the message patterns. For sample pattern databases, see Section 13.2.2, Downloading sample pattern databases.
The following scheme describes the V5 format of the pattern database. This format is backwards-compatible with the earlier formats.
For a sample database containing only a single pattern, see Example 13.20, A pattern database containing a single rule.
Use the pdbtool utility that is bundled with syslog-ng to test message patterns and convert existing databases to the latest format. For details, see pdbtool(1).
To automatically create an initial pattern database from an existing log file, use the pdbtool patternize command. For details, see the section called “The patternize command”.