File victoria-logs.service of Package VictoriaLogs

[Unit]
Description=Fast and easy to use database for logs, which can efficiently handle terabytes of logs
Documentation=https://docs.victoriametrics.com/victorialogs/quickstart/#how-to-configure-victorialogs
After=network.target

[Service]
## to reconfigure this ExecStart= line you do unset the current unset the ExecStart= and then 
# ExecStart=
# ExecStart=/usr/sbin/victoria-logs -storageDataPath=/var/lib/victoria-logs <your additional options here>
ExecStart=/usr/sbin/victoria-logs -storageDataPath=/var/lib/victoria-logs

Type=simple
WorkingDirectory=~
StandardOutput=journal
StandardError=journal
User=victoria-logs
Group=victoria-logs

# capabilities
AmbientCapabilities=CAP_NET_BIND_SERVICE
CapabilityBoundingSet=CAP_NET_BIND_SERVICE

# sandboxing
ProtectHostname=yes
ProtectClock=yes
ProtectKernelTunables=yes
ProtectKernelModules=yes
ProtectKernelLogs=yes
ProtectSystem=strict
ProtectHome=yes
StateDirectory=victoria-logs
ProtectControlGroups=yes
PrivateTmp=yes
PrivateDevices=yes
RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6
LockPersonality=yes
MemoryDenyWriteExecute=yes
RestrictRealtime=yes
RestrictSUIDSGID=yes
NoNewPrivileges=yes
RemoveIPC=yes
RestrictNamespaces=yes

# syscall filtering
SystemCallFilter=@system-service @debug
SystemCallArchitectures=native

# process properties
UMask=077

[Install]
WantedBy=multi-user.target
openSUSE Build Service is sponsored by