def extractField(field, event):
 keyFlattener = KeyFlattener()
 [[literalText, fieldName, formatSpec, conversion]] = aFormatter.parse((('{' + field) + '}'))
 key = keyFlattener.flatKey(fieldName, formatSpec, conversion)
 if ('log_flattened' not in event):
  flattenEvent(event)
 return event['log_flattened'][key]

def extractField ( field , event ) : keyFlattener = KeyFlattener ( ) [ [ literalText , fieldName , formatSpec , conversion ] ] = aFormatter . parse ( ( ( '{' + field ) + '}' ) ) key = keyFlattener . flatKey ( fieldName , formatSpec , conversion ) if ( 'log_flattened' not in event ) : flattenEvent ( event ) return event [ 'log_flattened' ] [ key ]
extract a given format field from the given event .