Hi to the Suricata Community,
I have recently installed Suricata on a home computer running Fedora 39. It is currently set up in IDS mode and it works fine.
Via this forum, I learned about EveBox which, with Sqlite, would perfectly help me to view of Suricata logs. However, I can’t see these logs in the browser yet (localhost:5636 or 0.0.0.0:5636).
Would it be possible to get some kind of walk through please, especially about the config files to use with Sqlite ?
At this stage, the status is :
- Fedora 39 updated with Sqlite installed
- Suricata 7.0.4 installed, enabled, started and producing logs
- EveBox 0.18.0 installed, enabled
- I tried to run these commands seen on another [post] to start the Evebox server (How to view logs on evebox) in this forum :
mkdir ~/.config/evebox
evebox server --datastore sqlite -D ~/.config/evebox --host 0.0.0.0 /var/log/suricata/eve.json
But I am not quite sure what to do next or how to properly configure evebox.yaml and agent.yaml ? Just replaced elasticsearch
in evebox.yaml by sqlite
.
Having run the command…
systemctl status evebox
…the output shows that, at the moment, Evebox is looking at both ElasticSearch and Sqlite :-/
Mar 24 14:29:07 fedora systemd[1]: Started evebox.service - EveBox Server.
Mar 24 14:29:07 fedora (evebox)[302627]: evebox.service: Referenced but unset environment variable evaluates to an empty string: ELASTICSEARCH_URL, EVEBOX_OPTS
Mar 24 14:29:07 fedora evebox[302627]: 2024-03-24 14:29:07 INFO evebox::version: This is EveBox version 0.18.0 (rev: 16bce96); x86_64-unknown-linux-musl
Mar 24 14:29:07 fedora evebox[302627]: 2024-03-24 14:29:07 INFO evebox::server::main: Using data directory /var/lib/evebox
Mar 24 14:29:07 fedora evebox[302627]: thread ‘main’ panicked at /home/jason/projects/evebox/main/src/server/main.rs:552:64:
Mar 24 14:29:07 fedora evebox[302627]: calledResult::unwrap()
on anErr
value: SqliteFailure(Error { code: CannotOpen, extended_code: 14 }, Some("unable to open database file: /var/lib>
Mar 24 14:29:07 fedora evebox[302627]: note: run withRUST_BACKTRACE=1
environment variable to display a backtrace
Mar 24 14:29:07 fedora systemd[1]: evebox.service: Main process exited, code=exited, status=101/n/a
Mar 24 14:29:07 fedora systemd[1]: evebox.service: Failed with result ‘exit-code’.
Please also note that, initially, I had tried to apply in evebox.yaml
the configuration for Sqlite as outlined here, with data-directory: /var/lib/evebox
. After finding the above post, I updated the config file, stopped and started Evebox again but the output of systemctl shows that /var/lib/evebox is still being used as data directory.
Here is the current status. Could you please advise ?
Many thanks,
Alex