This guide is designed for configuring Zerotier on TrueNAS Core using Kubernetes.
In TrueNAS, navigate to System Settings and then select the Shell option. In the opened shell window, execute the following command:
1 k3s kubectl get namespaces The output should resemble the following:
1 2 3 4 5 6 7 8 NAME STATUS AGE default Active 2d11h kube-system Active 2d11h kube-public Active 2d11h kube-node-lease Active 2d11h openebs Active 2d11h ix-zerotier Active 2d11h ix-syncthing Active 2d11h Note the name of the Zerotier namespace; for example, it might be called ix-zerotier.
Backup - Configuring Graylog
Graylog Files Copy both files somewhere safe:
/etc/graylog/server/server.conf /etc/default/graylog-server Configuration (MongoDB) Backup:
mongodump --out graylog_backup_$(date "+%Y-%m-%d")/mongodb Then copy the generated file somewhere safe. Restore (not tested yet):
mongorestore graylog_backup_xxx Elasticsearch (DB) Configurations Copy both files somewhere safe:
/etc/elasticsearch/elasticsearch.yml /etc/elasticsearch/jvm.options Logs Source: Snapshot module | Elasticsearch Guide [7.10]
These Steps has to be done only once Create a backup folder (in this example: /home/backup)
In /etc/elasticsearch/elasticsearch.yml add path.
Dashboards give you clear visualizations of your search query results for quick, high-level insights into issues.
To see available dashboards, you can simply click on the Dashboards button in the top row.
Visibility and ownership Dashboards can be private or made available for others.
To change the visibility of a dashboard, you can click on the share button on the right.
Using the same button, the owner of the dashboard can give others the rights to only see the dashboard or to edit it too.
On Graylog Create token for the new client machine Call the web interface for Graylog
From System choose Sidecars
Here you can see all clients that are already connected to Graylog using Sidecar.
Click on Create or reuse a token for the graylog-sidecar user to create a new token.
Give the new token a name (usually the name of the client) and click on Create Token
Copy the new token, you will need it later.
Intro This guide will show you how to install Graylog on Ubuntu 20.04 LTS. We will use two separated virtual machines for this setup, one for Graylog and MongoDB, and the other one for Elasticsearch. From my experience, using one virtual machine for both Graylog and Elasticsearch is not a good practice and will probably cause performance issues.
Minimum resources to start with (for each VM) 2 Cores 4 GB RAM 15 GB Storage Elasticsearch VM Before starting with anything we need to be sure that the universe repository is enabled 1 sudo add-apt-repository universe We should update the VMs: 1 sudo apt-get update && sudo apt-get upgrade Install these additional packages: 1 sudo apt-get install apt-transport-https openjdk-17-jre-headless uuid-runtime pwgen Reboot the VM
UV Package Manager Cheatsheet Installation 1 curl -LsSf https://astral.sh/uv/install.sh | sh Python Version Management Traditional:
1 2 pyenv install 3.12 pyenv versions UV Method:
1 2 uv python install 3.12 uv python list Project Initialization Script Project Create <script_name>.py Initialize: 1 uv init --script <script_name>.py Application Project 1 uv init <app_name> Structure:
1 2 3 4 5 6 7 <app_name>/ ├── .git/ ├── .gitignore ├── .python-version ├── README.md ├── hello.py └── pyproject.