Skip to content

felix-appsmith/Get-https-request-from-kubernetes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published