Commit 0e710f8a authored by Félix Hamel's avatar Félix Hamel

* Filter out ELB Health check and UpTimeRobot
parent 7d7642eb
......@@ -297,6 +297,14 @@ CMBF.prototype.launch = P.method(function(pluginOpts) {
server.on("request", function(request) {
if (request.method !== "options") {
// Filter
if(request.headers["user-agent"].indexOf("ELB-HealthChecker") > 0) {
return;
}
else if(request.headers["user-agent"].indexOf("uptimerobot") > 0) {
return;
}
let LOG = {
headers: request.headers,
method: request.method,
......@@ -318,6 +326,14 @@ CMBF.prototype.launch = P.method(function(pluginOpts) {
server.on("response", function(request) {
if (request.method !== "options") {
// Filter
if(request.headers["user-agent"].indexOf("ELB-HealthChecker") > 0) {
return;
}
else if(request.headers["user-agent"].indexOf("uptimerobot") > 0) {
return;
}
// Check if output is less than 2000 chars, otherwise only return a message to preserve ELK disk space.
// (Anyway we can retry the query if needed)
if (request.response.source.data) {
......
{
"name": "cmbf-core",
"version": "1.7.25-beta3",
"version": "1.7.25-beta4",
"description": "Covistra Mobile-Backend Framework Core Module",
"main": "index.js",
"scripts": {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment