Skip to content

AvengersCodeLovers/nginx-log-monitoring

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GMT nginx log monitoring

Requirements

  • Nodejs 8.10.x

Clone project and run test.

$ git clone https://git_url_clone <project_dir>
$ cd <project_dir>
$ npm install
$ npm run test

Copy sh/env.example.sh to sh/env.sh.

$ cd <project_dir>
$ cp env.example.sh env.sh

Edit file env.sh by yourself and run command below to initialization environment variable.

Name Description
NGINX_LOG_FILE Path to nginx log file
MYSQL_LOG_FILE Path to mysql log file
ENV env name. ex: stg, pro, dev,...
MANAGERS Chatwork IDs. ex: [To:xxx]
CW_ROOM_ID Chatwork room ID
CW_API_URL Chatwork API URL
CW_BOT_TOKEN Chatwork API KEY
$ cd <project_dir>
$ source sh/env.sh

Run project

$ cd <project_dir>
$ node src/index.js

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published