Categorygithub.com/DenBeke/ssh-log-exporter
repositorypackage
0.0.0-20200509155846-d3b293bb2e3a
Repository: https://github.com/denbeke/ssh-log-exporter.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# README

SSH Log Exporter: Observe Attack Attempts with Prometheus

Build Status

WIP: Prometheus exporter that listens on /var/log/auth.log events and exposes counters with the the failed login attempts. Labels (for now): ip and country.

āš ļø This was written on a Friday night, while drinking some Belgian beers. You better don't look too much at the code, and don't use it in production. šŸ˜‡šŸ»

ssh-attack-attempts-grafana

Usage

go run sshlogexporter/main.go

Configurations

Nothing to configure at the moment.

Acknowledgements

Uses sirupsen/logrus for logging, hpcloud/tail for countinously reading the file and phuslu/geoip for getting the country of the IPs

Author

Mathias Beke