Docker
Arkime publishes one official image, and it contains every Arkime application: capture, viewer, Cont3xt, WISE, Parliament, esProxy and the db.pl/ch.pl database tools.
The command you give the container decides which one runs, so a full Arkime deployment is that same image started a few times with different commands.
Included in the image is a docker.sh helper that handles the awkward parts of running Arkime in a container — waiting for the database to come up, initializing or upgrading the schema, creating a first admin user, refreshing the GeoIP files, and giving capture time to flush its pcap on shutdown.
You can ignore it and run the tools directly if you’d rather.
Pull it and check it works:
docker run --rm ghcr.io/arkime/arkime/arkime:v6-latest /opt/arkime/bin/capture --version
In a hurry? Skip to the Capture and Viewer compose example, it is a complete working setup you can copy.
The images live in the Github Arkime Container Registry, and are published for Arkime 5.5.0 and later.
Choosing the Right Arkime Image Tag
We offer several tags to help you choose the right Arkime image for your needs. All of our releases are multi-architecture, so you can use the same tag on both amd64 and arm64 systems. We recommend using the v6-latest tag, or v6.9.0 (or later) if you pin a version, for the most stable and secure experience.
Security: Arkime 6.9.0 fixed a number of HIGH severity vulnerabilities across capture, viewer, esProxy, Cont3xt and WISE, including several ways a capture node could read or change data it shouldn’t through esProxy. Any image older than 6.9.0, including every 5.x image, has known HIGH severity vulnerabilities — upgrade. See the CHANGELOG for the full list.
Stable Releases:
- v6-latest: This tag points to the most recent stable release within the 6.x series. Use this if you want to stay on a specific major version. (recommended)
- v6-ja4-latest: Same as v6-latest but with the ja4 plugin included.
- latest: This tag points to the most recent stable release, whatever the major version. Because it rolls across major versions it can upgrade you to a new major release unexpectedly. (not recommended)
- ja4-latest: Same as latest but with the ja4 plugin included. (not recommended)
- vM.M.B: This tag points to a specific release version (e.g., v6.9.2). Use this if you need a particular version for compatibility or other reasons.
- vM.M.B-ja4: Same as vM.M.B but with the ja4 plugin included.
Development Snapshots:
Snapshots are rebuilt from the branch tip, they are how you try unreleased features and they have had far less testing than a release. Don’t use them in production.
- snapshot-v6-latest: The latest development snapshot for the next 6.x release.
- snapshot-v6-ja4-latest: Same as snapshot-v6-latest but with the ja4 plugin included.
- snapshot-v7-latest: The latest development snapshot of Arkime 7.
- snapshot-v7-ja4-latest: Same as snapshot-v7-latest but with the ja4 plugin included.
Trying Arkime 7
Arkime 7 is still a release candidate, so there is no v7-latest tag yet.
Use snapshot-v7-latest (or snapshot-v7-ja4-latest) to try it, and read the breaking changes first — a v7 viewer or capture will upgrade the database schema and you can’t go back to v6 afterwards.
Test it against a copy of your data, not your production cluster.
Note: v5 images (v5-latest, v5-ja4-latest) are still published so existing installs can still pull, but 5.x is no longer maintained, has the HIGH severity vulnerabilities fixed in 6.9.0, and should not be used for new deployments.
What’s Inside the Image
The image is Debian based and installs the normal Arkime Debian package, so everything lives under /opt/arkime exactly like a package install:
/opt/arkime/bin-capture,docker.sh,arkime_add_user.sh,arkime_update_geo.sh/opt/arkime/db-db.pland, in Arkime 7,ch.pl/opt/arkime/viewer,/opt/arkime/cont3xt,/opt/arkime/wiseService,/opt/arkime/parliament- the node applications/opt/arkime/etc- empty on purpose. This is the directory you mount your own config into. The files the package normally ships here are in/opt/arkime/samplesinstead, so you can copy one out as a starting point:docker run --rm ghcr.io/arkime/arkime/arkime:v6-latest cat /opt/arkime/samples/config.ini.sample > config.ini/opt/arkime/share- Arkime 7 only. The files Arkime ships and replaces on upgrade (default rules, Featherprint rules, system dashboards) are new in Arkime 7 and live here rather than in/opt/arkime/etc, so mounting your own config overetcdoesn’t hide them.
The image is built on Debian 13 slim and also installs curl, procps, iproute2 and geoipupdate (used by --update-geo).
The Arkime 7 images additionally install Debian’s tshark for the new Shark session detail tab, and it works as shipped.
The viewer wants tshark 4.4.19 or later, which is what Debian 13 ships, so the tab is usable with no extra setup. The minimum is per release series, so a 4.6 tshark has to be 4.6.4 or later — an early 4.6 came out before 4.4.19 despite the higher number.
tshark parses untrusted packet data, so if you are mounting your own instead of using the image’s, keep it patched.
To do that, mount it over /opt/arkime/bin/tshark and there is nothing else to set: tsharkPath is a list of candidates that starts with that path, and the viewer uses the first one it finds that is new enough.
The container’s default command is /bin/bash, so a container with no command just drops you at a shell — handy for poking around:
docker run --rm -it ghcr.io/arkime/arkime/arkime:v6-latest
Configuring Arkime Containers
You can configure Arkime containers using three primary methods:
- Environment Variables:
- Set environment variables to configure the container. (
ARKIME__<config>=<value>for the default section orARKIME_<section>__<config>=<value>) - These variables take precedence over configuration file settings.
- Set environment variables to configure the container. (
- Configuration File:
- Create a local configuration file.
- Mount this file into the container to override default settings.
- Some complex config file sections may require this method.
- Command-Line Options:
- Use the
-ocommand-line option to specify additional configuration options. (-o <section>.<config>=<value>) - This method provides flexibility for one-time or specific configuration changes, but is not recommended for regular use.
- Use the
For comprehensive configuration, consider combining these methods:
- Use a configuration file for general settings.
- Use environment variables for specific overrides.
Characters that aren’t legal in environment variable names
Environment variables can’t contain -, :, . or /, which some section names and settings need.
Spell them out in upper case and Arkime converts them back:
| In the config file | In the environment variable |
|---|---|
- |
DASH |
: |
COLON |
. |
DOT |
/ |
SLASH |
So this config file:
[remote-clusters]
arkime2=url:http://arkime2:8005;name:Arkime 2
[featherprint-subnet]
192.168.0.0/16=alertAll
becomes:
environment:
- ARKIME_remoteDASHclusters__arkime2=url:http://arkime2:8005;name:Arkime 2
- ARKIME_featherprintDASHsubnet__192DOT168DOT0DOT0SLASH16=alertAll
Note that the value needs no escaping, only the section and setting names.
([featherprint-subnet] is an Arkime 7 section, it is only used here to show a setting name with dots and a slash in it.)
Cont3xt, WISE and Parliament and the users database
Cont3xt, WISE and Parliament don’t store sessions, so the only database they need is the users one, and that is a separate setting: usersElasticsearch, not elasticsearch.
Parliament reads only usersElasticsearch and falls back to http://localhost:9200, which inside a container is the container itself, so setting just ARKIME__elasticsearch would leave it looking for a database that isn’t there.
To save you setting both, docker.sh copies them across before it starts cont3xt, wise, parliament or esproxy.
The whole copy is skipped if you set ARKIME__usersElasticsearch yourself:
If ARKIME__usersElasticsearch is unset and you set |
docker.sh also sets |
|---|---|
ARKIME__elasticsearch |
ARKIME__usersElasticsearch |
ARKIME__elasticsearchBasicAuth |
ARKIME__usersElasticsearchBasicAuth |
ARKIME__prefix |
ARKIME__usersPrefix |
This is why the Cont3xt example below sets only ARKIME__elasticsearch and still finds its users.
It does not happen for capture or the viewer, which read elasticsearch for sessions and fall back to it for users on their own.
Note: the copy is decided by ARKIME__usersElasticsearch alone. If you set ARKIME__prefix and ARKIME__usersPrefix but not ARKIME__usersElasticsearch, your ARKIME__usersPrefix is overwritten with ARKIME__prefix. Set ARKIME__usersElasticsearch explicitly whenever the two databases differ in any way.
docker.sh Options
docker.sh takes a command, then its own options, then -- followed by arguments passed straight through to the command.
/opt/arkime/bin/docker.sh <command> [docker.sh options] -- [command arguments]
The image you are running always knows best, so to see exactly what your version supports:
docker run --rm ghcr.io/arkime/arkime/arkime:v6-latest /opt/arkime/bin/docker.sh help
Commands: capture, capture-viewer, viewer, cont3xt, wise, parliament, esproxy, db.pl, and in Arkime 7 ch.pl.
Useful options:
| Option | What it does |
|---|---|
--wait-for-db <url> |
Block startup until OpenSearch/Elasticsearch answers. Always use this on anything that talks to the database, see the restart note below. |
--wait-for-ch <url> |
Arkime 7 only. Block startup until ClickHouse answers. |
--db '<args>' |
Run db.pl <args> before the command starts. Can be given multiple times and they run in order. |
--ch '<args>' |
Arkime 7 only. Run ch.pl <args> before the command starts, after any --db. Can be given multiple times. |
--add-admin |
Create an admin/admin user if there is no user named admin. Change the password immediately. It matches on that name rather than on whether you have any admin at all, so if your admin account is called something else this re-creates admin/admin every start — drop the option once you have your own admin. Without it a brand new install has no users and you can’t log in. |
--update-geo |
Run arkime_update_geo.sh on start, which downloads the RIR and OUI files into /opt/arkime/etc and then runs geoipupdate. geoipupdate needs /etc/GeoIP.conf mounted; without it it still runs, fails, and logs an error on every start, which is harmless if you don’t use MaxMind. |
--insecure |
Skip TLS certificate verification for the setup steps only. Enough for a self-signed cluster on localhost, see below. |
--insecure-all |
Since 6.9.3. The same, and pass --insecure to the command as well. Needed for a self-signed cluster that isn’t on localhost. Only on a trusted network. |
--basedir <dir> |
Use a different base directory, default /opt/arkime. |
--forever |
Restart the tool in a loop if it exits instead of letting the container exit. Usually you want Docker’s own restart: policy instead. |
-- |
Everything after this goes to the command, for example -- --node sensor1 --host sensor1.example.com. |
The old --init, --upgrade, --ilm and --ism options still work but are deprecated, use --db instead.
Note: when the command itself is db.pl or ch.pl you still have to give it something to do after the --. Both exit non-zero when called with no arguments, which matters if another service is waiting on service_completed_successfully.
--insecure and self-signed certificates
Which option you need depends on where your cluster is, because Arkime already trusts a loopback certificate on its own.
capture, the viewer and the other node tools skip verification for a loopback host without being asked. curl, which docker.sh uses for --wait-for-db and --wait-for-ch, does not.
Which spellings count depends on the version. Arkime 7 treats localhost, any 127.x.x.x and ::1 as loopback everywhere, db.pl and ch.pl included. Arkime 6 covers localhost and 127.0.0.1, there is no ch.pl, and only the node tools also recognize ::1.
A self-signed cluster on localhost — curl is the only thing that objects, so the setup steps are all you need to cover:
command: /opt/arkime/bin/docker.sh viewer --insecure --wait-for-db https://localhost:9200
A self-signed cluster anywhere else — the command keeps its own connections open for the life of the container and will reject the certificate moments after the setup steps succeed, so it needs the option too:
command: /opt/arkime/bin/docker.sh viewer --insecure-all --wait-for-db https://es:9200
--insecure-all is new in Arkime 6.9.3. On 6.9.2 and earlier, pass it to the command yourself after the --, which still works on any version:
command: /opt/arkime/bin/docker.sh viewer --insecure --wait-for-db https://es:9200 -- --insecure
On 6.9.2 and earlier either option also had to appear before --wait-for-db, because that check ran while the options were still being read, so a --insecure after it never reached the health check and the container waited for a cluster it would not accept. Putting it first works on every version.
Note: ARKIME__insecure was never an Arkime setting, only something the old docker.sh read for its own curl call, and since 6.4.0 a container exits at startup if it is set. Use the options above. Better still, mount your CA and set caTrustFile so certificates are verified properly.
Keeping the database schema in sync
The database command you want is initorupgradenoprompt --ifneeded:
- on a brand new cluster it initializes the Arkime indices
- on an existing cluster it upgrades them only if the schema version changed
- if everything is already current it does nothing
That makes it safe to run on every start, so you never have to remember a manual db.pl init.
--db "http://localhost:9200 initorupgradenoprompt --ifneeded"
Note: initorupgrade requires Arkime 6.7.0 or later. On older versions run db.pl init by hand once, then use --db "<url> upgradenoprompt --ifneeded".
Setting up an Arkime environment
- Install OpenSearch or Elasticsearch - containerized or standalone, either is fine. Arkime 7 can also use ClickHouse or Postgres for some of its data.
- Set up directories - you need a directory for pcap and we recommend one for config and the extra GeoIP/RIR/OUI files.
- The examples use
/arkime/pcapmounted at/opt/arkime/rawand/arkime/etcmounted at/opt/arkime/etc. - They must be writable by the user capture drops to (
dropUser,nobodyin the examples). - We don’t recommend
/homebased directories since you may run into permission issues.
- The examples use
- Create a configuration file (optional) - the defaults plus a few environment variables are usually enough to get started. If you want one, put it at
/opt/arkime/etc/config.iniin the mounted etc directory. See Arkime Settings and the sample below. - Start your containers -
docker compose up -d. Thedb-initservice in the examples below initializes or upgrades the database before capture and the viewer start, so there is no separate one-time init step.
If you’d rather initialize by hand, run it once against a fresh cluster:
docker run --rm --network=host ghcr.io/arkime/arkime/arkime:v6-latest \
/opt/arkime/db/db.pl http://localhost:9200 init
Use the special hostname host.docker.internal for the database host if it is running on the same host but not with network_mode: host (Linux users may need --add-host=host.docker.internal:host-gateway).
Docker Compose Examples
Capture and Viewer
This is a complete single-host setup: one service to initialize/upgrade the database, then capture and the viewer.
It assumes an OpenSearch/Elasticsearch already running at http://localhost:9200, and the directories from above.
services:
# Creates the Arkime indices on a fresh database, and upgrades them after an
# Arkime update. Runs on every "docker compose up" and then exits; --ifneeded
# makes it a no-op once the database is already current.
db-init:
container_name: db-init
image: ghcr.io/arkime/arkime/arkime:v6-latest
network_mode: "host"
command: /opt/arkime/bin/docker.sh db.pl --wait-for-db http://localhost:9200 --db "http://localhost:9200 initorupgradenoprompt --ifneeded --ilm" -- http://localhost:9200 ilm 26h 90d
user: root
restart: "no"
capture:
container_name: capture
image: ghcr.io/arkime/arkime/arkime:v6-latest
network_mode: "host"
command: /opt/arkime/bin/docker.sh capture --wait-for-db http://localhost:9200 --update-geo
user: root
# Give capture time to save its sessions and close its pcap files on stop
stop_grace_period: 60s
depends_on:
db-init:
condition: service_completed_successfully
environment:
- ARKIME__interface=eth0
- ARKIME__dropUser=nobody
- ARKIME__elasticsearch=http://localhost:9200
- ARKIME__rirFile=/opt/arkime/etc/ipv4-address-space.csv
- ARKIME__ouiFile=/opt/arkime/etc/oui.txt
volumes:
- /arkime/etc:/opt/arkime/etc
- /arkime/pcap:/opt/arkime/raw
- /arkime/maxmind:/var/lib/GeoIP
- ./GeoIP.conf:/etc/GeoIP.conf
restart: unless-stopped
viewer:
container_name: viewer
image: ghcr.io/arkime/arkime/arkime:v6-latest
network_mode: "host"
command: /opt/arkime/bin/docker.sh viewer --wait-for-db http://localhost:9200 --add-admin
user: root
depends_on:
db-init:
condition: service_completed_successfully
environment:
- ARKIME__viewPort=8005
- ARKIME__cronQueries=auto
- ARKIME__dropUser=nobody
- ARKIME__elasticsearch=http://localhost:9200
volumes:
- /arkime/etc:/opt/arkime/etc
- /arkime/pcap:/opt/arkime/raw
restart: unless-stopped
Then:
docker compose up -d
Compose starts db-init, waits for it to exit successfully, and then starts capture and the viewer.
Browse to http://<host>:8005 and log in with admin/admin, then change the password under Settings -> Password.
To add more users, use the UI OR to manually add:
docker compose exec viewer /opt/arkime/bin/arkime_add_user.sh <user> "<Full Name>" <password> --admin
Updating is the same two commands every time, the schema upgrade happens on its own because db-init runs again:
docker compose pull
docker compose up -d
Some notes on this example:
db-initruns on everyup, not on restarts.depends_onis only honored bydocker compose up. Adocker compose restart, a container crash, or the Docker daemon restarting containers after a reboot all bypass it. That is why capture and the viewer still have their own--wait-for-db: without it they would crash-loop while the database comes up.- GeoIP is optional. Drop the
/var/lib/GeoIPandGeoIP.confmounts and--update-geoif you don’t use MaxMind. See the MaxMind FAQ entry for getting a license key. You don’t need to setgeoLite2Country,/var/lib/GeoIP/GeoLite2-City.mmdbandGeoLite2-Country.mmdbare searched by default. user: rootis intentional. capture needs root to open the interface and both tools drop todropUser/dropGroupafterwards.- ILM is optional. The
--ilmandilm 26h 90dabove tell Elasticsearch to roll indices over after 26 hours and delete them after 90 days. Useisminstead ofilmfor OpenSearch, or drop both and expire withdb.pl expire. - Add
-n <nodename>after--if capture and the viewer use different node names, see Common Issues below.
Cont3xt
In this example we are starting cont3xt and using a local cont3xt.ini file and overriding the port cont3xt listens on.
Environment variables are of the format ARKIME_<section>__<config>=<value>.
services:
cont3xt:
image: ghcr.io/arkime/arkime/arkime:v6-latest
network_mode: "host"
command: /opt/arkime/bin/docker.sh cont3xt --wait-for-db https://example.com:9200
environment:
- ARKIME_cont3xt__port=3220
- ARKIME__elasticsearch=https://example.com:9200
volumes:
- ./cont3xt.ini:/opt/arkime/etc/cont3xt.ini
restart: always
Arkime 7 with ClickHouse Sessions
Arkime 7 can store sessions in ClickHouse while keeping stats, files, fields, hunts, history and users in OpenSearch/Elasticsearch. This is experimental, try it out but keep OpenSearch/Elasticsearch for production.
ClickHouse needs its own one-shot init service. Use ch.pl upgrade, which creates the database and tables if they are missing and then migrates the schema, so it is safe on every start. Do not use ch.pl init here, it drops and recreates the sessions table.
services:
clickhouse:
container_name: clickhouse
image: clickhouse/clickhouse-server:26.8
network_mode: "host"
ulimits:
nofile:
soft: 262144
hard: 262144
volumes:
- /chdata:/var/lib/clickhouse
healthcheck:
test: ["CMD-SHELL", "clickhouse client -q 'SELECT 1' || exit 1"]
interval: 10s
timeout: 5s
retries: 30
restart: unless-stopped
# Same as the db-init above, for the cluster and users data
db-init:
container_name: db-init
image: ghcr.io/arkime/arkime/arkime:snapshot-v7-latest
network_mode: "host"
command: /opt/arkime/bin/docker.sh db.pl --wait-for-db http://localhost:9200 -- http://localhost:9200 initorupgradenoprompt --ifneeded
user: root
restart: "no"
# ch.pl upgrade is create-if-missing plus schema migration, so it is safe on a
# fresh or an existing database. Do NOT use "ch.pl init", it drops the sessions table.
ch-init:
container_name: ch-init
image: ghcr.io/arkime/arkime/arkime:snapshot-v7-latest
network_mode: "host"
command: /opt/arkime/bin/docker.sh ch.pl --wait-for-ch http://localhost:8123 -- http://localhost:8123 upgrade
user: root
depends_on:
clickhouse:
condition: service_healthy
restart: "no"
capture:
container_name: capture
image: ghcr.io/arkime/arkime/arkime:snapshot-v7-latest
network_mode: "host"
command: /opt/arkime/bin/docker.sh capture --wait-for-db http://localhost:9200 --wait-for-ch http://localhost:8123 --update-geo
user: root
stop_grace_period: 60s
depends_on:
db-init:
condition: service_completed_successfully
ch-init:
condition: service_completed_successfully
environment:
- ARKIME__interface=eth0
- ARKIME__dropUser=nobody
- ARKIME__elasticsearch=http://localhost:9200
- ARKIME__sessionsDbUrl=clickhouse://localhost:8123/arkime
volumes:
- /arkime/etc:/opt/arkime/etc
- /arkime/pcap:/opt/arkime/raw
restart: unless-stopped
viewer:
container_name: viewer
image: ghcr.io/arkime/arkime/arkime:snapshot-v7-latest
network_mode: "host"
command: /opt/arkime/bin/docker.sh viewer --wait-for-db http://localhost:9200 --wait-for-ch http://localhost:8123 --add-admin
user: root
depends_on:
db-init:
condition: service_completed_successfully
ch-init:
condition: service_completed_successfully
environment:
- ARKIME__viewPort=8005
- ARKIME__dropUser=nobody
- ARKIME__elasticsearch=http://localhost:9200
- ARKIME__sessionsDbUrl=clickhouse://localhost:8123/arkime
volumes:
- /arkime/etc:/opt/arkime/etc
- /arkime/pcap:/opt/arkime/raw
restart: unless-stopped
Things to know:
- With no password, the ClickHouse default user only accepts connections from localhost, which is why this example is
network_mode: host. Set a user and password with sessionsDbUrl if that isn’t true for you. - ClickHouse has no ILM/ISM. Expire old sessions with
ch.pl <url> expire <days>from a cron job or a scheduled container. - Want to try ClickHouse with the sensors you already have? esProxy’s
[tee]section can copy every session into ClickHouse while your viewers keep reading OpenSearch/Elasticsearch, see esProxy.
Sample Capture/Viewer Config File
The Arkime defaults are usually good enough to get started. The examples save this file as /opt/arkime/etc/config.ini and mount the /opt/arkime/etc directory into the container.
[default]
### DB Settings - https://arkime.com/settings#db
elasticsearch=***UPDATE***
### PCAP Reading - https://arkime.com/settings#reader-afpacket
interface=***UPDATE***
snapLen=32768
pcapReadMethod=afpacketv3
tpacketv3NumThreads=1
### PCAP Writing - https://arkime.com/settings#pcapstorage
pcapDir=/opt/arkime/raw
### Processing - https://arkime.com/settings#capture
packetThreads=1
rirFile=/opt/arkime/etc/ipv4-address-space.csv
ouiFile=/opt/arkime/etc/oui.txt
#rulesFiles=/opt/arkime/etc;/opt/arkime/share
### User/Group to drop privileges to, pcapDir must be writable by this user or group
dropUser=nobody
dropGroup=daemon
Common Issues
Can’t view PCAP files
The capture and viewer must use the same node name when on the same physical host.
When using different containers for capture and viewer, you may need to add a -n <nodename> to both the capture and viewer commands, after the --:
command: /opt/arkime/bin/docker.sh capture --wait-for-db http://localhost:9200 -- -n sensor1
The viewer also has to see the same pcap, so both containers need the same /opt/arkime/raw mount.
The viewer returns “Bad Request”
This almost always means webBasePath doesn’t match the path you are using.
If you reverse proxy the viewer under a path prefix, webBasePath must be that prefix with leading and trailing slashes (/arkime/), and once it is set the viewer is only reachable under that path.
If you aren’t proxying, don’t set webBasePath at all.
There is a full Caddy example in the UDR7 guide.
Can’t log in to a brand new install
A fresh database has no users. Add --add-admin to the viewer command to create an admin/admin user (and change the password right away), or run arkime_add_user.sh in the container.
--add-admin only looks for a user named admin, so once you have your own admin account under a different name, take the option back out rather than leaving it to re-create admin/admin on every start.
Permission denied writing pcap
The pcap directory has to be writable by the user capture drops to. With the examples’ dropUser=nobody:
chown nobody /arkime/pcap /arkime/etc
Avoid /home based paths, they tend to have restrictive permissions.
Capture loses the last sessions when stopped
capture needs time to flush its sessions and close its pcap files. Docker’s default stop timeout is 10 seconds, which is often not enough on a busy sensor. Set stop_grace_period: 60s on the capture service (or docker stop -t 60).
The database upgrade didn’t run
depends_on is only applied by docker compose up. After a reboot, a crash, or docker compose restart, the db-init service does not run again. Run docker compose up -d after pulling a new image, and keep --wait-for-db on everything that talks to the database.
Uploading PCAP through the UI does nothing useful
uploadCommand runs capture inside the viewer container, so that viewer also needs the GeoIP, RIR and OUI settings and the MaxMind volume, otherwise the uploaded sessions are missing the enrichment your sensors add. The UDR7 guide shows the full group of settings to enable together.
For a more complete real-world example (including a colocated Elasticsearch container, ILM, the ja4 plugin, TZSP capture, and a Caddy HTTPS proxy), see the UDR7 guide.