danielneis/moodle-logstore_fluentd

Send Moodle's events to Fluentd

dev-master 2017-06-20 02:20 UTC

This package is not auto-updated.

Last update: 2024-04-13 16:23:45 UTC


README

This is a plugin for Moodle that sends all events to a configured Fluentd instance.

Install

Put these files at moodle/admin/tool/log/store/fluentd

This plugin uses the fluent/logger library to record events to Fluentd.

If you downloaded the code from github or have used "git clone", you can install it using composer on the root directory of the plugin with the following command:

$ composer install

If you have installed the plugin via composer, it may already have downloaded the dependencies.

After puting the files on the correct directory, go to your Moodle site as admin and follow the stepes to get the plugin installed.

This plugin connects to Fluentd via sockets. It does not support the http interface. By default, Fluentd already listen on 24224, so you are all set if you just installed it from official packages.

Usage

After the plugin is installed, make sure you enable it going to Administration block > Site administration > Plugins > Logging > Manage logging stores

Remember that the fluentd has a "flush interval" of 60s by default so you will not see thing immediately if you forward logs to another service.

Dev Info

Please, report issues at: https://github.com/danielneis/moodle-logstore_fluentd/issues

Feel free to send or comment on pull requests at: https://github.com/danielneis/moodle-logstore_fluentd/pulls

Build Status Scrutinizer Code Quality