While performing the pre-check activity during the UBA upgrade ends up with the following error.
Error Message:
"Failed to run log extractor. error code: 1, stdout: ["Failed to extract log from remote server: node=rome, code=1, message=__init__() got an unexpected keyword argument 'text'"]"
During the investigation, it was found that the parameter in the following python file was the cause of this issue.
File Name: log_visitor.py
Directory: /opt/caspida/bin/log_extractor/log_visitor.py

The value returned from this attribute "text" was an unexpected argument.
To resolve this issue, the attribute in the python file "log_visitor.py" needs to be modified.
Navigate to the below path in the CLI.
/opt/caspida/bin/log_extractor
Take a backup of the current file as store it as "log_visitor_ORIG.py" using the below command.
cp -p /opt/caspida/bin/log_extractor/log_visitor.py /opt/caspida/bin/log_extractor/log_visitor_ORIG.py
Edit the current "log_visitor.py" using the below command.
vi /opt/caspida/bin/log_extractor/log_visitor.py
Modify the line 155, in the "log_visitor.py" as follows,
text = subprocess.Popen(command, stdout=subprocess.PIPE,
stderr=subprocess.PIPE, universal_newlines=True)

After this modification, the precheck activity was executed successfully without any error as below.

Splunk UBA Pre-check Documentation: Reference
| Revision | Publish Date | Comments |
|---|---|---|
1.0 |
29-Sep-2026
|
Initial Release |