Change Auth0 raw field from str repr to json (#1653)

This will both change the Auth0 raw field to be called raw_value
and will change the representation from a Python repr to a JSON
encoded string. This will allow ElasticSearch to index this value
and make it searchable.

This is similar to what was done in #1586 and support #1607
This commit is contained in:
Gene Wood 2020-07-13 14:37:48 -07:00 коммит произвёл GitHub
Родитель 88525f3dd7
Коммит ffa92efcb0
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -9,6 +9,7 @@
import hjson
import sys
import os
import json
import requests
import traceback
@ -354,7 +355,7 @@ def fetch_auth0_logs(config, headers, fromid):
# Save raw initial message in final message
# in case we ran into parsing errors
mozmsg.details["raw"] = str(msg)
mozmsg.details["raw_value"] = json.dumps(msg)
mozmsg.send()