@@ -23,7 +23,7 @@ class Event(object):
2323 To write an input to a stream, call the write_to function, passing in a stream.
2424 """
2525 def __init__ (self , data = None , stanza = None , time = None , host = None , index = None , source = None ,
26- sourceType = None , done = True , unbroken = True ):
26+ sourcetype = None , done = True , unbroken = True ):
2727 """There are no required parameters for constructing an Event
2828
2929 Example with minimal configuration:
@@ -43,7 +43,7 @@ def __init__(self, data=None, stanza=None, time=None, host=None, index=None, sou
4343 host="localhost",
4444 index="main",
4545 source="Splunk",
46- sourceType ="misc",
46+ sourcetype ="misc",
4747 done=True,
4848 unbroken=True
4949 )
@@ -54,7 +54,7 @@ def __init__(self, data=None, stanza=None, time=None, host=None, index=None, sou
5454 :param host: string, the event's host, ex: localhost
5555 :param index: string, the index this event is specified to write to, or None if default index
5656 :param source: string, the source of this event, or None to have Splunk guess
57- :param sourceType : string, source type currently set on this event, or None to have Splunk guess
57+ :param sourcetype : string, source type currently set on this event, or None to have Splunk guess
5858 :param done: boolean, is this a complete Event? False if an Event fragment
5959 :param unbroken: boolean, Is this event completely encapsulated in this Event object?
6060 """
@@ -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
@@ -72,7 +72,7 @@ def write_to(self, stream):
7272 """Write an XML representation of self, an Event object, to the given stream
7373
7474 The Event object will only be written if its data field is defined,
75- else a ValueError is raised.
75+ otherwise a ValueError is raised.
7676
7777 :param stream: stream to write XML to
7878 """
0 commit comments