summaryrefslogtreecommitdiffstats
path: root/compass-deck/misc/logstash-forwarder
diff options
context:
space:
mode:
authorHarry Huang <huangxiangyu5@huawei.com>2017-11-01 11:56:50 +0800
committerHarry Huang <huangxiangyu5@huawei.com>2017-11-03 11:48:46 +0800
commit905b0231e93ce2409a45dd6c4f5f983689fdb790 (patch)
tree8b3c8c78773194e048072368fe793135a05e44f1 /compass-deck/misc/logstash-forwarder
parent3656ab7b5e3f2f26f7c98f9dcc97b3c461fa2a76 (diff)
Add compass-deck
RESTful API and DB Handlers for Compass Change-Id: I1ce411f279943764c286ea48dca9185d453cf254 Signed-off-by: Harry Huang <huangxiangyu5@huawei.com>
Diffstat (limited to 'compass-deck/misc/logstash-forwarder')
-rw-r--r--compass-deck/misc/logstash-forwarder/logstash-forwarder.conf57
-rw-r--r--compass-deck/misc/logstash-forwarder/logstash-forwarder.crt29
-rw-r--r--compass-deck/misc/logstash-forwarder/logstash-forwarder.repo6
3 files changed, 92 insertions, 0 deletions
diff --git a/compass-deck/misc/logstash-forwarder/logstash-forwarder.conf b/compass-deck/misc/logstash-forwarder/logstash-forwarder.conf
new file mode 100644
index 0000000..d0cffeb
--- /dev/null
+++ b/compass-deck/misc/logstash-forwarder/logstash-forwarder.conf
@@ -0,0 +1,57 @@
+{
+ # The network section covers network configuration :)
+ "network": {
+ # A list of downstream servers listening for our messages.
+ # logstash-forwarder will pick one at random and only switch if
+ # the selected one appears to be dead or unresponsive
+ "servers": [ "www.stack360.io:5000" ],
+
+ # The path to your client ssl certificate (optional)
+ #"ssl certificate": "./logstash-forwarder.crt",
+ # The path to your client ssl key (optional)
+ #"ssl key": "./logstash-forwarder.key",
+
+ # The path to your trusted ssl CA file. This is used
+ # to authenticate your downstream server.
+ "ssl ca": "/etc/pki/tls/certs/logstash-forwarder.crt",
+
+ # Network timeout in seconds. This is most important for
+ # logstash-forwarder determining whether to stop waiting for an
+ # acknowledgement from the downstream server. If an timeout is reached,
+ # logstash-forwarder will assume the connection or server is bad and
+ # will connect to a server chosen at random from the servers list.
+ "timeout": 15
+ },
+
+ # The list of files configurations
+ "files": [
+ {
+ "paths": [
+ "/var/log/compass/celery.log"
+ ]
+ }
+ # An array of hashes. Each hash tells what paths to watch and
+ # what fields to annotate on events from those paths.
+ #{
+ #"paths": [
+ # single paths are fine
+ #"/var/log/messages",
+ # globs are fine too, they will be periodically evaluated
+ # to see if any new files match the wildcard.
+ #"/var/log/*.log"
+ #],
+
+ # A dictionary of fields to annotate on each event.
+ #"fields": { "type": "syslog" }
+ #}, {
+ # A path of "-" means stdin.
+ #"paths": [ "-" ],
+ #"fields": { "type": "stdin" }
+ #}, {
+ #"paths": [
+ #"/var/log/apache/httpd-*.log"
+ #],
+ #"fields": { "type": "apache" }
+ #}
+ ]
+}
diff --git a/compass-deck/misc/logstash-forwarder/logstash-forwarder.crt b/compass-deck/misc/logstash-forwarder/logstash-forwarder.crt
new file mode 100644
index 0000000..90f66b1
--- /dev/null
+++ b/compass-deck/misc/logstash-forwarder/logstash-forwarder.crt
@@ -0,0 +1,29 @@
+-----BEGIN CERTIFICATE-----
+MIIFAzCCAuugAwIBAgIJAKrryFncVfJNMA0GCSqGSIb3DQEBCwUAMBgxFjAUBgNV
+BAMMDSouc3RhY2szNjAuaW8wHhcNMTYwODE4MTcwNzEyWhcNMjYwODE2MTcwNzEy
+WjAYMRYwFAYDVQQDDA0qLnN0YWNrMzYwLmlvMIICIjANBgkqhkiG9w0BAQEFAAOC
+Ag8AMIICCgKCAgEAw4p1OVw8tMeYfk9828FiRLPhYWwHD2OCVwlKr8P3bl974I/P
+PhYTkrjEEe5SDYCWNcO58MxJ5X1vB2uQGNBBUFMni+KOqbVvcbPLL4Mkf8pjLdzD
+2pItE1X7UQ8p1iYBEyAnLoV4MjA7CJ4MmUtOOcCb6keHWEhyJFOj9IzkTjFCbKuL
+Y0paxayQOFlkuEK2d3Aa2HXgTLh3FFUX3kRqOcGg1uxEs2awf0nwP/NwcyfAgTSe
+6yqVjnb3GLYdy283Fqvx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s2iyAExvkq7kU5FAow6SLPIaOl7kbas2M4
+fwFisuEQT2Om+hbWWZTJ1T45KU5NjznkPqJZ9dCdyqs2mH7BE4vOkOULq81uFG06
+VnJHcO+wZM1iCLa1hy7F2S4fDTjTBYDcuD5GFkulFLeFH5X7zoPz20OGTRMXZONI
+CHEk1ibp8j/Q6bw1zd0jGm3KDUSx+0/Avfve/e28U4KAdNekrgQf
+-----END CERTIFICATE-----
diff --git a/compass-deck/misc/logstash-forwarder/logstash-forwarder.repo b/compass-deck/misc/logstash-forwarder/logstash-forwarder.repo
new file mode 100644
index 0000000..27d68ba
--- /dev/null
+++ b/compass-deck/misc/logstash-forwarder/logstash-forwarder.repo
@@ -0,0 +1,6 @@
+[logstashforwarder]
+name=logstashforwarder repository
+baseurl=http://packages.elasticsearch.org/logstashforwarder/centos
+gpgcheck=1
+gpgkey=http://packages.elasticsearch.org/GPG-KEY-elasticsearch
+enabled=1