Skip to main content

salesea@nginx-log-parser

开始使用

网络姻缘一线牵 珍惜这段缘

salesea salesea salesea

Nginx要求

  • Nginx http配置:

    日志格式

    log_format salesea '$remote_addr - $remote_user [$time_local] "$request" '
                   '$status $body_bytes_sent "$http_referer" '
                   '"$http_user_agent" "$http_x_forwarded_for"';
    
  • Nginx server配置:

    日志路径

      access_log /to/path/access.log salesea;
    

Python要求

  • Python版本:3.6+

  • salesea.row配置文件

    [nginx]
    server_name = 需要采集的nginx server_name,可以使用*通配符
    nginx_path = 如果你配置了环境变量,可以为空
    [request]
    concurrency = 上传日志并发数
    [salesea]
    visit_apikey = salesea的apikey
    interval = 采集间隔,单位秒
    

安装

python3 -m pip install salesea -i https://pypi.org/simple

运行

# 生成配置文件
$ salesea -g 
$ 请输入域名(可选): *.example.io
$ 请输入访问密钥(必填): ***********************
$ 请输入日志扫描间隔(默认60秒): 
$ 配置文件已生成: salesea.row

# 运行
$ salesea -s
# or
$ salesea -s -c salesea.row 

# debug mode
$ salesea -s -d
# or
$ salesea -s --debug

Metadata

Release files for salesea 1.0.35

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

Source distribution (sdist)

Source distribution for salesea 1.0.35
File Size Uploaded Provenance Actions
salesea-1.0.35.tar.gz 15.3 kB Without provenance Details for salesea-1.0.35.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for salesea 1.0.35
File Interpreter ABI Platform Actions
salesea-1.0.35-py3-none-any.whl Python 3 none any Details for salesea-1.0.35-py3-none-any.whl

Total release size: 32.6 kB

Release files / salesea-1.0.35.tar.gz

Download URL salesea-1.0.35.tar.gz
Size 15.3 kB
Tags Source
SHA-256 checksum
How to use checksums
09c8b4f8bfa1674f64d53b78457ab5ce35ecc475d7495952ddac98c01adad512
BLAKE2b-256 checksum
How to use checksums
116456be09244e8f04ed8bec8328cd53c707cf13c3f666a8d3b5a673a6c9ead2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.9

Release files / salesea-1.0.35-py3-none-any.whl

Download URL salesea-1.0.35-py3-none-any.whl
Size 17.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2c2e8e134b70fc7e416bd3689ae1e6cda0d8250f4124dd47bd998d253d1644aa
BLAKE2b-256 checksum
How to use checksums
fd9d59ea9da48f7168974524b43a8a1743e4502d71d92d1418236572c167fd25
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.9

Security for salesea 1.0.35

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.

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