$templates.shared.doctype {= include "templates.shared.util.bytes_unit.get_bytes_text"; string profile_name = internal.profile_name; =} {= expand(templates.shared.content_type); =}
$lang_options.profile.log.processing.label $lang_options.profile.log.processing.edit_button
{= # --------------------------------- # subroutine build_alphanumeric_row # --------------------------------- subroutine(build_alphanumeric_row(node the_node, string the_subnode, string type), ( string value_text = node_value(subnode_by_name(the_node, the_subnode)); if (type eq "bytes") then ( value_text = get_bytes_text(value_text); ); if (the_subnode eq "date_offset") then ( value_text = value_text . " " . lang_options.profile.log.processing.date_offset.unit_label; ); ''; '' . node_value("lang_options.profile.log.processing." . the_subnode . ".label") . ':'; '' . value_text . ''; '\n'; )); # ---------------------------- # subroutine build_boolean_row # ---------------------------- subroutine(build_boolean_row(node the_node, string the_subnode), ( bool checked = node_value(subnode_by_name(the_node, the_subnode)); ''; ''; ' '; node_value("lang_options.profile.log.processing." . the_subnode . ".label"); ''; '\n'; )); node log_processing_node = "profiles." . profile_name . ".log.processing"; '\n'; build_alphanumeric_row(log_processing_node, "date_offset", ""); build_alphanumeric_row(log_processing_node, "threads", ""); build_alphanumeric_row(log_processing_node, "thread_data_block_size", "bytes"); build_alphanumeric_row(log_processing_node, "read_block_size", "bytes"); build_alphanumeric_row(log_processing_node, "log_entry_pool_size", ""); # '
\n'; # '\n'; build_boolean_row(log_processing_node, "allow_empty_log_source"); build_boolean_row(log_processing_node, "skip_processed_filenames_on_update"); build_boolean_row(log_processing_node, "skip_most_recent_file"); build_boolean_row(log_processing_node, "look_up_location_with_geoip"); # ------------------ # charset conversion # ------------------ bool convert_log_data_charset = node_value(subnode_by_name(log_processing_node, "convert_log_data_charset")); string convert_log_data_from_charset = node_value(subnode_by_name(log_processing_node, "convert_log_data_from_charset")); string convert_log_data_to_charset = node_value(subnode_by_name(log_processing_node, "convert_log_data_to_charset")); string charset_text; if ((convert_log_data_from_charset ne "") and (convert_log_data_to_charset ne "")) then ( string param1 = convert_log_data_from_charset; string param2 = convert_log_data_to_charset; charset_text = lang_options.profile.log.processing.convert_log_data_charset.label_2; ) else ( charset_text = lang_options.profile.log.processing.convert_log_data_charset.label; ); '\n'; '\n'; '\n'; '
'; ' '; charset_text; '
\n'; expand(templates.shared.copyright); =}