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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| filebeat-0.0.2.tar.gz | 66.3 MB | Without provenance | Details for filebeat-0.0.2.tar.gz |
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
|
Security for filebeat 0.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.