I'm doing my first python script connecting to Splunk. It fails with following error:
Traceback (most recent call last):
File "PrintInterntalIndexEventCount.py", line 14, in <module&g...
Why does splunkd close internal sockets before the receive queue has been emptied? This appears to leave them laying around in CLOSE_WAIT state instead of moving directly to CLOSE.
$ netstat -t...
...elf.source_address)
File "C:\Python27\lib\socket.py", line 557, in create_connection
for res in getaddrinfo(host, port, 0, SOCK_STREAM):
socket.gaierror: [Errno 11004] getaddrinfo failed
Has anyone e...
Dear All,
I have created a TA to monitor a custom python script named log_parser_v1.py". Here is the configuration from /splunk/etc/apps/TA-logs/default/inputs.conf
[script://./b...
...:\Python27\lib\socket.py", line 575, in create_connection
raise err
****error: [Errno 10060] A connection attempt failed because the connected party did not properly respond after a period of t...
...ttplib.py", line 821, in connect
self.timeout, self.source_address)
File "/opt/splunk/lib/python2.7/socket.py", line 575, in create_connection
raise err
socket.error: [Errno 110] C...
There is no error shown while sending data over socket using Python SDK. But the event is not available in search. Why?
import splunklib;
import config;
import splunklib.client as c...
.../Versions/2.7/lib/python2.7/httplib.py", line 409, in _read_status
line = self.fp.readline(_MAXLINE + 1)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/socket.py...
...TTPConnection.connect(self)
File "C:\Users\rmshzol\PycharmProjects\splunk-sdk\httplib.py", line 836, in connect
self.timeout, self.source_address)
File "C:\Python27\lib\socket.py", line 575, in c...