google-nomulus/javatests/google/registry
nickfelt a4091594d0 Add new JSON logging to FlowRunner for EPP activity reporting
We've been using the very fragile newline-delimited legacy logging
statement in FlowRunner for ICANN reporting for a long time.  While
this is bad in a few ways, the worst is that the parsing of this
logging statement is extremely fragile (e.g. adding/removing fields
can easily break the parsing).  This is in fact part of what broke the
ExportLogsServlet parsing last fall ([] and forced us to
recover by manually parsing the log statement (and its XML) in
BigQuery.  It also broke again in [] where we were relying
on matching the logging classname, since matching on 'EPP Command'
was considered insufficiently narrow.

This introduces a new JSON-format logging statement to FlowRunner
that fixes both of these problems:

 1) it replaces the newline-delimited "format" with a JSON-based
    format, so that we can add new fields much more easily and
    reliably support logging more structured data

 2) it replaces the short 'EPP Command' signature with a much more
    targeted 'EPP-REPORTING-LOG-SIGNATURE' signature so that we can
    use that alone for matching, rather than relying on the class
    name in the log message

What this doesn't fix is the fact that we still need to parse the
XML in BigQuery; we should fix this by logging the parts of the XML
that ICANN reporting needs explicitly, but that'll be a subsequent
change, since while the existing approach is gross, it's actually
much less fragile than just matching the log statement itself.
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=125902976
2016-06-27 16:45:55 -04:00
..
backup Cut RegistryCursor over to global cursors 2016-06-27 16:44:35 -04:00
bigquery Rename Java packages to use the .google TLD 2016-05-13 20:04:42 -04:00
billing Make open source build pass 2016-06-14 16:33:56 -04:00
config Rename Java packages to use the .google TLD 2016-05-13 20:04:42 -04:00
cron Rename Java packages to use the .google TLD 2016-05-13 20:04:42 -04:00
dns Make dnsupdate go back to using dnsjava 2.x 2016-05-16 18:40:31 -04:00
export Fix latest_snapshot "pointer" query to use to fully-qualified table reference 2016-06-27 16:09:10 -04:00
flows Add new JSON logging to FlowRunner for EPP activity reporting 2016-06-27 16:45:55 -04:00
groups Rename Java packages to use the .google TLD 2016-05-13 20:04:42 -04:00
mapreduce/inputs Rename Java packages to use the .google TLD 2016-05-13 20:04:42 -04:00
model Dagger, meet Flows. Flows, meet Dagger. 2016-06-27 16:26:29 -04:00
module Rename Java packages to use the .google TLD 2016-05-13 20:04:42 -04:00
monitoring/whitebox Don't throw entity integrity errors for renamed hosts 2016-05-16 18:40:19 -04:00
pricing Implement EppCommandSpecializer 2016-06-27 16:06:21 -04:00
rdap Registrant of a domain can never be null 2016-05-18 13:10:18 -04:00
rde Cut RegistryCursor over to global cursors 2016-06-27 16:44:35 -04:00
request Add MR to expand billing events into OneTimes 2016-06-14 16:31:00 -04:00
security Rename Java packages to use the .google TLD 2016-05-13 20:04:42 -04:00
server Turn CheckApiAction into a standard-ish epp endpoint 2016-06-27 16:22:12 -04:00
storage/drive Rename Java packages to use the .google TLD 2016-05-13 20:04:42 -04:00
testing Upgrade apache_sshd CL #2: Update to v1_2_0 2016-06-27 16:41:48 -04:00
tldconfig/idn Rename Java packages to use the .google TLD 2016-05-13 20:04:42 -04:00
tmch Registrant of a domain can never be null 2016-05-18 13:10:18 -04:00
tools Cut RegistryCursor over to global cursors 2016-06-27 16:44:35 -04:00
ui Turn CheckApiAction into a standard-ish epp endpoint 2016-06-27 16:22:12 -04:00
util Remove python scripts from third_party/.../util 2016-05-13 23:18:35 -04:00
whois Typo in comment 2016-05-16 18:40:40 -04:00
xjc Fix generics in EppXmlTransformer.unmarshal to not be only on the return type. 2016-06-27 15:55:03 -04:00
xml Rename Java packages to use the .google TLD 2016-05-13 20:04:42 -04:00