Skip to main content

filebeat

介绍

python 项目使用filebeat

示例

import filebeat

# 加载配置,
# is_linux=True 使用Linux版的filebeat
# is_linux=False 使用Mac版的filebeat
fb = filebeat.load_config('filebeat.yml', is_linux=False)

# 运行
fb.run()

filebeat.yml 示例

filebeat.inputs:
- type: filestream
  paths:
    - /log/xx.log**
  parsers:
    - ndjson:
        keys_under_root: true
        overwrite_keys: true
        add_error_key: true
        expand_keys: true

output.logstash:
  # Boolean flag to enable or disable the output module.
  enabled: true

  # The Logstash hosts
  hosts: ["0.0.0.0:5144"]

Metadata

Release files for filebeat 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for filebeat 0.0.2
File Size Uploaded
filebeat-0.0.2.tar.gz 66.3 MB Details

Release files / filebeat-0.0.2.tar.gz

Download URL filebeat-0.0.2.tar.gz
Size 66.3 MB
Tags Source
SHA-256 checksum
How to use checksums
d399194dee2760ec098888bd0825c31ef312f07da1cce7b46f16e96a6d9a5197
BLAKE2b-256 checksum
How to use checksums
c5fb1bd2456615c94a39e6234fc0b0dbdd429bd92117539a8d3fe19176292a0b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.6.0 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.5

Release history Release notifications | RSS feed

This release

0.0.2 This release

1 release file

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page