Configuration reference
Every STRUCTAM_* environment variable of the server and the agent, with its default and the processes that read it, generated from the product's own list.
On this page
Structam is configured with environment variables only; there is no configuration file. This page lists every variable an operator sets, with the default the code applies and the processes that read it. It is generated from the product's own reference, which a product test keeps in step with the code.
How values are read
- Only
STRUCTAM_DATABASE_URLandSTRUCTAM_SECRET_KEYare required (STRUCTAM_PUBLIC_URLtoo forserveandall). Every other variable has the default shown. - Booleans are
on/off(alsotrue/false,1/0,yes/no). Durations use Go syntax (90s,15m,1h). Lists are comma-separated. - A variable marked file form is a secret and also accepts
<NAME>_FILE, the path of a file holding the value (Docker and Kubernetes secrets, systemd credentials). Set one form, not both: setting both stops start-up. - Every value is validated at start. A process with an invalid value does not start, and the error names the variable.
- Settings saved in the UI (Integrations, Access, System) replace the environment for their integration while the saved row exists; deleting the saved setting returns to the environment.
- Variables marked cluster-wide must be identical on every node, workers included. Each node records a hash of them, and System → Nodes flags a node whose hash differs.
In the "Used by" column, serve, worker and all are the server roles; "admin commands" are the one-shot subcommands (structam migrate, user, token and the rest), which read the same environment; structam-agent is the host agent, which reads its own env file, not the server's. Background tasks run on whichever node holds their lease, workers included, so settings used by "serve, worker, all" belong in every node's environment.
Where the environment comes from depends on how Structam was installed: /etc/structam/structam.env with the server installer, deploy/compose/structam.env with Docker Compose, the ConfigMap and Secret on Kubernetes.
Database
| Variable | Default | Used by |
|---|---|---|
STRUCTAM_DATABASE_URL (file form) | required | serve, worker, all; admin commands |
PostgreSQL 16 or newer. For a cluster list every database host; Structam adds target_session_attrs=primary and connect_timeout=3 when they are missing, so it always writes to the current primary. Transaction-mode PgBouncer is not supported (session mode is fine).
| Variable | Default | Used by |
|---|---|---|
STRUCTAM_DB_MAX_CONNS | 0 (worker pool maxima + 8, +12 on serve and all; at least 16) | serve, worker, all |
Connection pool size; 0 uses the role's default. At least 12 when set.
| Variable | Default | Used by |
|---|---|---|
STRUCTAM_MIGRATE | auto | serve, worker, all |
auto applies pending schema migrations at start (single node). For clusters set off and run structam migrate once per upgrade, before starting the new release.
Secrets
| Variable | Default | Used by |
|---|---|---|
STRUCTAM_SECRET_KEY (file form) | required | serve, worker, all; admin commands |
32 or more random bytes, base64 (openssl rand -base64 32). Cluster-wide. Seals integration secrets, sink credentials, configuration file contents and the server identity key. Losing it loses those; keep a copy outside the database backups.
| Variable | Default | Used by |
|---|---|---|
STRUCTAM_SECRET_KEY_PREVIOUS (file form) | unset | serve, worker, all; rotate-secret-key |
Only while rotating: the key being replaced, so values sealed with it still open until structam rotate-secret-key has re-sealed them. Unset it afterwards.
| Variable | Default | Used by |
|---|---|---|
STRUCTAM_SERVER_KEY_FILE | unset (key generated once, stored sealed) | serve, worker, all |
Overrides the server identity key (Ed25519) that is otherwise generated once and stored sealed in the database. Agents pin this key; replacing it needs structam server-key rotate.
Listeners and URLs
| Variable | Default | Used by |
|---|---|---|
STRUCTAM_HTTP_ADDR | :8080 | serve, all; healthcheck |
API, web UI and agent gateway (serve and all).
| Variable | Default | Used by |
|---|---|---|
STRUCTAM_WORKER_ADDR | :8081 | worker; healthcheck -worker |
/livez, /readyz and /metrics of the worker role.
| Variable | Default | Used by |
|---|---|---|
STRUCTAM_METRICS_ADDR | unset (no extra listener) | serve, all |
When set, /metrics is also served here without authentication (bind it to a management network).
| Variable | Default | Used by |
|---|---|---|
STRUCTAM_PUBLIC_URL | required by serve and all | serve, worker, all |
The https:// URL agents and browsers use. Cluster-wide: give workers the same value (it is part of the configuration hash, and it names the STIX identity). Required by serve and all; install.sh requires it for every role.
| Variable | Default | Used by |
|---|---|---|
STRUCTAM_ALLOWED_ORIGINS | unset | serve, all |
Extra origins accepted by the cross-site request check, comma-separated. Cluster-wide.
| Variable | Default | Used by |
|---|---|---|
STRUCTAM_TRUSTED_PROXIES | unset (X-Forwarded-For ignored) | serve, all |
Reverse proxies and load balancers whose X-Forwarded-For is believed (CIDRs or addresses). Cluster-wide.
| Variable | Default | Used by |
|---|---|---|
STRUCTAM_DRAIN_DELAY | 5s (0 to 2m) | serve, worker, all |
How long a stopping node reports not-ready before it closes its listeners, so load balancers move away first.
| Variable | Default | Used by |
|---|---|---|
STRUCTAM_INSECURE_DEV | off | serve, worker, all |
Development only: plain-HTTP cookies and URLs. Logged as a warning on every start.
Outbound proxy
| Variable | Default | Used by |
|---|---|---|
STRUCTAM_PROXY_DIRECT | 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16, 169.254.0.0/16, fc00::/7, fe80::/10 | serve, worker, all |
HTTPS_PROXY, HTTP_PROXY and NO_PROXY are honoured for NetBox, InfraDB, the licence server, LLM providers and SIEM sinks. These ranges are always direct (empty = the private ranges below; "none" = loopback only). The cloud metadata addresses 169.254.169.254 and fd00:ec2::254 are never direct unless named on their own. Cluster-wide.
NetBox (source of truth for hosts)
| Variable | Default | Used by |
|---|---|---|
STRUCTAM_NETBOX_URL | unset (NetBox off) | serve, worker, all; structam netbox |
Used while no NetBox setting is saved on the Integrations page; a saved setting replaces all of these (except the two intervals), and deleting it reverts to them. Cluster-wide. The NetBox URL (3.7 to 4.7). Empty: NetBox is not configured.
| Variable | Default | Used by |
|---|---|---|
STRUCTAM_NETBOX_TOKEN (file form) | unset | serve, worker, all; structam netbox |
Read token (v1 40-hex token, or a v2 nbt_<key>.<secret> token). Needs view on dcim.device, dcim.interface, dcim.site, dcim.platform, dcim.devicerole, ipam.ipaddress, tenancy.tenant, extras.tag, virtualization.virtualmachine, virtualization.vminterface and virtualization.cluster.
| Variable | Default | Used by |
|---|---|---|
STRUCTAM_NETBOX_WEBHOOK_SECRET (file form) | unset (webhooks refused) | serve, worker, all |
Verifies NetBox's X-Hook-Signature on POST /api/v1/ingest/netbox; without it webhooks are refused (the 60 s poll still finds every change).
| Variable | Default | Used by |
|---|---|---|
STRUCTAM_NETBOX_VERIFY_TLS | on | serve, worker, all |
off skips verification of NetBox's TLS certificate (a lab NetBox only; prefer STRUCTAM_NETBOX_CA_FILE).
| Variable | Default | Used by |
|---|---|---|
STRUCTAM_NETBOX_CA_FILE | unset (system roots) | serve, worker, all |
PEM certificates that replace the system roots for NetBox (a private CA).
| Variable | Default | Used by |
|---|---|---|
STRUCTAM_NETBOX_DEVICE_FILTER | unset (every device) | serve, worker, all |
STRUCTAM_NETBOX_VM_FILTER | unset (every virtual machine) | serve, worker, all |
NetBox query strings added to the device and virtual machine lists, e.g. status=active&tenant=noc. Hosts outside them count as gone from NetBox.
| Variable | Default | Used by |
|---|---|---|
STRUCTAM_NETBOX_EXPECT_AGENT_FILTER | unset (off) | serve, worker, all |
NetBox hosts that should run an agent (drift host.no_agent after 24 h without one): * for every active host, or keys site, tenant, role, platform, tag, status, type (device or vm), e.g. role=server&tag=linux. Empty: off.
| Variable | Default | Used by |
|---|---|---|
STRUCTAM_NETBOX_PRUNE | decommission | serve, worker, all |
decommission marks hosts NetBox no longer returns as decommissioned (never deleted; refused when a run would remove more than half of 10 or more hosts); none leaves them as they are.
| Variable | Default | Used by |
|---|---|---|
STRUCTAM_NETBOX_SYNC_INTERVAL | 15m (1m to 24h) | serve, worker, all |
STRUCTAM_NETBOX_POLL_INTERVAL | 1m (10s to 1h) | serve, worker, all |
Full reconciliation interval (lease task netbox-sync) and incremental poll interval (netbox-poll).
| Variable | Default | Used by |
|---|---|---|
STRUCTAM_NETBOX_WRITEBACK | off | serve, worker, all |
STRUCTAM_NETBOX_JOURNAL | off | serve, worker, all |
STRUCTAM_NETBOX_WRITE_TOKEN (file form) | unset | serve, worker, all |
Write-back into Structam's own custom fields (structam_*; create them with structam netbox bootstrap) and, with JOURNAL, journal entries for approved and rejected high-severity changes. Needs a separate write token with change on dcim.device and virtualization.virtualmachine and add on extras.journalentry.
| Variable | Default | Used by |
|---|---|---|
STRUCTAM_NETBOX_WRITE_USER | unset (detected on NetBox 4.5+) | serve, worker, all |
NetBox username of the write token: webhook events it causes are dropped as write-back echoes. Detected on NetBox 4.5 and later when empty.
Logging
| Variable | Default | Used by |
|---|---|---|
STRUCTAM_LOG_FORMAT | text | serve, worker, all; structam-agent |
text or json.
| Variable | Default | Used by |
|---|---|---|
STRUCTAM_LOG_LEVEL | info | serve, worker, all; structam-agent |
debug, info, warn or error.
Retention (days; 0 keeps everything)
| Variable | Default | Used by |
|---|---|---|
STRUCTAM_AUDIT_RETENTION_DAYS | 0 (keep everything) | serve, worker, all |
Audit log. Partitions are dropped whole, never before every enabled SIEM sink has received them. Cluster-wide.
| Variable | Default | Used by |
|---|---|---|
STRUCTAM_CHANGE_RETENTION_DAYS | 0 (keep everything) | serve, worker, all |
Change events. Cluster-wide.
| Variable | Default | Used by |
|---|---|---|
STRUCTAM_CONFIG_RETENTION_DAYS | 0 (keep everything) | serve, worker, all |
Configuration file versions (the newest 20 versions of every file, its current version and every baseline are always kept; unreferenced content is collected a day later). Cluster-wide.
Worker pools
| Variable | Default | Used by |
|---|---|---|
STRUCTAM_INGEST_WORKERS_MIN | 1 on serve, 2 on worker and all | serve, worker, all |
STRUCTAM_INGEST_WORKERS_MAX | 4 x GOMAXPROCS | serve, worker, all |
STRUCTAM_INGEST_BACKLOG_PER_WORKER | 25 | serve, worker, all |
STRUCTAM_DISCOVERY_WORKERS_MIN | 0 | serve, worker, all |
STRUCTAM_DISCOVERY_WORKERS_MAX | 2 | serve, worker, all |
STRUCTAM_DISCOVERY_BACKLOG_PER_WORKER | 5 | serve, worker, all |
STRUCTAM_INTEGRATION_WORKERS_MIN | 0 | serve, worker, all |
STRUCTAM_INTEGRATION_WORKERS_MAX | 2 | serve, worker, all |
STRUCTAM_INTEGRATION_BACKLOG_PER_WORKER | 10 | serve, worker, all |
Each node runs between MIN and MAX workers per pool and adds one per BACKLOG_PER_WORKER queued jobs. Unset MIN means the role's default (ingest: 1 on serve, 2 otherwise; other pools: 0). Unset ingest MAX is 4 x GOMAXPROCS.
| Variable | Default | Used by |
|---|---|---|
STRUCTAM_INGEST_MAX_QUEUE | 100000 (100 to 100000000) | serve, all |
Queued ingest jobs above which agents are told to retry later (they keep the data on disk). Cluster-wide.
Identity and access
Settings saved on the Access page (auth-policy, ldap, oidc-<slug>) replace these for their part; deleting the saved setting returns to the environment.
| Variable | Default | Used by |
|---|---|---|
STRUCTAM_BOOTSTRAP_ADMIN_USER | admin | serve, worker, all |
STRUCTAM_BOOTSTRAP_ADMIN_PASSWORD (file form) | unset (no administrator is created) | serve, worker, all |
The first administrator, created at start only while the database has no users at all. The password must pass the policy (12+ characters, not a common password, not containing the username) or the server does not start; it must be changed at the first sign-in. Remove the password from the environment afterwards. Without it, create the first administrator with structam user create -username admin -admin.
| Variable | Default | Used by |
|---|---|---|
STRUCTAM_LOCAL_LOGIN | all | serve, all |
all: every account may sign in with a password. break-glass: while an OIDC provider is enabled, local passwords work only for administrators (the sign-in page hides the form behind ?local=1). Cluster-wide.
| Variable | Default | Used by |
|---|---|---|
STRUCTAM_REQUIRE_TOTP | off | serve, all |
on: every local account must set up a TOTP second factor before it can do anything else. Cluster-wide.
| Variable | Default | Used by |
|---|---|---|
STRUCTAM_RBAC_TAG_PREFIX | structam- | serve, worker, all |
Tags that grant access through a scoped role grant must start with this prefix. NetBox editors who can tag hosts decide which scoped users see them. Cluster-wide.
LDAP / Active Directory sign-in (unset STRUCTAM_LDAP_URL: no directory). URLs are tried in order; use ldaps://, or ldap:// with STRUCTAM_LDAP_START_TLS=on (plain LDAP is refused: binds carry passwords). Certificates are always verified; STRUCTAM_LDAP_CA_FILE adds a private CA. {username} in the user filter, {dn} and {username} in the group filter are replaced (escaped). Without STRUCTAM_LDAP_GROUP_BASE, groups come from the user's memberOf.
| Variable | Default | Used by |
|---|---|---|
STRUCTAM_LDAP_URL | unset (no directory) | serve, worker, all |
STRUCTAM_LDAP_START_TLS | off | serve, worker, all |
STRUCTAM_LDAP_BIND_DN | unset | serve, worker, all |
STRUCTAM_LDAP_BIND_PASSWORD (file form) | unset | serve, worker, all |
STRUCTAM_LDAP_USER_BASE | unset | serve, worker, all |
STRUCTAM_LDAP_USER_FILTER | unset | serve, worker, all |
STRUCTAM_LDAP_USERNAME_ATTR | unset | serve, worker, all |
STRUCTAM_LDAP_DISPLAY_NAME_ATTR | unset | serve, worker, all |
STRUCTAM_LDAP_EMAIL_ATTR | unset | serve, worker, all |
STRUCTAM_LDAP_GROUP_BASE | unset (groups from memberOf) | serve, worker, all |
STRUCTAM_LDAP_GROUP_FILTER | unset | serve, worker, all |
STRUCTAM_LDAP_NESTED_GROUPS | off | serve, worker, all |
STRUCTAM_LDAP_CA_FILE | unset (system roots) | serve, worker, all |
STRUCTAM_LDAP_TIMEOUT | 8s (1s to 1m) | serve, worker, all |
STRUCTAM_LDAP_SYNC_INTERVAL | 15m (1m to 24h) | serve, worker, all |
STRUCTAM_LDAP_REQUIRE_GROUP | on | serve, worker, all |
STRUCTAM_LDAP_NESTED_GROUPS=on uses Active Directory's in-chain matching rule. Users need a group mapped on the Access page (directory group mappings) unless STRUCTAM_LDAP_REQUIRE_GROUP=off. Cluster-wide.
| Variable | Default | Used by |
|---|---|---|
STRUCTAM_OIDC_PROVIDERS | unset (no OIDC provider) | serve, all |
OpenID Connect providers, by slug (lower case; part of the callback URL <public URL>/api/v1/auth/oidc/<slug>/callback). Each provider is configured with STRUCTAM_OIDC_<SLUG>_<FIELD>, the slug upper-cased with '-' as '_': ISSUER (https://), CLIENT_ID, CLIENT_SECRET (or CLIENT_SECRET_FILE), TITLE, SCOPES (default openid,profile,email), USERNAME_CLAIM (preferred_username), NAME_CLAIM (name), EMAIL_CLAIM (email), GROUPS_CLAIM (groups), AUTO_REDIRECT (off), JIT (on: create accounts at first sign-in), REQUIRE_GROUP (on: refuse users none of whose groups is mapped), RP_LOGOUT (off: sign out at the provider too). Cluster-wide.
STRUCTAM_OIDC_CORP_ISSUER=https://id.example.com
STRUCTAM_OIDC_CORP_CLIENT_ID=structam
STRUCTAM_OIDC_CORP_CLIENT_SECRET_FILE=/etc/structam/secrets/oidc_corp_client_secretAgent gateway
| Variable | Default | Used by |
|---|---|---|
STRUCTAM_AGENT_ADMISSION | enforce | serve, all |
enforce answers a bare 404 to every agent connection without a valid, unused admission stamp. log lets such a connection go on to the handshake (which still authenticates the agent) and only records the refusal: use it briefly to find a proxy that strips the Structam-Admission header. Cluster-wide.
| Variable | Default | Used by |
|---|---|---|
STRUCTAM_AGENT_JOIN_FAILURES_PER_MINUTE | 30 | serve, all |
Failed join-token admissions allowed per client address per minute (counted across nodes) before the address is refused without a database lookup until the bucket refills. Cluster-wide.
| Variable | Default | Used by |
|---|---|---|
STRUCTAM_AGENT_UPDATE_RATE | 60 (0 turns automatic updates off) | serve, worker, all |
Automatic self-updates queued per minute across the cluster, for agents whose policy has auto_update; 0 turns automatic updates off (manual updates from the Agents page still work). Cluster-wide.
Onboarding
| Variable | Default | Used by |
|---|---|---|
STRUCTAM_AGENT_CA_FILE | unset | serve, all |
Private CA bundle (PEM certificates) that the install scripts write to each agent's ca.pem, for a public URL whose TLS certificate the hosts' system trust store does not know. Never installed into the system trust store, and not the agents' trust anchor (that is the pinned server key). The UI setting "onboard" replaces it when saved. A file that holds anything but certificates stops serve and all at start. Cluster-wide.
Licence
| Variable | Default | Used by |
|---|---|---|
STRUCTAM_LICENCE_SERVER | https://license.kazlabs.co | serve, worker, all; structam licence |
The KazLabs licence server for activation and the daily heartbeat (one node at a time, through the proxy settings above). The licence itself is entered on the System page or with structam licence activate, never here. Cluster-wide.
InfraDB
| Variable | Default | Used by |
|---|---|---|
STRUCTAM_INFRADB_URL | unset (InfraDB off) | serve, worker, all |
STRUCTAM_INFRADB_TOKEN (file form) | unset | serve, worker, all |
InfraDB while no "infradb" setting is saved under Integrations -> InfraDB (a saved setting replaces all of these). URL and token go together; unset leaves the integration off. The token is an InfraDB API token (mc token create -name structam -role viewer -scopes ingest): role viewer to read hosts, scope ingest to push alarms, a role with inventory.edit (built-in engineer) only when STRUCTAM_INFRADB_LINKS=on. Cluster-wide.
| Variable | Default | Used by |
|---|---|---|
STRUCTAM_INFRADB_CA_FILE | unset (system roots) | serve, worker, all |
PEM CA bundle that replaces the system roots for InfraDB's certificate.
| Variable | Default | Used by |
|---|---|---|
STRUCTAM_INFRADB_ALARMS | on | serve, worker, all |
Push alarms (change rules with raise_infradb_alarm, agents offline for more than 10 minutes) to InfraDB.
| Variable | Default | Used by |
|---|---|---|
STRUCTAM_INFRADB_ENRICH | on | serve, worker, all |
Read InfraDB's hardware components and firmware into host components (source infradb).
| Variable | Default | Used by |
|---|---|---|
STRUCTAM_INFRADB_LINKS | off | serve, worker, all |
Write a "Structam" entry into external_links and config_backup_url of linked InfraDB hosts.
| Variable | Default | Used by |
|---|---|---|
STRUCTAM_METRICS_HOST_SERIES_MAX | 2000 (1 to 50000) | serve, all |
Per-host series served on GET /metrics/federate (labelled mc_host for InfraDB's Prometheus federation); InfraDB's default scrape cap is 2 000.
Discovery
| Variable | Default | Used by |
|---|---|---|
STRUCTAM_DISCOVERY_SWEEPS | on | serve, worker, all |
Agentless TCP sweeps of the ranges added as discovery targets (nothing else is ever swept), while no "discovery" setting is saved under Integrations -> Discovery. off stops all sweeps; neighbour tables from agents are still folded. Cluster-wide.
| Variable | Default | Used by |
|---|---|---|
STRUCTAM_DISCOVERY_CONNECT_TIMEOUT | 1500ms (100ms to 10s) | serve, worker, all |
TCP connect timeout per probe (100ms to 10s).
| Variable | Default | Used by |
|---|---|---|
STRUCTAM_DISCOVERY_MAX_RATE | 500 (1 to 5000) | serve, worker, all |
STRUCTAM_DISCOVERY_CONCURRENCY | 256 (1 to 4096) | serve, worker, all |
Upper bound of every target's probe rate (probes per second) and probes in flight per sweep.
| Variable | Default | Used by |
|---|---|---|
STRUCTAM_DISCOVERY_REVERSE_DNS | on | serve, worker, all |
STRUCTAM_DISCOVERY_FINGERPRINTS | on | serve, worker, all |
Reverse DNS for responsive addresses; banner, TLS certificate and SSH host key fingerprints of open ports (never credentials).
| Variable | Default | Used by |
|---|---|---|
STRUCTAM_DISCOVERY_RETENTION_DAYS | 90 (1 to 3650) | serve, worker, all |
Endpoints not seen for this many days are deleted (ignored ones are kept).
Ask AI
| Variable | Default | Used by |
|---|---|---|
STRUCTAM_LLM_PROVIDER | unset (Ask AI off) | serve, all; structam assistant |
The model provider of Ask AI while no "llm" setting is saved under Integrations -> Ask AI (a saved setting replaces all of these). Unset STRUCTAM_LLM_PROVIDER and STRUCTAM_LLM_BASE_URL leave Ask AI off. Questions and the data the assistant looks up go to this API only. Sending raw configuration content can only be allowed in the saved setting (send_config_content), where every change is audited. Cluster-wide. anthropic (the Messages API) or openai (any OpenAI-compatible chat completions API, for example a model served on your own hardware).
| Variable | Default | Used by |
|---|---|---|
STRUCTAM_LLM_BASE_URL | unset (anthropic: https://api.anthropic.com) | serve, all; structam assistant |
API root. Anthropic default https://api.anthropic.com; OpenAI-compatible APIs include the version path.
| Variable | Default | Used by |
|---|---|---|
STRUCTAM_LLM_API_KEY (file form) | unset | serve, all; structam assistant |
Required for anthropic, optional for local OpenAI-compatible servers.
| Variable | Default | Used by |
|---|---|---|
STRUCTAM_LLM_MODELS | unset (what the API lists) | serve, all; structam assistant |
STRUCTAM_LLM_DEFAULT_MODEL | unset (anthropic: a built-in default) | serve, all; structam assistant |
Models users may pick (comma-separated; empty: what the API lists) and the default (anthropic: a built-in default model).
| Variable | Default | Used by |
|---|---|---|
STRUCTAM_LLM_TIMEOUT | 180s (10s to 15m) | serve, all; structam assistant |
STRUCTAM_LLM_MAX_STEPS | 8 (1 to 20) | serve, all; structam assistant |
STRUCTAM_LLM_MAX_OUTPUT_TOKENS | 16000 (256 to 128000) | serve, all; structam assistant |
One model call (10s-15m), tool rounds per answer (1-20) and max_tokens per call (256-128000).
| Variable | Default | Used by |
|---|---|---|
STRUCTAM_LLM_NATIVE_TOOLS | off | serve, all; structam assistant |
on: the provider's native tool calling; off: the text protocol, which works with every server.
| Variable | Default | Used by |
|---|---|---|
STRUCTAM_LLM_THINKING | adaptive | serve, all; structam assistant |
STRUCTAM_LLM_EFFORT | unset (the model's default) | serve, all; structam assistant |
STRUCTAM_LLM_REFUSAL_FALLBACK | on | serve, all; structam assistant |
Anthropic only: adaptive (thinking shown as a summary) or off (for older models); effort low|medium|high|xhigh|max (empty: the model's default); refusal_fallback lets the API re-run a declined request on its fallback model.
| Variable | Default | Used by |
|---|---|---|
STRUCTAM_LLM_DAILY_TOKEN_BUDGET | 2000000 (0 = unlimited) | serve, all; structam assistant |
STRUCTAM_LLM_CONVERSATION_TOKEN_BUDGET | 1000000 (0 = unlimited) | serve, all; structam assistant |
STRUCTAM_LLM_REQUESTS_PER_MINUTE | 6 | serve, all; structam assistant |
Per user: tokens per UTC day and per conversation (0 = unlimited), and questions per minute (across nodes).
SIEM sinks and TAXII
| Variable | Default | Used by |
|---|---|---|
STRUCTAM_SYSLOG_PEN | unset (no structured data) | serve, worker, all |
Sinks themselves are configured on Integrations > SIEM (stored in the database, cluster-wide).
Your organisation's IANA Private Enterprise Number: RFC 5424 sinks then carry structured data [structam@<PEN> event_id=... ...]. Empty: no structured data unless a sink sets its own sd_id. The documentation number 32473 is refused. Cluster-wide.
| Variable | Default | Used by |
|---|---|---|
STRUCTAM_TAXII_INSTANCE | unset (host name of the public URL) | serve, worker, all |
Names this installation in STIX ("Structam <instance>", the identity that creates every published object). Empty: the host name of STRUCTAM_PUBLIC_URL. Cluster-wide; set it once, a change publishes a new identity version. A node with neither setting (a worker without STRUCTAM_PUBLIC_URL) never names the identity itself: holding the taxii-publisher lease it keeps the published name, and on an installation where nothing is published yet it gives the lease up and logs that it has no instance name.
| Variable | Default | Used by |
|---|---|---|
STRUCTAM_SIEM_ALLOW_PRIVATE | off | serve, all |
"Send test event" refuses sinks on loopback, link-local and private (RFC 1918, IPv6 unique local) addresses, so the button cannot be used to probe this server's own network. on: allow them (an internal SIEM). Cloud metadata addresses (169.254.169.254, fd00:ec2::254) are always refused. Delivery by the forwarder is not affected.
Host agent (structam-agent)
| Variable | Default | Used by |
|---|---|---|
STRUCTAM_SERVER | required (no default) | structam-agent |
These are read by structam-agent, not by the server, from its own env file (Linux /etc/structam-agent/agent.env, macOS /Library/Application Support/Structam Agent/agent.env, Windows %ProgramData%\Structam\Agent\agent.env). The agent also honours STRUCTAM_LOG_LEVEL and STRUCTAM_LOG_FORMAT above. Every variable has a matching flag (structam-agent run -h), except the join token, which never goes on a command line.
The server's https:// URL. There is no default. http:// is refused unless STRUCTAM_INSECURE=on.
| Variable | Default | Used by |
|---|---|---|
STRUCTAM_JOIN | unset (needed only to enrol) | structam-agent |
STRUCTAM_JOIN_FILE | unset | structam-agent |
The join token (stj1.<id>.<secret>.<pin>) from the Add hosts page; removed by the agent after enrolment. Set one of the two forms; the installer writes it here, never into the service environment.
| Variable | Default | Used by |
|---|---|---|
STRUCTAM_SERVER_PIN | unset (server.pins only) | structam-agent |
Extra trusted server pins (SHA256:... or the 43-character token form), comma-separated, added to server.pins.
| Variable | Default | Used by |
|---|---|---|
STRUCTAM_CA_FILE | unset (system roots only) | structam-agent |
Extra CA bundle (PEM) for TLS to the server; system roots are always used too. TLS is not the trust anchor.
| Variable | Default | Used by |
|---|---|---|
STRUCTAM_PROXY | unset (HTTPS_PROXY applies) | structam-agent |
Outbound proxy for the agent (http://, https:// or socks5://); without it the standard HTTPS_PROXY applies.
| Variable | Default | Used by |
|---|---|---|
STRUCTAM_INSECURE | off | structam-agent |
on allows an http:// server (labs only); logged as a warning on every start.
| Variable | Default | Used by |
|---|---|---|
STRUCTAM_STATE_DIR | Linux /var/lib/structam-agent; macOS /Library/Application Support/Structam Agent; Windows %ProgramData%\Structam\Agent | structam-agent |
STRUCTAM_ENV_FILE | Linux /etc/structam-agent/agent.env; macOS and Windows agent.env in the state directory | structam-agent |
STRUCTAM_LOCAL_POLICY | Linux and macOS /etc/structam-agent/local-policy.json; Windows local-policy.json in the state directory | structam-agent |
Override the state directory, the env file and the local policy file (tests, non-standard layouts).
Questions the docs do not answer?
Ask the people who build Structam. Installation media and licences come from KazLabs.