From 5e31088c6eb281ac472a2d13d4c8125bce96f062 Mon Sep 17 00:00:00 2001 From: Jin-Sun-tts Date: Wed, 10 Jan 2024 15:53:37 -0500 Subject: [PATCH] change field name and instance number --- create-space-drain.sh | 2 +- logstash/logstash.conf | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/create-space-drain.sh b/create-space-drain.sh index f56a1b9..f121f1c 100755 --- a/create-space-drain.sh +++ b/create-space-drain.sh @@ -39,7 +39,7 @@ cat > manifest.yml << EOF --- applications: - name: ${prefix}-space-drain - instances: 0 + instances: 1 memory: 64M no-route: true EOF diff --git a/logstash/logstash.conf b/logstash/logstash.conf index ecf98e4..9d9b597 100755 --- a/logstash/logstash.conf +++ b/logstash/logstash.conf @@ -95,7 +95,7 @@ filter{ if ( ([log_data] and [log_data] =~ /^NginxLog/) or - ([hostname] and [http_status] and [hostname] =~ /^logstash-/ and [http_status] == "200") + ([hostname] and [status] and [hostname] =~ /^logstash-/ and [status] == "200") ) { drop { } }