How to see all queries and responses from the vFunction SQL Parser in the logging
Overview
The vFunction Server uses the vfunction-vfapi-parser to manage SQL queries received from monolithic and distributed applications. Turn debugging on to see the queries and responses from this parser.
Steps to see Parser Queries in the logs
Linux Installation
- SSH to the vFunction Server
- Open the vfapi ConfigMap
### Sudo
vi /etc/sysconfig/vfunction/vfapi/automated-custom-env.list
### Sudoless
vi BASE_DIR/vfunction/etc/sysconfig/vfunction/vfapi/automated-custom-env.list
- Add an Environment Variable to the ConfigMap
VFUNLOGLEVEL=debug
- Run the Server Upgrade
### Sudo
bash /opt/vfunction/server-installation/upgrade.sh
### Sudoless
bash BASE_DIR/vfunction/opt/vfunction/server-installation/upgrade.sh
- Create a new Measurement in the VF Server UI
- Test in the Distributed Application
- Review the logs from the vfunction-vfapi-otlp Container
### Sudo
less /var/log/vfunction/vfapi.log
### Sudoless
less BASE_DIR/vfunction/var/log/vfunction/vfapi.log
- Remove the Environment Variable from the ConfigMap
- Run the Server Upgrade again