You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@eagle.apache.org by ha...@apache.org on 2016/04/06 15:56:32 UTC

incubator-eagle git commit: EAGLE-189 adding sample hadoop-namenode-gc-logstash-kafka.conf

Repository: incubator-eagle
Updated Branches:
  refs/heads/master 1026b8487 -> ee6c6ad6d


EAGLE-189 adding sample hadoop-namenode-gc-logstash-kafka.conf

adding sample hadoop-namenode-gc-logstash-kafka.conf

Sign-Off-By: @haoch <ha...@apache.org>

Closes #114


Project: http://git-wip-us.apache.org/repos/asf/incubator-eagle/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-eagle/commit/ee6c6ad6
Tree: http://git-wip-us.apache.org/repos/asf/incubator-eagle/tree/ee6c6ad6
Diff: http://git-wip-us.apache.org/repos/asf/incubator-eagle/diff/ee6c6ad6

Branch: refs/heads/master
Commit: ee6c6ad6d07c1294605d42a05926bff7a20481c2
Parents: 1026b84
Author: amaliakkalpadman <am...@ebay.com>
Authored: Tue Mar 8 19:26:46 2016 +0530
Committer: Hao Chen <ha...@apache.org>
Committed: Wed Apr 6 21:55:15 2016 +0800

----------------------------------------------------------------------
 .../hadoop-namenode-gc-logstash-kafka.conf      | 30 ++++++++++++++++++++
 1 file changed, 30 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-eagle/blob/ee6c6ad6/eagle-gc/src/main/resources/hadoop-namenode-gc-logstash-kafka.conf
----------------------------------------------------------------------
diff --git a/eagle-gc/src/main/resources/hadoop-namenode-gc-logstash-kafka.conf b/eagle-gc/src/main/resources/hadoop-namenode-gc-logstash-kafka.conf
new file mode 100644
index 0000000..0f7937f
--- /dev/null
+++ b/eagle-gc/src/main/resources/hadoop-namenode-gc-logstash-kafka.conf
@@ -0,0 +1,30 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#    http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+input {
+      file {
+            type => "gc_logs"
+            path => ["/apache/hadoop/logs/hadoop-gc-namenode.log"]
+         }
+}
+output {
+    kafka {
+        codec => plain {
+            format => "%{message}"
+        }
+      broker_list => "kafka1.company.com:9092,kafka2.company.com:9092,kafka2.company.com:9092"
+      topic_id => "gc_alert_cluster1"
+    }
+}