cancel
Showing results for 
Search instead for 
Did you mean: 

How to get all logs or list of all events triggered to my Kyma Function?

DhruvinM
Participant
0 Kudos

Hi Team,

We are trying to debug/check all the functions being called now we know we have the logs available on function/pods but we are not seeing any Logs there but from C4C I can see the call was made successfull.

But i am not able to see which function is being triggered, in Kyma console do we have any place where we can see all recieved messages/events/ etc?

BR

Dhruvin

View Entire Topic
Kwiatekus
Associate
Associate
0 Kudos

Hi,


Your function needs to produce logs. 
Serverless server wrapper for you function code does not produce logs on its own whenever function is called.

The easiest would be to include logs in your function code, i.e 
```
console.log("Function triggered with payload", event.data)
```
Then, after function is redeployed, it will produce logs which you can inspect via kubectl
```
kubectl logs -l serverless.kyma-project.io/function-name=my-function
```

Best Regards
Krzysztof