I have configured Cisco Router to send logs to Wazuh server. I am able to see failed logs, but login logs are not showing up. Can someone help me on this.
cat /var/ossec/logs/archives/archives.json | grep 172.17.42.161
This is showing up (Failed Login):
{"timestamp":"2023-04-07T13:13:00.013+0530","rule":{"level":5,"description":"syslog: User authentication failure.","id":"2501","firedtimes":1,"mail":false,"groups":["syslog","access_control","authentication_failed"],"pci_dss":["10.2.4","10.2.5"],"gpg13":["7.8"],"gdpr":["IV_35.7.d","IV_32.2"],"hipaa":["164.312.b"],"nist_800_53":["AU.14","AC.7"],"tsc":["CC6.1","CC6.8","CC7.2","CC7.3"]},"agent":{"id":"000","name":"wazuh2"},"manager":{"name":"wazuh2"},"id":"1680853380.9539","full_log":"7360: KBP-TUNNEL-ROUTER: 2w6d: %SEC_LOGIN-4-LOGIN_FAILED: Login failed [user: admin] [Source: 172.17.27.132] [localport: 22] [Reason: Login Authentication Failed] at 13:12:59 IST Fri Apr 7 2023","decoder":{},"location":"172.17.42.161"}
This is not showing up (Sucess Login):
{"timestamp":"2023-04-07T13:13:17.428+0530","agent":{"id":"000","name":"wazuh2"},"manager":{"name":"wazuh2"},"id":"1680853397.9784","full_log":"7361: KBP-TUNNEL-ROUTER: 2w6d: %SEC_LOGIN-5-LOGIN_SUCCESS: Login Success [user: vijay.rana] [Source: 172.17.27.132] [localport: 22] at 13:13:16 IST Fri Apr 7 2023","decoder":{},"location":"172.17.42.161"}