Hi,
cat /var/log/elasticsearch/<elasticsearch-cluster-name>.log | grep -i -E "error|warn"
For example:
[2023-05-03T08:01:41,629][ERROR][c.a.o.s.a.BackendRegistry]
[node-1] Cannot retrieve roles for User [name=wazuh,
backend_roles=[admin], requestedTenant=null] from ldap due to
ElasticsearchSecurityException[ElasticsearchSecurityException[No user
wazuh found]]; nested: ElasticsearchSecurityException[No user wazuh
found];
[2023-05-03T08:58:34,509][ERROR][c.a.o.s.a.BackendRegistry]
[node-1] Cannot retrieve roles for User [name=kibanaserver,
backend_roles=[], requestedTenant=null] from ldap due to
ElasticsearchSecurityException[ElasticsearchSecurityException[No user
kibanaserver found]]; nested: ElasticsearchSecurityException[No user
kibanaserver found];
These are entries when trying to login:
[2023-05-03T13:06:01,712][WARN
][c.a.o.s.a.BackendRegistry] [node-1] Authentication finally failed for
admin from
127.0.0.1:57592[2023-05-03T13:06:28,982][WARN
][c.a.o.s.a.BackendRegistry] [node-1] Authentication finally failed for
admin from
127.0.0.1:57592[2023-05-03T13:07:04,935][ERROR][c.a.o.s.a.BackendRegistry]
[node-1] Cannot retrieve roles for User [name=admin,
backend_roles=[admin], requestedTenant=null] from ldap due to
ElasticsearchSecurityException[ElasticsearchSecurityException[No user
admin found]]; nested: ElasticsearchSecurityException[No user admin
found];
cat /var/log/filebeat/filebeat | grep -i -E "error|warn"
Nothing is returned.
cat /usr/share/kibana/data/wazuh/logs/wazuhapp.log | grep -i -E "error|warn"
Attached in out1.txt.
cat /var/ossec/logs/ossec.log | grep -i -E "error|warn"
...
2023/05/03 03:21:23 wazuh-logcollector: ERROR: Discarding audit message because of invalid syntax.
2023/05/03 03:21:23 wazuh-logcollector: ERROR: Discarding audit message because of invalid syntax.
2023/05/03 11:45:59 wazuh-logcollector: ERROR: Discarding audit message because of invalid syntax.
2023/05/03 11:45:59 wazuh-logcollector: ERROR: Discarding audit message because of invalid syntax.
Passwords
were not changed. Just to add, Wazuh is integrated with LDAP but users
admin/wazuh are local Wazuh users, not LDAP users.