Download the PHP package pxlwidgets/legacy-filebeat-emulator without Composer
On this page you can find all versions of the php package pxlwidgets/legacy-filebeat-emulator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download pxlwidgets/legacy-filebeat-emulator
More information about pxlwidgets/legacy-filebeat-emulator
Files in pxlwidgets/legacy-filebeat-emulator
Package legacy-filebeat-emulator
Short Description An emulator for PHP-based filebeat-like log processing
License
Homepage https://github.com/PXLWidgets
Informations about the package legacy-filebeat-emulator
HTTP Logstash input filebeat emulator
This is a crude solution for sending log file content to a Logstash instance that is set up to listen using the http
input plugin.
The idea is to run a process provided by this package in a cron task (say, every five minutes). This process will then read log files from a saved pointer to the latest message, and send all of its lines separately with some configurable added context data.
All logged data should be valid JSON for this to work.
Change log
View the changelog.
Warning
This is a CRUDE approach, and should only be considered for cases where:
- Ancient software is used;
- Servers have no root access (and so cannot have filebeat installed);
Usage and Configuration
It is recommended to run log processing through a cronjob that is guaranteed not to overlap. Within that process, you can easily create and use a processor like so:
This is the simplest setup, that requires no framework whatever. You are encouraged to use environment variables and framework DI-solutions where available.
Credits
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of legacy-filebeat-emulator with dependencies
ext-json Version *