OptionalconnectConnection setup timeout in ms (default 10 000).
OptionalencodingDefault ingest body encoding of the exporters: "json" (default), "ndjson" or "msgpack";
each exporter can override it. Env GROW_BETTER_STACK_LOGS_ENCODING.
OptionalheadersExtra request headers.
OptionalhooksRequest/response hooks.
OptionalloggerDiagnostic logger (silent by default).
OptionalproxyProxy URL. Environment proxies (HTTPS_PROXY, …) are ignored unless set here.
OptionalqueryPassword of the SQL connection (HTTP Basic). Env …_QUERY_PASSWORD, BETTERSTACK_QUERY_PASSWORD.
OptionalquerySQL query base URL (ClickHouse HTTP interface, e.g. eu-nbg-2-connect.betterstackdata.com).
Env GROW_BETTER_STACK_LOGS_QUERY_URL, BETTERSTACK_QUERY_URL, BETTERSTACK_QUERY_HOST.
OptionalqueryUsername of the SQL connection. Env …_QUERY_USERNAME, BETTERSTACK_QUERY_USERNAME.
OptionalrequestPer-attempt timeout in ms, headers + body (default 30 000).
OptionalretryRetry policy or its options.
OptionalsourceDefault collection (t1234_myapp) used by search, searchLogs and ping. Env
GROW_BETTER_STACK_LOGS_SOURCE_TABLE, BETTERSTACK_SOURCE_TABLE.
OptionalsourceSource token sent as Authorization: Bearer <token> to the ingest host only. Env
GROW_BETTER_STACK_LOGS_SOURCE_TOKEN, BETTERSTACK_SOURCE_TOKEN.
OptionaltlsTLS settings.
OptionaltotalWhole-call timeout in ms including retries and backoff (default 120 000).
OptionalurlIngest base URL: the source's ingesting host (s1234.eu-nbg-2.betterstackdata.com). A value
without :// gets https://. Required for sending logs; there is no default host. Env
GROW_BETTER_STACK_LOGS_URL, BETTERSTACK_INGESTING_URL, BETTERSTACK_INGESTING_HOST.
OptionaluserAppended after the standard User-Agent.
Options accepted by BetterStackConfig (all optional, but one side must be complete).