Manual Setup
Prerequisites
LeonaLog depends on MongoDB and Elasticsearch or OpenSearch to operate.
Downloading and Extracting the Server
Download the tar archive from the download pages and extract it on your system:
Configuration
Now copy the example configuration file like this:
You can leave most variables as they are for now. They all should be well documented.
Configure at least the following variables in ../server.conf
:
is_leader = true
: Set only one server node as the leader. This node will perform periodical and maintenance actions that follower nodes won't. Every follower node will accept messages just as the leader nodes. Nodes will fall back to follower mode if there already is a leader in the cluster.password_secret
: You must set a secret that is used for password encryption and salting here. The server will refuse to start if it's not set. Generate a secret withpwgen -N 1 -s 96
for example. If you run multiple leona-server nodes, make sure you use the samepassword_secret
for all of them.root_password_sha
: A SHA2 hash of a password you will use for the initial login. Set this to a SHA2 hash generated withecho -n "Enter Password: " && head -1 </dev/stdin | tr -d '\n' | sha256sum | cut -d" " -f1
and you will be able to log in to the web interface with the usernameadmin
and passwordyour-password
.elasticsearch_hosts
: List of Elasticsearch hosts that should connect to.mongodb_uri
: Enter your MongoDB connection and authentication information here.
Starting the Server
You need to have Java Installed!
Start the server:
Then open your browser with http://localhost:9000 🚀
Last updated