| 1 |
#debug: true |
| 2 |
name: fulljackz/proxmox-logs |
| 3 |
description: "Parse proxmox logs for bruteforce attempts" |
| 4 |
filter: "evt.Parsed.program == 'pvedaemon'" |
| 5 |
onsuccess: next_stage |
| 6 |
pattern_syntax: |
| 7 |
PVE_AUTH_FAIL: 'authentication failure; rhost=%{IP:client_ip} user=%{USERNAME:source_user}@%{WORD:realm} msg=Authentication failure' |
| 8 |
PVE_NOSU_USER: 'authentication failure; rhost=%{IP:client_ip} user=%{USERNAME:source_user}@%{WORD:realm} msg=no such user' |
| 9 |
nodes: |
| 10 |
- grok: |
| 11 |
name: "PVE_AUTH_FAIL" |
| 12 |
apply_on: message |
| 13 |
statics: |
| 14 |
- meta: log_type |
| 15 |
value: pve_failed-auth |
| 16 |
- meta: source_user |
| 17 |
expression: "evt.Parsed.source_user" |
| 18 |
- grok: |
| 19 |
name: "PVE_NOSU_USER" |
| 20 |
apply_on: message |
| 21 |
statics: |
| 22 |
- meta: log_type |
| 23 |
value: pve_failed-auth |
| 24 |
- meta: source_user |
| 25 |
expression: "evt.Parsed.source_user" |
| 26 |
statics: |
| 27 |
- meta: service |
| 28 |
value: pvedaemon |
| 29 |
- meta: source_ip |
| 30 |
expression: "evt.Parsed.client_ip" |