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

Commit 1dcb32b

Browse files
author
Chris Wiechmann
committed
Fixing Logstash tests
1 parent eafcff3 commit 1dcb32b

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

logstash/pipelines/BeatsInputPipeline.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,9 @@ filter {
103103
set => { "[indicesStatus]" => "%{logtype}###%{gatewayRegion}" }
104104
}
105105
}
106-
# Remove the headers returned by the Logstash HTTP filter - we don't need them
106+
# Remove fields not required any further
107107
mutate {
108-
remove_field => [ "headers" ]
108+
remove_field => [ "headers", "indicesStatus" ]
109109
}
110110
}
111111

logstash/test/beatsInput/test-index-creation-lookup.json

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,7 @@
2020
"message": "This should create an index",
2121
"gatewayName": "API-Gateway 1",
2222
"gatewayRegion": "EU",
23-
"host": "test-host",
24-
"indexExists": {
25-
"mocked": "index-created"
26-
},
23+
"host": "test-host",
2724
"integrationTest": "true"
2825
}
2926
]
@@ -41,9 +38,6 @@
4138
"gatewayName": "API-Gateway 1",
4239
"gatewayRegion": "EU",
4340
"host": "test-host",
44-
"indexExists": {
45-
"mocked": "index-created"
46-
},
4741
"integrationTest": "true",
4842
"cachedResponse": "true"
4943
}

0 commit comments

Comments
 (0)