Skip to main content

python uses filebeat, the purpose is to collect logs

Project description

filebeat

介绍

python 项目使用filebeat

示例

import filebeat

# 加载配置,is_linux=True 使用Linux版的filebeat,is_linux=False 使用Mac版的filebeat
fb = filebeat.load_config('/Users/lhb/work/gitee/learn_elk/filebeat_yamls/filebeat.yml', is_linux=False)

# 运行
fb.run()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

filebeat-0.0.1.tar.gz (66.3 MB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page