Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Commit

Permalink
Change Auth0 raw field from str repr to json (#1653)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
gene1wood committed Jul 13, 2020
1 parent 88525f3 commit ffa92ef
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cron/auth02mozdef.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import hjson
import sys
import os
import json
import requests
import traceback

Expand Down Expand Up @@ -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()

Expand Down

0 comments on commit ffa92ef

Please sign in to comment.