Skip to content

tsureshkumar/crowdsec-mon

Repository files navigation

crowdsec-mon

crowdsec-mon is a rich terminal console for monitoring and managing a CrowdSec Local API instance.

Development

  1. Install JavaScript dependencies with npm install.
  2. Install Go dependencies with go mod tidy.
  3. Create a config file at ~/.config/crowdsec-mon/config.json.
  4. Run npm run dev.

Config

Example config:

{
  "lapi_url": "http://127.0.0.1:8080",
  "machine_id": "crowdsec-mon",
  "password": "your-crowdsec-machine-password",
  "api_key": "your-crowdsec-lapi-api-key",
  "metrics_url": "http://127.0.0.1:6060/metrics",
  "refresh_interval": "30s",
  "theme": "amber",
  "update_check_enabled": true,
  "sqlite_path": "/tmp/crowdsec-mon.db"
}

Run with a shared log file:

npm run dev -- --log-file /tmp/crowdsec-mon.log

Force a backend relaunch instead of reusing an already-running daemon:

npm run dev -- --relaunch-backend

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors