Magento is a PHP ecommerce application. In case of severe problems, Magento crashes, generating a file for each crash in a var/report directory.
The file contains informations about the crash (db unreachable for instance). The file name is a random number.
I'm looking for a solution to detect and send those reports automatically when they appear in the var/report directory.
I tried using the directory as a path : not working:
prospector.go:293: Skipping directory: /var/www/magento/var/report/
For now I will simulate a log file with a bash script loop running in background, but this is not very handy.
I may create an enhancement issue for that.
Note that Filebeat sends files line by line. You may want to use its multiline feature to join the lines of each file (or at least some of them) into a fewer number of events.
A small drawback also: file modification date is not sent. So the event time in elastic search is the log reception date, not the report generation time.
@dooblem Glad to hear it works with filebeat 5.0. That means the efforts to rewrite large parts was worth it.
The first beta versions should come out in the next weeks. GA is planned for Q4. On the filebeat side currently no major / breaking additional changes are planned for the final version in case this helps.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.