PHPackages                             pxlwidgets/legacy-filebeat-emulator - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Logging &amp; Monitoring](/categories/logging)
4. /
5. pxlwidgets/legacy-filebeat-emulator

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

pxlwidgets/legacy-filebeat-emulator
===================================

An emulator for PHP-based filebeat-like log processing

0.9.2(6y ago)1110PHPPHP &gt;=5.6.0

Since Aug 1Pushed 6y ago1 watchersCompare

[ Source](https://github.com/PXLWidgets/legacy-filebeat-emulator)[ Packagist](https://packagist.org/packages/pxlwidgets/legacy-filebeat-emulator)[ Docs](https://github.com/PXLWidgets)[ RSS](/packages/pxlwidgets-legacy-filebeat-emulator/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (2)Versions (3)Used By (0)

HTTP Logstash input 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
----------

[](#change-log)

[View the changelog](CHANGELOG.md).

Warning
-------

[](#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
-----------------------

[](#usage-and-configuration)

It is recommended to run log processing through a cronjob that is [guaranteed not to overlap](http://www.unixwiz.net/tools/lockrun.html). Within that process, you can easily create and use a processor like so:

```
