Skip to content

Commit 7fa9fae

Browse files
Update goldens.
1 parent 251d0d7 commit 7fa9fae

4 files changed

Lines changed: 80 additions & 0 deletions

File tree

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
2+
function process(tag, timestamp, record)
3+
local match = ((record["__match_0_0"] ~= nil));
4+
5+
for k, v in pairs(record) do
6+
if string.match(k, "^__match_.+") then
7+
record[k] = nil
8+
end
9+
end
10+
11+
if match then
12+
return -1, 0, 0
13+
end
14+
return 2, 0, record
15+
end

confgenerator/testdata/goldens/windows-logging-receiver_iis/golden/windows-2012/fluent_bit_main.conf

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,31 @@
158158
call iis_concat_fields
159159
script 4a5b42280a1d265b3934ffddbaf53cbd.lua
160160

161+
[FILTER]
162+
Match iis.iis_access
163+
Name nest
164+
Nest_under record
165+
Operation nest
166+
Wildcard *
167+
168+
[FILTER]
169+
Condition Key_value_matches $record['message'] ^#(?:Fields|Date|Version|Software):
170+
Match iis.iis_access
171+
Name modify
172+
Set __match_0_0 1
173+
174+
[FILTER]
175+
Match iis.iis_access
176+
Name nest
177+
Nested_under record
178+
Operation lift
179+
180+
[FILTER]
181+
Match iis.iis_access
182+
Name lua
183+
call process
184+
script 67770d56918933c3ea3dd6ec983c21bd.lua
185+
161186
[FILTER]
162187
Match iis.iis_access
163188
Name lua
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
2+
function process(tag, timestamp, record)
3+
local match = ((record["__match_0_0"] ~= nil));
4+
5+
for k, v in pairs(record) do
6+
if string.match(k, "^__match_.+") then
7+
record[k] = nil
8+
end
9+
end
10+
11+
if match then
12+
return -1, 0, 0
13+
end
14+
return 2, 0, record
15+
end

confgenerator/testdata/goldens/windows-logging-receiver_iis/golden/windows/fluent_bit_main.conf

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,31 @@
158158
call iis_concat_fields
159159
script 4a5b42280a1d265b3934ffddbaf53cbd.lua
160160

161+
[FILTER]
162+
Match iis.iis_access
163+
Name nest
164+
Nest_under record
165+
Operation nest
166+
Wildcard *
167+
168+
[FILTER]
169+
Condition Key_value_matches $record['message'] ^#(?:Fields|Date|Version|Software):
170+
Match iis.iis_access
171+
Name modify
172+
Set __match_0_0 1
173+
174+
[FILTER]
175+
Match iis.iis_access
176+
Name nest
177+
Nested_under record
178+
Operation lift
179+
180+
[FILTER]
181+
Match iis.iis_access
182+
Name lua
183+
call process
184+
script 67770d56918933c3ea3dd6ec983c21bd.lua
185+
161186
[FILTER]
162187
Match iis.iis_access
163188
Name lua

0 commit comments

Comments
 (0)