Sign inSign up

denbeke/ssh-log-exporter

By denbeke

•Updated over 6 years ago

Prometheus exporter to count SSH failed login attempts (reads from `/var/log/auth.log`)

Image
0

467

denbeke/ssh-log-exporter repository overview

⁠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⁠

Tag summary

Content type

Image

Digest

Size

163.8 MB

Last updated

over 6 years ago

docker pull denbeke/ssh-log-exporter