Skip to content
This repository was archived by the owner on Nov 6, 2019. It is now read-only.
/ beat-log Public archive

Similar with ELK-filebeat but can delete or back up the log files.

License

Notifications You must be signed in to change notification settings

reply2future/beat-log

Repository files navigation

日志发送工具

能够配置一次性读取日志文件个数和日志行数,然后对每一行日志进行处理,并且备份log文件. 项目目的是实现Elastic里面的filebeat程序不具备的文件迁移和备份功能,详情. 可能使用分支single-file-handler更加简单,避免日志文件过多,内存占用过大的问题.

版本需求

  • node>=6.0
  • npm>=3.0
  • typescript>=2.5

使用方法

  • 配置
    • config/monitor.json
      • logDir: 日志路径
      • bakDir: 备份日志路径
      • bakSize: 备份大小,配合bakSizeUnit使用
      • bakSizeUnit: 备份大小单位,比如:"MB","GB".
    • (可选) config/logstash.json
  • 编译全部ts文件
  • 启动
npm start

About

Similar with ELK-filebeat but can delete or back up the log files.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published