Request Payload Logging with ELK

An example of payload logging of Seldon Deployment requests and responses.

Prerequisites

  • A kubernetes cluster with kubectl configured

  • curl

  • grpcurl

  • pygmentize

Setup Seldon Core

Install Seldon Core as described in docs

Then port-forward to that ingress on localhost:8003 in a separate terminal either with:

  • Ambassador:

kubectl port-forward $(kubectl get pods -n seldon -l app.kubernetes.io/name=ambassador -o jsonpath='{.items[0].metadata.name}') -n seldon 8003:8080```

* Istio: 

```bash 
kubectl port-forward $(kubectl get pods -l istio=ingressgateway -n istio-system -o jsonpath='{.items[0].metadata.name}') -n istio-system 8003:80```



```python
!kubectl create namespace seldon

Deploy a Request Logger

This will echo CloudEvents it receives.

Create a Model with Logging

Send a Prediction Request

Check Logger

Clean Up

Last updated

Was this helpful?