Thanks to Schkn for its original post https://devconnected.com/geolocating-ssh-hackers-in-real-time/

Grafana dashboard id : 12323
Add this under /etc/rsyslog.conf to forward ssh auth failures to local server :
template(name="OnlyMsg" type="string" string="%msg:::drop-last-lf%\n")
if $programname == 'sshd' then {
if $msg startswith ' Failed' then {
action(type="omfwd" target="127.0.0.1" port="7070" protocol="tcp" template="OnlyMsg")
}
}
docker-compose -f docker-compose.standalone.yml up
INFLUX_URL deprecated, use INFLUX_HOST insteadINFLUX_HOST Influx (FQDN) host to connect to.INFLUX_PORT optional default: 8086 Influx port to connect to.INFLUX_USER optional default: root Username for connecting to the database.INFLUX_PWD optional default: root Password for connecting to the database.INFLUX_DB Database to operate on.Note: You can use the Docker network FQDN if you put the service in the same Docker network as your InfluxDB instance. INFLUX_HOST will be influx if your service's name is influx.
docker-compose up -d
docker-compose -f docker-compose.standalone.yml upnetcat localhost 7070Failed password for username from 206.253.167.10 port 11111 ssh2NODE_TLS_REJECT_UNAUTHORIZED to 0, but don't do this without understanding the implications.DEBUG_LEVEL: level of logging in log4js, default is "info".Content type
Image
Digest
Size
26.8 MB
Last updated
over 5 years ago
docker pull acouvreur/ssh-log-to-influx