Read logs from Wazuh #292
Replies: 5 comments 3 replies
-
It looks like TLS might be enabled on Elasticsearch, you can do some quick tests with curl to find out:
If successful you'll see something like:
But note that Wazuh very likely has its own schema that EveBox does not understand. |
Beta Was this translation helpful? Give feedback.
-
The equivalent command for EveBox would be something like:
But from a little research, Wazuh uses its own schema, so even if you can connect EveBox, it probably won't be of much use. |
Beta Was this translation helpful? Give feedback.
-
Sorry, I missed this bit. You do have a few options. Simplest would be to run EveBox using SQLite directly on the Suricata server. I do recommend using the latest development build tho, https://evebox.org/files/development/ -- these are going to be tagged 0.18.0 anytime soon, perhaps with some very minor changes. The something like:
Or if you do want to leverage that Elasticsearch on the Wazuh server you could try something like (on the Suricata machine):
that will depend on the Wazuh elastic being accessible from a remote host. Otherwise you start to get into client/server models, running the EveBox server on one machine, and the agent on your Suricata machines. |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
I got this error when using root@siem-suricata:~# evebox server --database sqlite --host 0.0.0.0 /var/log/suricata/eve.json Then I tried using root@siem-suricata:~# evebox server -D /var/log/suricata/eve.json --sqlite --host 0.0.0.0 |
Beta Was this translation helpful? Give feedback.
-
Does anyone had try setup Evebox to read logs from Wazuh? My configuration is that I have 1 Wazuh server and 1 Suricata server installed wazuh agent. Wazuh displaying logs from Suricata currently. I'd try to install Evebox in wazuh server but haven't succeeded to get it running. I have try to config evebox.yaml using elasticsearch and filebeat with no luck.
root@wazuh:~# evebox server -e http://localhost:9200 --ecs --index filebeat
2023-12-13 10:03:21 INFO evebox::version: This is EveBox version 0.17.2 (rev: 536be8d); x86_64-unknown-linux-musl
2023-12-13 10:03:21 WARN evebox::elastic::client: Failed to get Elasticsearch version from http://localhost:9200, will try again: Reqwest(reqwest::Error { kind: Request, url: Url { scheme: "http", cannot_be_a_base: false, username: "", password: None, host: Some(Domain("localhost")), port: Some(9200), path: "//", query: None, fragment: None }, source: hyper::Error(IncompleteMessage) })
My evebox.yaml config
This is a minimal evebox.yaml for Elasticsearch and SQLite.
http:
By default, EveBox binds to localhost. Uncomment this line to open
it up.
#host: "0.0.0.0"
database:
type: elasticsearch
elasticsearch:
url: http://127.0.0.1:9200
retention:
# Only keep events for the past 7 days.
# - SQLite only
# - Default 7 days
# - Set to 0 to disable
#days: 7
The server can process events itself when using SQLite or a classic
Logstash style Elasticsearch template.
input:
enabled: false
Suricata EVE file patterns to look for and read.
paths:
- "/var/log/suricata/eve.json"
- "/var/log/suricata/eve.*.json"
Beta Was this translation helpful? Give feedback.
All reactions