Skip to content

Commit 64ce218

Browse files
author
Shakeel Mohamed
committed
Fix casing issue with sourcetypes, addresses DVPL-3638
1 parent 5c2ebc2 commit 64ce218

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

splunklib/modularinput/event.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def __init__(self, data=None, stanza=None, time=None, host=None, index=None, sou
6363
self.host = host
6464
self.index = index
6565
self.source = source
66-
self.sourceType = sourcetype
66+
self.sourcetype = sourcetype
6767
self.stanza = stanza
6868
self.time = time
6969
self.unbroken = unbroken
@@ -91,7 +91,7 @@ def write_to(self, stream):
9191
# add all other subelements to this Event, represented by (tag, text)
9292
subelements = [
9393
("source", self.source),
94-
("sourceType", self.sourceType),
94+
("sourcetype", self.sourcetype),
9595
("index", self.index),
9696
("host", self.host),
9797
("data", self.data)

0 commit comments

Comments
 (0)