This documentation supports the on-premises releases of StreamWeaver upto version 3.16. For the SaaS releases, see the BMC Helix Intelligent Integrations documentation.

Configure logging



swpallinone ships with the following configurable log file policy settings:

Setting

Default

Description

neo.logging.maxFiles

20

The maximum number of log files to retain

neo.logging.maxFileSizeInMB

2

The maximum size of a log file before rolling and gzipping

neo.logging.immediate-flush

false

Whether or not to use buffered writes to the log file. Enabling this can have a significant performance impact.

Changing these settings in the swpallinone conf file (conf/swp.conf) will not work. The logging system starts before application code and needs settings before the application can read them. The settings must be passed on the command line that starts swpallinone.

You can accomplish this by editing the services.swpallinone.extra-settings block in conf/swpd.conf or you can edit bin/services/swpallinone/bin/swpallinone. If you edit the script, your changes will be lost the next time you install. If you edit swpd.conf, you settings will be retained (assuming you are retaining all settings in conf)

Instructions

Edit conf/swpd.conf and add the settings to the swpallinone.services.extra-settings object.

Be sure to enclose the setting key in quotes.

Everything in extra-settings will be converted to -D<setting-key>=<setting-value>

  swpallinone {
    depends-on = ["cassandra", "kafka", "kafka-schema-registry"]
    extra-settings {
      "neo.logging.maxFileSizeInMB" = 100
    }
    extra-env {}
    restart-limit = 3
    auto-restart = 1 d
    start-wait = 1 s
    debug-port = 10001
  }

Related articles

Related articles appear here based on the labels you select. Click to edit the macro and add or change labels.



 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*