Logging using PQS lower than 4.6

To logging PQS, you can log using NGINX as a proxy that records the HTTP Request Body and the timing.

On your Centos/RHEL machine, switch to root privileges
sudo -s

Add nginx.repo

Install nginx packages, and you can setup a proxy
yum install nginx.x86_64 -y

Create the nginx configuration so you have a log_format that outputs the body ($request_body) and time ($request_time)

Create the default server configuration, and set the proxy_pass to point to your PQS/phoenix query server

Reload nginx
nginx -s reload

Tail the log file to see the data called.
[root@data-com-4 pbastide]# tail -f /var/log/nginx/request-body.log

https://www.nginx.com/resources/admin-guide/reverse-proxy/
https://www.nginx.com/resources/wiki/start/topics/tutorials/install/
https://www.nginx.com/resources/admin-guide/logging-and-monitoring/

Leave a Reply

Your email address will not be published. Required fields are marked *