Graylog Logstore

Log storage ::: logstore_graylog
Maintained by Binoj D
Logstore plugin for moodle to ship logs to graylog or other log backends which supports the GELF format. This plugin requires that you have a working Graylog/GELF compatible log management node. Graylog can be downloaded for free from graylog2.org. Transport protocols TCP and UDP are supported.

Graylog Logstore 0.1 (Build: 2016112900)

Moodle 3.1
Released: miércoles, 30 de noviembre de 2016, 02:35

Graylog Logstore for Moodle

Logstore plugin for moodle to ship logs to graylog or other log backends which supports the GELF format. This plugin requires that you have a working Graylog node. Graylog can be downloaded for free from graylog2.org. Transport protocols TCP and UDP are supported.

The array in other column in standard logstore is sent as a JSON string as of now. Users can use the "JSON Extractor" feature of Graylog in the other field to store them as separate fields in Graylog.

Please use Github Issues for bug reports, feature requests and send code contributions as Github Pull Requests.

Installation

  1. Create a new Input of type GELF UDP or GELF TCP in Graylog from the Graylog web interface at system/inputs.
  2. Unzip this plugin to directory admin/tool/log/store/ in your moodle installation.
  3. Navigate to "System Administration -> Notifications" to install the plugin & configure Graylog input details.

This plugin can operate in two modes, just like the splunk logstore plugin. * Realtime -> Logs are sent to graylog as soon as they happen. * Background -> Logs are stored in standard logstore and new log entries are sent to graylog once every minute during cron run.

Heavily inspired by the splunk logstore at https://github.com/unikent/moodle-logstore_splunk. Thanks Skylar Kelty!

This plugin uses composer to manage dependencies and is currently dependent on the composer package graylog2/gelf-php which is, in turn, dependent on psr/log. These dependencies are included with the release archive but not maintained in git.

TODO

  • Implement other transports which GELF supports, such as, Kafka / AMQP, HTTP.
  • Use LearningLocker/Moodle-Log-Expander or something similar to expand IDs. Better if logstore evolves automatically whenever the Moodle-Log-Expander project has new log types implemented.

Version information

Version build number
2016112900
Version release name
0.1 (Build: 2016112900)
Can be updated to
0.2 (Build: 2016113000) (2016113000)
Maturity
Alpha
MD5 Sum
43ba35d53d58c786b3dfb93b5e5a477b
Supported software
Moodle 3.1

Version control information

Version control system (VCS)
GIT
VCS repository URL
VCS tag
v0.1

Default installation instructions for plugins of the type Log storage

  1. Make sure you have all the required versions.
  2. Download and unpack the module.
  3. Place the folder (eg "mytool") in the "admin/tool/log/store" subdirectory.
  4. Visit http://yoursite.com/admin to finish the installation