Skip to content
This repository was archived by the owner on Dec 14, 2022. It is now read-only.

Commit 4c34188

Browse files
author
Chris Wiechmann
committed
Simplifying setup and monitoring
1 parent ad32165 commit 4c34188

File tree

2 files changed

+16
-7
lines changed

2 files changed

+16
-7
lines changed

.env

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ APIGATEWAY_TRACES_FOLDER=/home/localuser/Axway-x.y.z/apigateway/groups/group-2/i
55

66
# ----------------------------------------------------------------------------------------------
77
# This variable is used by the API-Builder to locate the Elasticsearch instance
8-
# When using the default docker-compose.yaml this setting is optional.
8+
# When using the default docker-compose.yaml the following default parameter will work.
99
# But, when running the ElasticSearch on a difference host (e.g. existing Elastic-Search cluster)
1010
# this environment variable is used by the API-Builder to locate the ElasticSearch cluster.
11-
# ELASTIC_NODE=http://elasticsearch1:9200
11+
ELASTIC_NODE=http://elasticsearch1:9200
1212

1313
# ----------------------------------------------------------------------------------------------
1414
# This variable is used by Logstash to communicate with the Lookup-API, which is used to
@@ -44,5 +44,14 @@ API_MANAGER_PASSWORD=changeme
4444

4545
# ----------------------------------------------------------------------------------------------
4646
# This tells Filebeat where Logstash is running.
47-
# When using the default docker-compose.yml the default setting will work.
48-
#LOGSTASH=logstash:5044
47+
# When using the default docker-compose.yml the following default will work.
48+
# If you are running Logstash somewhere else, e.g. as a service in K8S you need to change this
49+
# parameter.
50+
LOGSTASH=logstash:5044
51+
52+
# ----------------------------------------------------------------------------------------------
53+
# This is an optional parameter used by Filebeat to set a proper name. This allows to better
54+
# monitor Filebeat instances in the Kibana-Stack Monitoring dashboards.
55+
# parameter.
56+
# Defaults to: "Filebeat Gateway"
57+
# FILEBEAT_NAME

filebeat/filebeat.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: ${NAME:"Filebeat Gateway"}
1+
name: ${FILEBEAT_NAME:"Filebeat Gateway"}
22
filebeat.inputs:
33
- input_type: log
44
paths: ["/var/log/work/*.log"]
@@ -19,7 +19,7 @@ filebeat.inputs:
1919
logtype: trace
2020

2121
output.logstash:
22-
hosts: ["${LOGSTASH|logstash:5044}"]
22+
hosts: ["${LOGSTASH}"]
2323

2424
processors:
2525
- timestamp:
@@ -33,4 +33,4 @@ monitoring:
3333
# Get the Cluster-ID (cluster_uuid) with this simple query: http://elasticsearch1:9200/
3434
cluster_uuid: <YOUR_ELASTICSEARCH-CLUSTER-UUID>
3535
elasticsearch:
36-
hosts: ["${ELASTIC_NODE|http://elasticsearch1:9200}"]
36+
hosts: ["${ELASTIC_NODE}"]

0 commit comments

Comments
 (0)