Configuring LoggerFS: schemas.xml

A schema is an entity that has a name, defines a regular expression and tells loggerfs how the groupings of the regular expression should be stored in the database. All schemas are defined in the schemas.xml file.

The following schemas are available by default:

all A catch-all pattern that will match any line.
apache_combined Matches the Apache combined log format.
http_common Matches the HTTP common format.
postgresql Matches the PostgreSQL log format.
squid_native Matches the Squid log format.
syslog Matches the Syslog format.

Following is an example of a schema (taken from the default schemas.xml file):

<schema>
         <name>postgresql</name>
         <regex>(\S+):  *(.*)$</regex>
         <columns>event,message</columns>
</schema>

Post new comment

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Copy the characters (respecting upper/lower case) from the image.