Skip to content

Commit 53a9665

Browse files
Fix-for-Encoding-issue-in-esa (#154)
* Fix-for-Encoding-issue-in-esa * Updated-condition
1 parent 7e1e36a commit 53a9665

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pytest_splunk_addon/standard_lib/event_ingestors/ingestor_helper.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,10 @@ def ingest_events(cls, ingest_meta_data, addon_path, config_path):
4646
ingestor_dict = dict()
4747
for event in tokenized_events:
4848
input_type = event.metadata.get("input_type")
49-
event.event = event.event.encode("utf-8").decode()
49+
if not input_type=="HECRawEventIngestor":
50+
event.event = event.event.encode("utf-8").decode()
51+
else:
52+
event.event = event.event.encode("utf-8")
5053
if input_type in ingestor_dict:
5154
ingestor_dict[input_type].append(event)
5255
else:

0 commit comments

Comments
 (0)