I am trying to log request and response data, while using kong-ingress controller as API-gateway by utilizing kong plugins such as http-log,syslog,file-log.
1.kubernetes cluster running in azure
2.pod deployed with host-based routing as service named : example-poc
3.KongPlugin resource created as : kongpluginfilelogexample
4.kong installed asking dbless
Plugin resource :
apiVersion: configuration.konghq.com/v1 kind: KongPlugin metadata: name: kongpluginfilelogexample config: path: /var/log/filelog.log reopen: false plugin: file-log
Plugin applied as :
apiVersion: v1 kind: Service metadata: name: example-poc annotations: konghq.com/plugins: kongpluginfilelogexample**
Therefore , I am expecting a log file will be created in /var/log/filelog.log and I will get the request and response information along with the payload. But, the file was not created.
How to debug this/what am I missing ?