Skip to content

amuluowin/SeasStashPHP

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SeasStashPHP

SeasLog -> Swoole -> ClickHouse

快速启动

  • 安装docker和docker-compose
  • 创建docker网络docker create network SeasStash
  • cd 到项目根目录执行composer install
  • 启动项目docker-compose up -d

Seaslog配置

日志存储介质 1File 2TCP 3UDP (默认为1)
  • seaslog.appender = 2或3
接收ip 默认127.0.0.1 (当使用TCP或UDP时必填)
  • seaslog.remote_host = "SeasStashPHP所在机器的IP"
接收端口 默认514 (当使用TCP或UDP时必填)
  • seaslog.remote_port = 514 TCP
  • seaslog.remote_port = 5014 UDP

默认配置

  1. 默认数据库名seaslog表名logs

  2. 模板配置,Clickhouse数据库表根据此模板创建seaslog.default_template = "%T | %L | %R | %m | %I | %Q | %F | %U | %M"

  3. 日期格式seaslog.default_datetime_format = "Y-m-d H:i:s"

About

SeasLog -> Swoole -> ClickHouse

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 97.0%
  • Dockerfile 2.4%
  • Python 0.6%