Skip to content

Commit a47afa5

Browse files
author
Shakeel Mohamed
committed
FIXME note: Index.attach() cookie-based auth doesn't seem to work
This function uses the receivers/stream endpoint, and should work just fine. Need to do some further investigation on this.
1 parent a34d675 commit a47afa5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

splunklib/client.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1900,6 +1900,9 @@ def attach(self, host=None, source=None, sourcetype=None):
19001900
if sourcetype is not None: args['sourcetype'] = sourcetype
19011901
path = UrlEncoded(PATH_RECEIVERS_STREAM + "?" + urllib.urlencode(args), skip_encode=True)
19021902

1903+
# FIXME: BUG, can't seem to use receivers/stream by writing Cookie: xyz
1904+
# but it works fine with with the Authorization: xyz header
1905+
19031906
# Since we need to stream to the index connection, we have to keep
19041907
# the connection open and use the Splunk extension headers to note
19051908
# the input mode

0 commit comments

Comments
 (0)