Unable to send multi-line stacktrace to Kibana using python Elasticsearch client

Traceback (most recent call last):
File "/root/.shiv/pyjordan./site-packages/jordan/common/s3_utils.py", line 143, in get_bucket_policy
return self._s3_client.get_bucket_policy(Bucket=name)
File "/root/.shiv/pyjordan./site-packages/botocore/client.py", line 357, in _api_call
return self._make_api_call(operation_name, kwargs)

@Neeti_Goenka I think you'd have a better chance of getting a suitable response in the Elasticsearch/language-clients forum. As such, I'll try to transfer your topic to there.