Skip to content

Commit

Permalink
Merge pull request #2 from Codebucket-Solutions/dev
Browse files Browse the repository at this point in the history
filter GET requests
  • Loading branch information
gotham13 authored Mar 27, 2024
2 parents 02da41d + d4cb505 commit f415662
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ pm2.launchBus(function (err, bus) {

bus.on("log:out", function (log) {
if (log.process.name !== "PM2-LOGSTASH") {
log.data = log.data.replace('[0m', '')
if (!(log.data.startsWith("/") || log.data.startsWith("GET"))) {
var message = {
timestamp: new Date(log.at).toISOString(),
Expand All @@ -55,6 +56,7 @@ pm2.launchBus(function (err, bus) {

bus.on("log:err", function (log) {
if (log.process.name !== "PM2-LOGSTASH") {
log.data = log.data.replace('[0m', '')
if (!(log.data.startsWith("/") || log.data.startsWith("GET"))) {
var message = {
timestamp: new Date(log.at).toISOString(),
Expand Down

0 comments on commit f415662

Please sign in to comment.