Skip to content

Latest commit

 

History

History
38 lines (27 loc) · 1.33 KB

File metadata and controls

38 lines (27 loc) · 1.33 KB

How to get HTTP request list from Kubernetes pods

This is a brief guide on how to capture logs of the HTTPS requests that Appsmith executes when we execute a query. This can help to debug problems with the APIs executed by users.

Steps

All the commands executed in the steps that we show below must be executed within the shell of the pod where Appsmith is hosted.

  1. Enabled Ubuntu repositories.
sudo add-apt-repository main
sudo add-apt-repository universe
sudo add-apt-repository restricted
sudo add-apt-repository multiverse 
  1. Run the following command to update the repositories.

sudo apt-get update

  1. Install the tcpflow package with the following command.

sudo apt-get install tcpflow

  1. We will create a folder called NetLogs, and we will enter it follow the following commands.
mkdir NetLogs
cd NetLogs
  1. Now we execute the https requests listener on the port that it is executed on.

tcpflow -p -c port 443 | tee NetLogs.log

  1. This will be put in listening format and reports the movements in an .log file that will be saved in the NetLogs folder.

  2. now run a query in appsmith.

  3. Now we will get the results of our NetLogs with the following command.

cat NetLogs.log

  1. Now we will copy the resulting information and put it into a file with the .log extension on our local machine.