function audit_log_elastic_search_get_index_name in Audit Log 7
Return the index name (the alias name).
Return value
string
2 calls to audit_log_elastic_search_get_index_name()
- audit_log_elastic_search_audit_log in modules/
audit_log_elastic_search/ audit_log_elastic_search.module - Implements hook_audit_log().
- audit_log_elastic_search_settings_validate in modules/
audit_log_elastic_search/ audit_log_elastic_search.admin.inc - Validate the setting form submission.
File
- modules/
audit_log_elastic_search/ audit_log_elastic_search.module, line 119 - Hook implemenations for the Audit elastic search logging module.
Code
function audit_log_elastic_search_get_index_name($index_name = NULL) {
if (!isset($index_name)) {
$cluster_info = variable_get('audit_log_elastic_search_cluster_id', array());
$index_name = $cluster_info['index'];
}
return $index_name . '_alias';
}