Logger in python

Hi all,
In order to use python logger in splunk I implement the solution proposed here https://community.c3.ai/t/c3-logger-for-python-code/1760 .

In JS function I need to add the following information to the logger in order to be able to see it in splunk:

  • “t_tenant=” + c3Context().tenant
  • " t_tag=" + c3Context().tag;

For this reason in py file I add the string t_tenant= 'my_tenant', t_tag = 'my_tag' to my logger, but if I look for it on splunk, I have no results.

How I can fix this issue?

Thank you