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

Commit 9753301

Browse files
author
Chris Wiechmann
committed
Debug message improved
1 parent 6a59dc9 commit 9753301

File tree

2 files changed

+11
-6
lines changed
  • apibuilder4elastic/custom_flow_nodes/api-builder-plugin-axway-api-management/src

2 files changed

+11
-6
lines changed

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -964,7 +964,7 @@ Any API-Gateway version that supports the Open-Traffic event log is supported. H
964964

965965
### Will indexed data be deleted automatically?
966966

967-
Yes, as of version 2.0.0, each index created in Elasticsearch is assigned an Index Lifecycle Policy ([ILM](https://www.elastic.co/guide/en/elasticsearch/reference/current/index-lifecycle-management.html)). This controls how long data is retained for each data type.
967+
Yes, as of version 2.0.0, each index created in Elasticsearch is assigned an Index Lifecycle Policy ([ILM](https://www.elastic.co/guide/en/elasticsearch/reference/current/index-lifecycle-management.html)). This controls how long data is retained for each data type. Learn more [here](#lifecycle-management).
968968

969969
### Can I use this solution for multiple stages?
970970

@@ -991,6 +991,11 @@ Yes, you can run Filebeat natively instead of a Docker-Container if you prefer.
991991

992992
In case Logstash is stopped, Filebeat cannot sent events any longer to Logstash. However, Filebeat remembers the position of the last sent events on each files and resumes at that position, when Logstash is available again. Of course, you have to make sure, files are available long enough. For instance the OpenTraffic-Event Logs are configured by default to 1GB, which is sufficient for around 30 minutes when having 300 TPS. You should increase the disk space.
993993

994+
### What happens if Filebeat is down for a while?
995+
996+
Filebeat stores the current position in a file and which events have already been passed on. If Filebeat is shut down cleanly and then restarted, Filebeat will pick up where it left off.
997+
Tests have shown that it can still be that a few events are lost.
998+
994999
### Can I run multiple Logstash instances?
9951000

9961001
Yes, Logstash is stateless (besides what is stored is Memcache), hence you can run as many Logstash instances as you like or need. In that case you have to provide multiple Logstash instances using the parameter `LOGSTASH_HOSTS` to the Filebeat instances so that they can load balance the events.

apibuilder4elastic/custom_flow_nodes/api-builder-plugin-axway-api-management/src/actions.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -249,11 +249,11 @@ async function _getAPILocalProxies(params, options) {
249249
if(localAPIConfig == undefined) {
250250
return;
251251
} else {
252-
var proxy = await _getLocalProxy(regionProxies, apiPath, policyName, options);
252+
var proxy = await _getLocalProxy(regionProxies, apiPath, policyName, 'Region', options);
253253
if(proxy!=undefined) return proxy;
254-
proxy = await _getLocalProxy(groupProxies, apiPath, policyName, options);
254+
proxy = await _getLocalProxy(groupProxies, apiPath, policyName, 'Group', options);
255255
if(proxy!=undefined) return proxy;
256-
proxy = await _getLocalProxy(localProxies, apiPath, policyName, options);
256+
proxy = await _getLocalProxy(localProxies, apiPath, policyName, 'General', options);
257257
return proxy;
258258
}
259259
} else {
@@ -262,9 +262,9 @@ async function _getAPILocalProxies(params, options) {
262262
}
263263
}
264264

265-
async function _getLocalProxy(localProxies, apiPath, policyName, options) {
265+
async function _getLocalProxy(localProxies, apiPath, policyName, scope, options) {
266266
if(localProxies == undefined) {
267-
options.logger.warn(`No configuration found in file.`);
267+
options.logger.warn(`No configuration found in file (${scope}).`);
268268
return;
269269
}
270270
var foundProxy;

0 commit comments

Comments
 (0)