Configuring LoggerFS: logs.xml

The logs.xml file contains all the virtual files that you want LoggerFS to create. There are a multitude of options that you can tell LoggerFS, all of which are outlined in this document.

A Log entry in the logs.xml file can have the following options:

database Name of the SQL database to connect to.
database-software Database software that the server is running. Correct values: mysql or pgsql
gid (optional) Name or id of the group that should own the file.
location Name of the virtual file that should be created by LoggerFS.
password Password for the database user.
permissions (optional) Octal format describing the permissions of the virtual file. Ex: 0222 for write-only permissions.
schemas Names of the schemas the LoggerFS should attempt to match each line against. Visit the schemas section for a list of available schemas in the default distribution.
server IP or hostname of the database server.
table Name of the table that should store the log information. If it doesn't already exist, then LoggerFS will automatically create it for you based on the schemas you selected.
uid (optional) Name or id of the user that should own the virtual file.
username Name of the database user that LoggerFS should connect as.

Following is an example entry in the logs.xml file:

        <log>
                <location>apache_access.log</location>
                <schemas>apache_combined,http_common</schemas>
                <database-software>pgsql</database-software>
                <database>loggerfs</database>
                <table>apache</table>
                <server>localhost</server>
                <username>postgres</username>
                <password></password>
                <uid>apache</uid>
                <gid>apache</gid>
        </log>

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.