Hello Still,
Good, decoders are working now. Let's check two things. Make sure alerts.json has logs triggering alerts and also, let's see if Filebeat is connected to ElasticSearch and reading the alerts.json file.
Let's inspect alerts.json file (with cat or tail):
- cat /var/ossec/logs/alerts.json | grep 'ETHPORT-'
- tail -f var/ossec/logs/alerts.json | grep 'ETHPORT-'
Also, let's make sure filebeat is reading the alerts.json:
- lsof /var/ossec/logs/alerts/alerts.json
(you should get this)
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
filebeat 1172 root 10r REG 253,0 6182116 51529284 /var/ossec/logs/alerts/alerts.json
ossec-ana 7464 ossec 13w REG 253,0 6182116 51529284 /var/ossec/logs/alerts/alerts.json
If this is looking good, we'll check filebeat status with:
- filebeat test output
(should return all checks with OK)
elasticsearch: https://x.x.x.x:9200...
parse url... OK
connection...
parse host... OK
dns lookup... OK
addresses: x.x.x.x
dial up... OK
TLS...
security: server's certificate chain verification is enabled
handshake... OK
TLS version: TLSv1.3
dial up... OK
talk to server... OK
version: 7.10.0
If this is not the case, please send me the results of these commands:
- journalctl -u filebeat --no-pager | grep -E "WARN|ERROR"
- cat /var/log/elasticsearch/elasticsearch.log | grep -E "WARN|ERROR"
Let me know the results.
Regards,
John.-