When detailed logging is enabled on an API, the log browser on the tyk dashboard captures and displays the complete details of both the incoming requests and the outgoing responses. I need to mask certain headers in the request.
I would like to know how I can achieve this.
I have a couple of questions here -
In the analytics plugins documentation the following is mentioned -
{
“analytics_plugin”: {
“enable”: true,
“func_name”: “”,
“plugin_path”: “/analytics_plugin.so”
}
}
In the plugin_path - what path is to be used?
How do we generate a .so file from .go file to build the plugin. Im using windows machine, I tried using wsl and MinGW-W64, I was not able to successfully do it.
The path mapped to your middleware directory (/opt/tyk-gateway/middleware/)
You can use docker run command along with tyk-plugin-compiler to build golang plugins. We have a getting started with Golang plugins on our documentation page that could prove helpful.
Additionally, you could install make using winget install make command and use our quick start guide to rapidly get and and running. We have a video tutorial that can guide you using the repo for convenience.