Skip to content

Config File Verification ​

How Butler SOS checks its config file, how to check a file without starting Butler SOS, and how to read the report it prints when something is wrong.

A description of the config file format is available in the Configuration File Format reference.

Verify the Config File ​

Config file verification is enabled by default.

When Butler SOS starts, it checks its config file before doing anything else. If something in the file is wrong, it does not start. Instead it prints a report that lists every problem it found and exits with code 1.

Two command-line options give you more control over that:

  • --check-config checks a config file and exits, without starting anything. Use it before a restart in production, in a CI pipeline, or from a config management tool. See Checking a config file without starting Butler SOS.
  • --on-invalid-config wait keeps Butler SOS running when the config file has a problem, instead of exiting. It starts none of its services, says why in the log, and waits to be stopped. Use it under a service manager that would otherwise restart Butler SOS over and over. See Staying up on an invalid config file.

Both use the same problem report as a normal start. See Reading a config file error for how to read it.

All settings are mandatory

All settings in the config file are mandatory.

If you don't want to use a specific Butler SOS feature, you must still include its settings in the config file, but you are free to disable the feature and set its settings to empty strings/values/arrays, or just leave the default values in place.

Optional list settings can be left empty, for example with all their entries commented out. See Optional list settings can be left empty.

Checking a config file without starting Butler SOS ​

New in 15.4.0

The --check-config option was added in Butler SOS 15.4.0.

bash
butler-sos -c /opt/butler-sos/config/production.yaml --check-config

Butler SOS runs every check a normal start runs, on the file given with -c: the file check (YAML syntax, setting names, types and allowed values) and then the checks of settings that must fit together (server tags, InfluxDB version, telemetry and so on). Then it exits. It opens no ports, starts no services, and writes no log files.

One of those checks uses the network. With app name extraction on (Butler-SOS.appNames.enableAppNameExtract: true), Butler SOS looks up Butler-SOS.appNames.hostIP and tries to reach it on port 4242, as it does at a normal start. A config check may run where your Qlik Sense host's name cannot be looked up, such as a CI runner, so there a host name that does not resolve is a warning, not a problem, and does not change the exit code:

text
VERIFY CONFIG FILE WARNING: Butler-SOS.appNames.hostIP="qlik.corp.local" does not resolve to an IPv4 address from here. That is not counted as a problem in a config check, but Butler SOS will not start if it does not resolve on the server it runs on.

At a normal start the same host name is a problem, and Butler SOS does not start.

When the file is valid ​

text
VERIFY CONFIG FILE: Your config file at /opt/butler-sos/config/production.yaml is correctly formatted, good work!
CHECK CONFIG: The config file /opt/butler-sos/config/production.yaml is valid.

The exit code is 0.

Warnings that do not stop Butler SOS from starting are printed too, as at a normal start. An example is a host that cannot be reached right now. They do not change the exit code.

When the file has problems ​

text
Config file /opt/butler-sos/config/production.yaml has 1 problem:

  line 319, col 5  Butler-SOS.influxdbConfig.version
                   is 4, but must be 1, 2 or 3.

Fix this and run the check again.

The exit code is 1. The report is the same as at a normal start, apart from its last line.

Using it in a script ​

The exit code is what a script or pipeline should look at:

bash
if butler-sos -c production.yaml --check-config; then
    systemctl restart butler-sos
else
    echo "Config file not valid, Butler SOS left running on the old one."
fi

On Windows, in PowerShell:

powershell
& .\butler-sos.exe -c .\config\production.yaml --check-config
if ($LASTEXITCODE -eq 0) { Restart-Service butler-sos }

Things to know about --check-config ​

  • It cannot be combined with --skip-config-verification. A check that skips the checks would always pass, so Butler SOS refuses the combination:

    text
    error: option '--check-config' cannot be used with option '--skip-config-verification'
  • --check-config wins over --on-invalid-config wait. If both are given, Butler SOS checks and exits, as --check-config asks.

  • Use the same Butler SOS version you will run. The settings and values allowed can change between versions, so check the file with the version that is going to read it.

Staying up on an invalid config file ​

New in 15.4.0

The --on-invalid-config option was added in Butler SOS 15.4.0.

bash
butler-sos -c /opt/butler-sos/config/production.yaml --on-invalid-config wait

--on-invalid-config takes one of two values:

ValueWhat Butler SOS does when the config file has a problem
exitPrints the report and exits with code 1. This is the default, and what Butler SOS has always done.
waitPrints the report, starts none of its services, and keeps running until it is stopped.

With a valid config file, both values start Butler SOS normally. The option only changes what happens when something is wrong.

Why you might want it ​

Under Docker with restart: always or restart: unless-stopped, or under systemd with Restart=always, a Butler SOS that exits is started again straight away. With a config file that has a problem, that becomes a loop: start, report, exit, start again, every few seconds. The log then fills with the same report, and the service manager may give up after a number of attempts.

With --on-invalid-config wait, Butler SOS reports the problem once and stays up. The container or service shows as running, the report stays at the top of the log, and nothing restarts until you have fixed the file and restarted Butler SOS yourself.

What you will see ​

text
Config file /opt/butler-sos/config/production.yaml has 1 problem:

  line 2, col 3  Butler-SOS.logLevel
                 is "chatty", but must be one of: "error", "warn", "info", "verbose", "debug", "silly".

Fix this and restart Butler SOS. Until then it starts none of its services.
2026-11-28T22:17:02.146Z info: Using config file: /opt/butler-sos/config/production.yaml
2026-11-28T22:17:02.147Z error: MAIN: The config is not valid (1 problem, listed above), so Butler SOS has started none of its services.
2026-11-28T22:17:02.147Z warn: MAIN: Butler SOS is staying up instead of exiting, because --on-invalid-config is set to wait. Fix the config file, then restart Butler SOS.
2026-11-28T22:17:02.147Z warn: MAIN: To stop it, stop its systemd service, for example with "systemctl stop <service name>".

The last line depends on how Butler SOS was started:

Started byThe last line says
DockerTo stop it, stop its container, for example with "docker stop <container name>".
systemdTo stop it, stop its systemd service, for example with "systemctl stop <service name>".
anything elseTo stop it, press Ctrl+C, or stop the service that started it.

Stopping it works the usual way: docker stop, systemctl stop, stopping a Windows service, or Ctrl+C in a terminal.

What runs while it waits ​

Nothing that depends on the config file:

  • no UDP servers for user events or log events;
  • no connection to InfluxDB, MQTT, New Relic or any other destination;
  • no polling of Qlik Sense servers, user sessions or app names;
  • no Prometheus endpoints, Docker healthcheck endpoint, config visualisation page or audit API;
  • no heartbeats, uptime monitoring or telemetry.

Logging goes to the console only, which is where Docker and systemd collect it from. The config file's own log settings are not used, because they may be part of what is wrong, so no log file is written while Butler SOS waits. The log level is info, or the one given with --loglevel.

The Docker healthcheck endpoint is not started either. With the endpoint turned on in the config (Butler-SOS.dockerHealthCheck.enable: true), the Docker image's healthcheck therefore reports the container unhealthy. That is intended: the container is up, but Butler SOS is not doing its job. With the endpoint turned off, the image's healthcheck has nothing to ask, and reports the container healthy, as it does for any config that turns the endpoint off.

A config file that is missing ​

A config file that is not where -c points is handled in the same way. With --on-invalid-config wait, Butler SOS reports it as one problem and waits:

text
Config file /opt/butler-sos/config/production.yaml has 1 problem:

  There is no config file at /opt/butler-sos/config/production.yaml.

Fix this and restart Butler SOS. Until then it starts none of its services.

Starting Butler SOS without any -c option at all is different. That is a mistake on the command line, not in the config file. Butler SOS shows its help text and exits with code 1, whatever --on-invalid-config says. See Which Config File to Use.

After fixing the file ​

Butler SOS does not watch the config file. Once the file is fixed, restart Butler SOS: restart the container or service, or stop it and start it again. Running --check-config first tells you whether the fix is complete before you restart.

Reading a config file error ​

Changed in 15.4.0

Before Butler SOS 15.4.0, config file problems were reported as technical messages such as VERIFY CONFIG FILE ERROR: /Butler-SOS/influxdbConfig/port : must be number. See Changed log messages if you have log alerts or searches built on the old messages.

Each problem in the report says three things:

  • which setting it is about, written the way the setting appears in the YAML file;
  • where it is in the file, as a line and column;
  • what is wrong and what is allowed instead.

What the report looks like ​

text
Config file /opt/butler-sos/config/production.yaml has 3 problems:

  line 6, col 5    Butler-SOS.logLevel
                   is "chatty", but must be one of: "error", "warn", "info", "verbose", "debug", "silly".

  line 52, col 9   Butler-SOS.heartbeat.remoteUrll
                   is not a known setting. Did you mean "remoteURL"? "remoteURL" is required.

  line 553, col 9  Butler-SOS.influxdbConfig.port
                   is "8086a", but must be a number.

Fix these and start Butler SOS again. Run with --help for the command-line options.

The report has three parts:

  1. A heading naming the config file that was checked and how many problems were found. The full path matters. If Butler SOS is not reading the file you expected, this is where you will see it.
  2. One entry per problem, sorted by line. Problems that have no line of their own, such as a problem with the file as a whole, come first. A mistake is reported once, even when it breaks more than one rule.
  3. One closing line. Nothing follows it: no stack trace and no second error message.

Values that are not shown ​

A value that is wrong is normally shown in the message, in quotes when it was read as text. The value of a setting that holds a password, token, key or other credential is never shown, because the report goes to the log:

text
  line 567, col 13  Butler-SOS.influxdbConfig.v2Config.token
                    is a secret value (not shown), but must be text.

Settings count as credentials by their name (anything containing password, token, secret, passphrase, API key and similar), and so do the custom headers sent to Qlik Sense servers and the New Relic header values. These are the same settings that the config visualisation page masks.

Reading one entry ​

text
  line 553, col 9  Butler-SOS.influxdbConfig.port
                   is "8086a", but must be a number.
  • line 553, col 9 is the position in the file. Most editors can jump straight to a line number. The column counts characters from the start of the line, starting at 1, so column 9 is where the setting's name begins after eight spaces of indentation.

  • Butler-SOS.influxdbConfig.port is the setting. Each part is one level of indentation in the YAML file, so this is the port setting inside influxdbConfig, inside Butler-SOS:

    yaml
    Butler-SOS:
        influxdbConfig:
            port: 8086a

    Entries in a list are numbered from 0. Butler-SOS.serversToMonitor.servers[1].host is the host setting of the second server in the servers list.

  • The text below the setting says what is wrong and what is allowed.

A problem that concerns the whole file, such as a YAML syntax error, has no setting name. Its entry is just the message.

Common mistakes and how to fix them ​

A misspelt setting ​

text
  line 52, col 9   Butler-SOS.heartbeat.remoteUrll
                   is not a known setting. Did you mean "remoteURL"? "remoteURL" is required.

Setting names are case sensitive, and Butler SOS does not accept settings it does not know. When the name is close to one that is allowed in the same place, the report suggests it. If the suggested setting is also a required one, the report says so. The misspelling and the missing setting are the same mistake, so they are reported as one problem.

Fix: correct the spelling on the line given, here to remoteURL.

If there is no close match, the report says:

text
                   is not a known setting. Check the spelling, or remove it.

This often means the setting was removed or renamed in a newer version of Butler SOS. Compare your file with the config file template that ships with the version you are running.

A value of the wrong type ​

text
  line 553, col 9  Butler-SOS.influxdbConfig.port
                   is "8086a", but must be a number.

The report shows the value it found, in quotes when it was read as text, and the kind of value the setting needs:

The report says it must beWhat to write
a number8086, 0.5
a whole number8086
textmy-server, or "my-server" in quotes
true or falsetrue or false
a listentries on separate lines, each starting with - , or [] for an empty list
a section of settingsindented settings below the name
emptynothing after the colon

A common case is a number or a true/false value in quotes. YAML treats anything in quotes as text:

text
  line 553, col 9  Butler-SOS.influxdbConfig.port
                   is "8086", but must be a number. Remove the quotes around it.

Fix: write port: 8086, not port: "8086". In the same way, write enable: true, not enable: "true". Words such as yes, no, on and off are not read as true or false either. Use true and false.

A value that is not in the allowed list ​

text
  line 6, col 5    Butler-SOS.logLevel
                   is "chatty", but must be one of: "error", "warn", "info", "verbose", "debug", "silly".

Some settings take only a fixed set of values. The report lists all of them.

Fix: use one of the listed values, exactly as written. These values are case sensitive.

A missing setting or section ​

text
  line 2, col 1    Butler-SOS.fileLogging
                   is missing. Add it under Butler-SOS.

A setting that is not in the file has no line of its own. The line given is the line of the section it belongs in, here the Butler-SOS: line at the top of the file.

Fix: add the setting inside that section, at the same indentation as the settings around it. The config file template for your version shows each setting's place and a sensible value.

A value outside its range, or in the wrong format ​

text
  line 205, col 13  Butler-SOS.logEvents.udpServerConfig.serverHost
                    is "<IP or FQDN>", but must be a host name, for example qlik.example.com.

  line 555, col 9   Butler-SOS.influxdbConfig.maxBatchSize
                    is 0, but must be at least 1.

The report gives the smallest or largest value allowed, or describes the format expected, with an example.

Fix: change the value to one within the range, or in the format shown. The config file template has placeholders such as <IP or FQDN>. Every one of them must be replaced with a real value.

The interval settings, which say how often Butler SOS does something, have a range of their own. See Interval settings in the config file reference.

Settings that do not fit together ​

Some problems are not about one setting on its own, but about two settings that cannot be used together. They are reported in the same way, after the file itself has passed its check:

text
Config file /opt/butler-sos/config/production.yaml has 1 problem:

  line 38, col 5  Butler-SOS.anonTelemetry
                  is true, but Butler-SOS.systemInfo.enable is false. Telemetry needs system information: set Butler-SOS.anonTelemetry to false, or Butler-SOS.systemInfo.enable to true.

Fix this and start Butler SOS again. Run with --help for the command-line options.

Server tags are checked here too. Every tag listed in Butler-SOS.serversToMonitor.serverTagsDefinition must be set on every server, and a server may set only tags that are listed there. Every problem of this kind is reported at once, so after a fix you will not find another one waiting behind it. See Server tag checks.

YAML syntax errors ​

If the file is not valid YAML, Butler SOS cannot read any settings from it. It reports one problem with the position where reading failed and what it expected there, followed by the lines around that position, with a ^ under the column:

text
Config file /opt/butler-sos/config/production.yaml has 1 problem:

  line 7, col 5  The file is not valid YAML: bad indentation of a mapping entry.
                 5 |     # ...
                 6 |      logLevel: ...
                 7 |     fileLogging: ...
                   |     ^
                 8 |     logDirectory: ...
                 (Values are left out, because the file may hold passwords.)

Fix this and start Butler SOS again. Run with --help for the command-line options.

The excerpt shows the setting names and their indentation, which is what a syntax error is almost always about, but every value and every comment is replaced by .... The report ends up in the service or container log, and the lines next to the error could hold a password. Open the file at the line given to see the values.

The most common cause is indentation. YAML uses spaces, and every setting in a section must be indented by exactly the same number of spaces. Tabs are not allowed. The mistake is often on the line before the one reported. In the example above, logLevel has one space too many, and the reader only notices at the next line.

Other syntax errors you may see:

  • duplicated mapping key: the same setting appears twice in one section. Remove one of them.
  • tab characters must not be used in indentation: a tab instead of spaces. Replace it with spaces.
  • end of the stream or a document separator is expected: usually a list entry (a line starting with - ) where a setting was expected, or a line indented less than it should be.
  • unexpected end of the stream within a double quoted scalar: a quote that is opened and never closed.

Things worth knowing ​

  • Most sections that are switched off are only checked lightly. In most sections that have an enable setting, the other settings are not checked while it is false. A misspelt setting in a section you are not using yet may only be reported once you enable that section.
  • Only the config file given at startup is checked. Butler SOS checks the file named with -c or --configfile. Settings that come from anywhere else are not part of this report.
  • The exit code is 1. Docker, systemd and scripts can tell from it that Butler SOS did not start. Under an automatic restart policy, a config error therefore shows up as a container or service that keeps restarting. Read the first report in the log, fix the file, and restart. To have Butler SOS report the problems once and stay up instead, without starting any of its services, start it with --on-invalid-config wait.
  • You can check a file without starting Butler SOS. --check-config runs the same checks, prints the same report, and exits with code 0 when the file is valid and 1 when it is not. Its report ends with Fix this and run the check again. instead.
  • --skip-config-verification still exists. It skips these checks completely. See Skipping config file verification.

Changed log messages ​

Changed in 15.4.0

The messages below were replaced in Butler SOS 15.4.0.

If you have log alerts or searches built on the old messages, update them. These lines are no longer printed:

text
VERIFY CONFIG FILE ERROR: /Butler-SOS/influxdbConfig/port : must be number
VERIFY CONFIG FILE: Error parsing YAML file: ...
MAIN: Config file verification failed. Exiting.
MAIN: Application specific config verification failed. Exiting.

Search for has 1 problem / problems: or Fix this and start Butler SOS again / Fix these and start Butler SOS again instead. The success message is unchanged:

text
VERIFY CONFIG FILE: Your config file at /opt/butler-sos/config/production.yaml is correctly formatted, good work!

A config file that does not exist, a file name that does not end in .yaml, and a config that cannot be loaded are now reported in the same report format as every other config problem. These lines are no longer printed:

text
Error: Config file extension must be yaml
Error: Config file does not exist: /opt/butler-sos/config/production.yaml
MAIN: Failed to load config file: ...
SEA: Failed to load or parse config file: ...

They are replaced by a report like this one:

text
Config file /opt/butler-sos/config/production.yaml has 1 problem:

  There is no config file at /opt/butler-sos/config/production.yaml.

Fix this and start Butler SOS again. Run with --help for the command-line options.

The problem text in each case:

BeforeNow
Error: Config file extension must be yamlThe file name must end in .yaml.
Error: Config file does not exist: <path>There is no config file at <path>.
MAIN: Failed to load config file: <reason>The config could not be loaded: <reason>
SEA: Failed to load or parse config file: <reason>The file is not valid YAML: <reason>., with its line and column, or The file could not be read: <reason> when the file cannot be read

The last row is for the standalone Butler SOS executables. A YAML syntax error there is now reported with its line, its column and the lines around it, as it already was when Butler SOS runs from source.

The exit code in all these cases is still 1, unless --on-invalid-config wait is given.

Optional list settings can be left empty ​

Changed in 15.1.0

Before Butler SOS 15.1.0, a config file based on the shipped template could fail to start Butler SOS, ending with an error mentioning that something "is not iterable". Optional list settings left empty are now read as "nothing configured".

Several settings in the configuration file are optional lists. In the template they are shipped with all their example entries commented out, like this:

yaml
        serverTagsDefinition:
            # - server_group
            # - serverLocation
            # - server_type
            # - serverBrand

In YAML, a setting whose entries are all commented out is empty — which is not the same as a list with no items. Butler SOS used to treat some of these empty settings as an error rather than as "no entries configured", and stopped during startup. The configuration check reported success immediately before it:

VERIFY CONFIG FILE: Your config file at ... is correctly formatted, good work!
VERIFY CONFIG FILE: Server tags verification failed. TypeError: serverTagsDefinition is not iterable
MAIN: Application specific config verification failed. Exiting.

The most visible one was Butler-SOS.serversToMonitor.serverTagsDefinition, because it stopped startup for a brand-new configuration. The same problem existed in around 40 other optional list settings, which surfaced only once the relevant feature was switched on — among them:

  • Butler-SOS.serversToMonitor.servers
  • Butler-SOS.logEvents.categorise.rules
  • Butler-SOS.logEvents.categorise.ruleDefault.category
  • Butler-SOS.newRelic.metric.header
  • Butler-SOS.newRelic.metric.attribute.static
  • Butler-SOS.userEvents.sendToNewRelic.destinationAccount
  • Butler-SOS.logEvents.sendToNewRelic.destinationAccount
  • Butler-SOS.uptimeMonitor.storeNewRelic.destinationAccount

Every optional list setting now treats "empty" and "no entries" as the same thing. Leaving a list commented out, or removing all its entries, means the feature simply has nothing configured for that setting.

On startup, Butler SOS reports which settings it read as empty lists:

MAIN: Treating 24 empty config setting(s) as empty lists: Butler-SOS.serversToMonitor.serverTagsDefinition, ...

That line is informational. A fresh copy of the configuration template produces it, and it simply lists the optional settings you have not filled in.

This is about the list being empty. It does not change any rule about settings that are genuinely required: if a feature needs a value to work, Butler SOS still tells you so.

If you previously worked around this by adding a placeholder entry to a list you did not actually want, you can now remove it and comment the list out again. One thing to watch when undoing a serverTagsDefinition workaround: a tag listed there must also be set on every server, so you almost certainly added a matching entry under each server's serverTags. Remove those too. Leaving them behind means each server now carries a tag that is no longer defined, which fails the second server tag check and stops startup:

VERIFY CONFIG FILE: Server tag "server_group" for server "server1" is not defined in Butler-SOS.serversToMonitor.serverTagsDefinition. Exiting.

Warnings when a feature has nothing to work with ​

Because an empty list does not stop Butler SOS, a configuration that switches a feature on but gives it nothing to act on would otherwise run quietly and simply produce no data. Butler SOS points this out at startup:

VERIFY CONFIG FILE WARNING: Butler-SOS.userSessions.enableSessionExtract is true, but Butler-SOS.serversToMonitor.servers is empty. No user sessions will be collected and no Qlik Sense servers will be monitored.
VERIFY CONFIG FILE WARNING: Log events are set to be sent to New Relic, but Butler-SOS.logEvents.sendToNewRelic.destinationAccount is empty. No data will be sent to New Relic.

These are warnings, not errors — Butler SOS still starts. They are worth acting on if you expected data to appear and none did.

An empty server list on its own is not treated as a problem: running Butler SOS purely as a receiver for Qlik Sense log and user events, with no servers to poll, is a perfectly good setup. In that case a single informational line states the fact, so it is still findable when you are wondering where server data went:

VERIFY CONFIG FILE INFO: Butler-SOS.serversToMonitor.servers is empty. No Qlik Sense servers will be monitored.

Server tag checks ​

Both server tag checks stop startup when they fail:

  • Every tag listed in serverTagsDefinition must be set on every server in servers
  • Every tag set on a server must be listed in serverTagsDefinition

Tag values may be false, 0 or empty ​

Changed in 15.1.0

Before Butler SOS 15.1.0, a server tag whose value was false, 0 or an empty string was reported as not defined, and a tag with no value at all was accepted.

A tag is considered set as long as it is present, whatever its value. A server tag whose value is false, 0 or an empty string used to be reported as not defined, and Butler SOS refused to start:

VERIFY CONFIG FILE: Server tag "isProduction" is not defined for server "server1". Exiting.

Such configurations now start normally. If you worked around this by changing false to "false", you can change it back.

A tag with no value at all is a different matter and is rejected:

yaml
        serverTags:
            server_group:        # <- no value

Butler SOS used to accept this and then behaved differently depending on which InfluxDB version you use — version 1 stored the text null as the tag value, while versions 2 and 3 dropped the tag entirely. Rather than store different data depending on your InfluxDB version, startup stops with:

VERIFY CONFIG FILE: Server tag "server_group" for server "server1" has no value. Give it a value or remove it. Exiting.

Give the tag a value, or remove the line.

If server tag verification fails for an unexpected reason, the message names the section of the configuration file being checked, so it is clearer where to look:

  line 605, col 5  Butler-SOS.serversToMonitor
                   could not be checked for server tags: ...

The message appears in the config error report described in Reading a config file error.

Skipping config file verification ​

To skip config file verification, start Butler SOS with the --skip-config-verification command line option.

This bypasses all checks of the config file's validity, and Butler SOS starts on whatever the file contains. That can mean services running with wrong settings, or failing later with less helpful errors. Use it only to get past a check you have understood and know to be wrong, and report that case so it can be fixed.

--skip-config-verification cannot be combined with --check-config.

maxBatchSize is defaulted and repaired ​

Changed in 15.1.0

Before Butler SOS 15.1.0, a missing or invalid maxBatchSize that got past verification could stop Butler SOS with TypeError: cfg.set is not a function, or be used as-is.

Butler-SOS.influxdbConfig.maxBatchSize controls how many data points Butler SOS writes to InfluxDB in one batch. It must be a whole number between 1 and 10000; the default is 1000. Normal config file verification rejects anything else at startup.

Some configurations bypass that verification: starting Butler SOS with verification switched off, or values supplied through the extra configuration layers the config system supports (such as a local.yaml file next to the main config, or the NODE_CONFIG environment variable), which are merged in without being checked. Previously, a missing or invalid value arriving that way could stop Butler SOS with an internal error:

TypeError: cfg.set is not a function

Or — worse — the value could be used as-is: a value that is not a whole number, or is zero or negative, silently breaks the InfluxDB batch writer, so data appears to be written but never arrives.

Butler SOS now repairs such values when the configuration is loaded, and only when InfluxDB is actually enabled:

  • If the setting is missing, the default of 1000 is applied, noted at info level:

    MAIN: Butler-SOS.influxdbConfig.maxBatchSize not specified. Using default value 1000.
  • If the setting is invalid — wrong type, not a whole number, or outside 1-10000 — it is replaced with the default, with a warning:

    MAIN: Butler-SOS.influxdbConfig.maxBatchSize=20000 is invalid. Must be an integer between 1 and 10000. Using default value 1000.

Note the message prefix: these appear as MAIN: rather than VERIFY CONFIG FILE:. If you have log searches or alerts matching the old prefix for this setting, update them.

Released under the MIT License.