def make_extra_json_fields(args):
extra_json_fields = {<EOL>'<STR_LIT>': _get_data_group(args.query),<EOL>'<STR_LIT>': _get_data_type(args.query),<EOL>'<STR_LIT>': _get_data_group_data_type(args.query),<EOL>'<STR_LIT>': _get_query_params(args.query),<EOL>}<EOL>if "<STR_LIT>" in args.query:<EOL><INDENT>extra_json_fields['<STR_LIT>'] = _get_path_to_json_file(args.query)<EOL><DEDENT>return extra_json_fields<EOL>
From the parsed command-line arguments, generate a dictionary of additional
fields to be inserted into JSON logs (logstash_formatter module)