summaryrefslogtreecommitdiffstats
path: root/compass-deck/misc/logstash-forwarder/logstash-forwarder.conf
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/logstash-forwarder.conf
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/logstash-forwarder.conf')
-rw-r--r--compass-deck/misc/logstash-forwarder/logstash-forwarder.conf57
1 files changed, 57 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" }
+ #}
+ ]
+}