【文件属性】:
文件名称:systemdlogger:将systemd日志导出到外部服务,例如cloudwatch,elasticsearch
文件大小:74KB
文件格式:ZIP
更新时间:2021-01-30 17:34:42
aws elasticsearch kibana systemd logging
系统记录器
轻量级,仅python,logstash替代
将系统记录的日志导出到外部服务,例如cloudwatch,elasticsearch
与Cron工作一起使用
Python 3.4以上
安装
安装依赖项
# Fedora/RHEL/CentOS
$ dnf install python-systemd python3-systemd
要么
# Debian/Ubuntu/Mint
$ apt-get install python-systemd python3-systemd
从pip安装
$ pip install systemdlogger
用法
$ systemdlogger -h
usage: systemdlogger [-h] config
Exports systemd logs to different storage backends, eg
cloudwatch/elasticsearch.
positional arguments:
config path to config file
optional arguments:
-h, -
【文件预览】:
systemdlogger-master
----.gitignore(1KB)
----setup.cfg(32B)
----.overcommit.yml(1KB)
----README.md(4KB)
----README.rst(181B)
----bin()
--------test(38B)
----systemdlogger()
--------journal.py(1KB)
--------log.py(103B)
--------plugin.py(267B)
--------aws.py(2KB)
--------runner.py(2KB)
--------systemdlogger.py(529B)
--------elasticsearch.py(1KB)
--------cloudwatch.py(3KB)
--------__init__.py(0B)
----tox_integration.ini(178B)
----tests()
--------integration()
--------fixtures()
--------test_aws.py(1KB)
--------test_cloudwatch.py(2KB)
--------test_elasticsearch.py(1KB)
--------test_runner.py(2KB)
--------__init__.py(0B)
----docker-compose.yml(98B)
----docs()
--------kibana_index_setup.png(57KB)
----LICENSE(1KB)
----TODO.md(927B)
----requirements.txt(352B)
----setup.py(1KB)
----.travis.yml(118B)
----tox.ini(146B)
----Makefile(248B)
----requirements-to-freeze.txt(65B)