Skip to content

Commit 1a4e8ac

Browse files
test: Updated docs and ingestor_helper
1 parent c6a1983 commit 1a4e8ac

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

docs/sample_generator.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ input_type = modinput | scripted_input | syslog_tcp | file_monitor | windows_inp
5959
* For example, in an Add-on, a sourcetype "alert" is ingested through syslog in live environment, provide input_type=syslog_tcp.
6060

6161
.. warning::
62-
uf_file_monitor input_type will only work with splunk_type=docker.
62+
uf_file_monitor input_type will only work with splunk-type=docker.
6363

6464
index = <index>
6565
* The index used to ingest the data.

pytest_splunk_addon/standard_lib/event_ingestors/ingestor_helper.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,8 @@ def ingest_events(cls, ingest_meta_data, addon_path, config_path, thread_count,
5151
ingestor_dict = dict()
5252
for event in tokenized_events:
5353
input_type = event.metadata.get("input_type")
54-
if input_type in ["modinput", "windows_input", "syslog_tcp", "syslog_udp"]:
54+
if input_type in ["modinput", "windows_input", "syslog_tcp", "syslog_udp", "uf_file_monitor"]:
5555
event.event = event.event.encode("utf-8").decode()
56-
elif input_type in ["uf_file_monitor"]:
57-
pass
5856
else:
5957
event.event = event.event.encode("utf-8")
6058
if input_type in ingestor_dict:

0 commit comments

Comments
 (0)