Operations and updates
Everything is done with ./lawliet from the deployment folder, as root or with sudo. ./lawliet help lists it all.
Full procedure: 3. CLI reference.
Day-to-day commands
| Command | What it does |
|---|---|
./lawliet status | Health, licence, version, build id and connected hosts |
./lawliet start, stop | Starts or stops the stack. start first loads any of the bundle's images that are missing. Data is never touched. |
./lawliet backup | A database backup into ./backups. HTTPS installations also take one daily. |
./lawliet restore <file> | Restores a backup and restarts. Asks before replacing anything. |
./lawliet update <bundle> | Upgrades to a newer bundle or delta. See below. |
./lawliet rollback | Returns to the version before the last update, with the database as it was before the update. Data written since is saved first. |
./lawliet restart | Restarts and waits until healthy. Data is never touched. |
./lawliet logs backend -f | Follows a service's logs |
./lawliet passwd | Resets the administrator password |
./lawliet tls | Shows or replaces the certificate. --export writes it out for your hosts. |
./lawliet tls repair | Re-issues a self-signed certificate that does not cover every address of this server, or expires within 30 days. With agents enrolled it hands the new certificate to them before switching. See TLS and certificates. |
./lawliet tls cancel | Withdraws a certificate that is staged but not yet switched to |
./lawliet tls on, off, status | Switches encryption on or off without reinstalling an agent, or shows the state |
./lawliet licence | Shows the licence and the installation fingerprint, or installs a key |
./lawliet token | Prints the enrolment secret and the agent install commands. --rotate replaces the enrolment secret; enrolled agents are unaffected. |
./lawliet agent-package | Builds an offline agent package with an expiring enrolment code |
./lawliet diag | Writes one redacted support archive with logs, health, the certificate, clocks and failed deployments. See Diagnostics. |
./lawliet doctor | Lists findings with the fix for each, applies the safe ones with --fix, and writes a support file with no secrets and no database rows |
Updates
Updates arrive as a new signed bundle. Copy it to the server and, from the current deployment folder:
sudo ./lawliet update lawliet-docker-<version>-<organisation>.tar.gz
It backs up the database first and stops if the backup fails, checks the new bundle's signature, then unpacks the new version beside the current one and loads its images while the current version keeps running. Nothing is built or pulled, so updates work air-gapped. It then runs the database migrations and checks the schema and version before it finishes. Your licence and settings carry over.
The old folder is kept: sudo ./lawliet rollback, run from the new folder, returns to it with the database as it was before the update. A delta update, much smaller than a bundle, is applied with the same command. Upgrading has the full procedure.
Full procedure: 4. Updates, rollback and delta updates.
Module health
The Overview lists every module with its health. Each module is judged on what can actually go wrong in it, such as failed jobs, sources gone quiet, destinations failing, items past their SLA or rules in error, and says which signal it used. A module with nothing set up reads "not configured", one with nothing yet to judge reads "no data", and a module outside the licence is shown as locked.
The certificate and the licence have their own card under Settings > Platform: see Certificate and licence health.
Backups
Beside each database dump, ./lawliet backup writes the keys the data is encrypted with and an archive of the agent releases hosted on the server; ./lawliet restore puts both back. Copy the backups off the server, and store each keys file apart from its dump.
Full procedure: 5. Backup and restore.
Retention
Each kind of record has its own retention period, and 0 keeps it forever. The defaults are 90 days for collected log events, 180 days for file integrity events, 365 days for data loss prevention incidents and detection alerts, and 730 days for compliance results and the audit trail.
Receiving syslog
Point network devices and servers at the Lawliet server on port 5514, UDP or TCP. Accepted formats are RFC 5424, RFC 3164, CEF, LEEF and JSON.
Full procedure: 30. Logs: search, dashboards and sources.
Forwarding to your SIEM
Lawliet can forward events as CEF, LEEF, RFC 5424 or JSON, over syslog (UDP, TCP or TLS) or HTTPS. HTTPS forwarding works with Splunk HEC, Microsoft Sentinel and generic HTTPS collectors. Configure it under Settings > SIEM forwarding.
Full procedure: 39. Operations and Settings.