function elasticsearch_watchdog_get_index_name in Elasticsearch Connector 7
Same name and namespace in other branches
- 7.5 modules/elasticsearch_watchdog/elasticsearch_watchdog.module \elasticsearch_watchdog_get_index_name()
- 7.2 modules/elasticsearch_watchdog/elasticsearch_watchdog.module \elasticsearch_watchdog_get_index_name()
Return the index name (the alias name).
Return value
string
10 calls to elasticsearch_watchdog_get_index_name()
- elasticsearch_watchdog_clear_log_submit in modules/
elasticsearch_watchdog/ elasticsearch_watchdog.admin.inc - Form submission handler for elasticsearch_watchdog_clear_log_form().
- elasticsearch_watchdog_event in modules/
elasticsearch_watchdog/ elasticsearch_watchdog.admin.inc - Page callback: Displays details about a specific log message.
- elasticsearch_watchdog_filter_delete_confirm_submit in modules/
elasticsearch_watchdog/ elasticsearch_watchdog.admin.inc - Form submission handler for confirm_form
- elasticsearch_watchdog_overview in modules/
elasticsearch_watchdog/ elasticsearch_watchdog.admin.inc - Page callback: Displays a listing of log messages.
- elasticsearch_watchdog_settings_validate in modules/
elasticsearch_watchdog/ elasticsearch_watchdog.admin.inc - Validate the setting form submission.
File
- modules/
elasticsearch_watchdog/ elasticsearch_watchdog.module, line 249 - Created on Jan 06, 2014
Code
function elasticsearch_watchdog_get_index_name($index_name = NULL) {
if (!isset($index_name)) {
$cluster_info = variable_get('elasticsearch_watchdog_cluster_id', array());
$index_name = $cluster_info['index'];
}
return $index_name . '_alias';
}