Skip to content

Commit 3aca957

Browse files
committed
fix: Extract params before ingestion for windows_input,dbx
1 parent 04cbb06 commit 3aca957

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

pytest_splunk_addon/standard_lib/event_ingestors/requirement_event_ingester.py

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -116,19 +116,27 @@ def get_events(self):
116116
"hec_event",
117117
):
118118
transport_type = "modinput"
119-
LOGGER.info(
120-
"sending data via HEC {}".format(filename)
121-
)
122119
host, source, sourcetype = self.extract_params(
123120
event_tag
124121
)
125122
LOGGER.info(
126-
f"sending data via HEC {host}, {source} {sourcetype}"
123+
f"sending data transport_type:modinput filename:{filename} host:{host}, source:{source} sourcetype:{sourcetype}"
127124
)
128125
elif transport_type == "dbx":
129126
transport_type = "modinput"
127+
host, source, sourcetype = self.extract_params(
128+
event_tag
129+
)
130+
LOGGER.info(
131+
f"sending data transport_type:dbx filename:{filename} host:{host}, source:{source} sourcetype:{sourcetype}"
132+
)
130133
elif transport_type == "windows_input":
131-
transport_type = "windows_input"
134+
host, source, sourcetype = self.extract_params(
135+
event_tag
136+
)
137+
LOGGER.info(
138+
f"sending data transport_type:windows_input filename:{filename} host:{host}, source:{source} sourcetype:{sourcetype}"
139+
)
132140
else:
133141
transport_type = "default"
134142
unescaped_event = self.extract_raw_events(event_tag)

0 commit comments

Comments
 (0)