When changing the SOAR log format on a warm standby primary instance, it's noticed that the log format on the standby instance does not change.
This can be problematic when, for example, log data from both primary and standby is forwarded to a Splunk instance for indexing. It may be that one instance is sending data in json format, and the other instance is sending it in plain text.
Relevant documentation is here.
These commands assume that SOAR is installed in /opt/phantom. If your SOAR installation is installed elsewhere, substitute that directory name in place of "/opt/phantom". Also, these commands should be run as the SOAR user, which by default is 'phantom' but may be different in your environment.
This command can be used on the primary instance to display the current configured logging format:
phenv config_get logging_format
The SOAR logs can also be looked at on both the primary and the standby instances to see the format in which they are being written. These commands can be used:
cd /opt/phantom/var/log/phantom
tail -2 watchdogd.log wsgi.log
The general syntax of the command to change the logging format is:
phenv set_preference --logging-format { plain | json }
The logging format configuration is stored in /opt/phantom/etc/phantom_install.conf. That relevant snippets of that file are:
[phantom]
LOGGING_FORMAT = json[uwsgi]
PHANTOM_LOGGING_FORMAT = json
If the SOAR logging format is changed on the primary instance, the file phantom_install.conf files is synced to the standby by one of the warm standby cron jobs.
When the command completes successfully on the primary, wait for 1-2 minutes for the phantom_install.conf file to be synced to the standby, then restart SOAR on the standby with these commands:
stop_phantom.sh; start_phantom.sh
Verify that the log format is correct on the standby by tailing the logs:
cd /opt/phantom/var/log/phantom
tail -2 watchdogd.log wsgi.log
| Revision | Publish Date | Comments |
|---|---|---|
1.0 |
01-Oct-2026
|
Initial Release |