shadow-walker-tracker

0.0.1 • Public • Published

追踪者(stalker)项目nginx日志解析工具:stalker

安装

npm install stalker-parser

命令

# 遍历 
stalker walk nginx/log
# 入库 
stalker insertdb nginx/log

配置

创建config.json,格式如下:

{
    "database": {
        "connectionLimit": 10,
        "host": "localhost",
        "port": 3306,
        "user": "root",
        "passord": "",
        "database": "tracker"
    },
    "database_timeout": 10000,
    "query_map": {
        "hijack": {},
        "badjs": {},
        "feature": {}
    }
}

执行:

# 如果config.json在执行目录下
stalker insertdb nginx/log
# OR
stalker insertdb nginx/log -c config/path

Package Sidebar

Install

npm i shadow-walker-tracker

Weekly Downloads

0

Version

0.0.1

License

none

Last publish

Collaborators

  • ksky521