[icinga-checkins] icinga.org: icingaweb2-module-logstash/master: Set a default for index_pattern

git at icinga.org git at icinga.org
Fri Feb 5 14:05:47 CET 2016


Module: icingaweb2-module-logstash
Branch: master
Commit: b9bebdfc67e6e9266c283c98c849b4346492eaa1
URL:    https://git.icinga.org/?p=icingaweb2-module-logstash.git;a=commit;h=b9bebdfc67e6e9266c283c98c849b4346492eaa1

Author: Markus Frosch <markus at lazyfrosch.de>
Date:   Tue Jun 23 09:31:52 2015 +0200

Set a default for index_pattern

---

 library/Logstash/Controller.php |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/library/Logstash/Controller.php b/library/Logstash/Controller.php
index 6545960..555eb48 100644
--- a/library/Logstash/Controller.php
+++ b/library/Logstash/Controller.php
@@ -12,7 +12,7 @@ class Controller extends IcingaWebController
 
     public function moduleInit() {
         $this->elasticsearch_url = $this->Config()->get('elasticsearch', 'url');
-        $this->index_pattern = $this->Config()->get('elasticsearch', 'index_pattern', null);
+        $this->index_pattern = $this->Config()->get('elasticsearch', 'index_pattern', 'logstash-*');
 
         if (!$this->elasticsearch_url) {
             $this->view->configFile = $this->Config()->getConfigFile();



More information about the icinga-checkins mailing list