-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MISP42 Getting Proxy Error with Splunk 9.0 #216
Comments
Hello, 07-28-2022 12:35:28.821 ERROR script [1564718 phase_1] - SearchMessage orig_component=script sid=1659004527.1855_96CB9E0B-21F7-47EB-8C09-391F40BE0E16 message_key=EXTERN:SCRIPT_NONZERO_RETURN_%s_%d_%s message=External search command 'mispgetioc' returned error code 1. Script output = "error_message=SSLError at "/opt/splunk/lib/python3.7/site-packages/requests/adapters.py", line 514 : HTTPSConnectionPool(host='xxxxxx', port=443): Max retries exceeded with url: /attributes/restSearch (Caused by SSLError(SSLError(1, '[SSL: UNKNOWN_PROTOCOL] unknown protocol (ssl.c:1106)')))\r\n\r\n". Notice that when running the query on the same search head using the curl command in the terminal, as the below command, it works : curl -k -X POST "https://xxxxxxxx/attributes/restSearch" -H "Content-type:application/json" -H "Authorization:<TOKEN_HERE>" -H "Accept:application/json" -x http://xxxxx:8080 --connect-timeout 300 |
Same as above having issues with MISP42 command mispgetioc after upgrading to Splunk v9.0 (was v8.2.4). 07-29-2022 15:13:31.050 INFO PhaseNodeGenerationVisitor [15036 searchOrchestrator] - FallBackReason: Fallback to 2-phase mode because of empty split key of cmd: mispgetioc |
I fixed this issue by adding the following line to mispgetioc.py. The error coming from adapters.py will confuse you. When editing the adapters.py I found the error to actually be coming from the mispgetioc.py script. This is the second python script where I had to hard-code the proxy for Splunk. It appears with the latest python urlib3 code disallows proxy defined in MISP Splunk not being acknowledged and passed downstream. proxies = {http: 'proxy.com:xxxx', https: 'proxy.com:xxxx'} |
I cannot fix that issue. @brwnskndgirl I tried your patch but then there is an error message and the request fails. |
Hello, Once installed ( on splunk9 ), by providing the correct parameters, for example, tried with this : | curl url="https://<YOUR_MISP_URL>/events/1" method=post headers="{'Authorization':'<YOUR_TOKEN>','Content-type': 'application/json','Accept':'application/json'}" proxies="http://,<YOUR_HTTPS_PROXY" timeout=10 output=json It works, this is only a workaround, but at least it is usable. Feel free to modify the endpoint / parameters of the request to match your needs, then add a | collect and schedule the search, until the official app is upgraded. |
Hi, |
Hi, |
Hi
Thank you so much for feedback
I will publish soon on splunkbase
Remi
Le 3 octobre 2022 11:40:43 GMT+02:00, timo92700 ***@***.***> a écrit :
…Hi,
Just tested 4.2.0, also works on my side now.
Well done !
--
Reply to this email directly or view it on GitHub:
#216 (comment)
You are receiving this because you were assigned.
Message ID: ***@***.***>
--
Sent with K-9 Mail.
|
I can't seem to figure out the following error with MISP42 once we upgraded to Splunk 9.0.0. It appears the Python library changed also.
07-27-2022 22:15:26.024 ERROR script [31825 phase_1] - SearchMessage orig_component=script sid=1658960004.369_AEB75738-63D0-4F91-879F-AD62D0A7A6EC message_key=EXTERN:SCRIPT_NONZERO_RETURN__%s_%d_%s message=External search command 'mispgetioc' returned error code 1. Script output = "error_message=ProxyError at "/opt/splunk/lib/python3.7/site-packages/requests/adapters.py", line 512 : HTTPSConnectionPool(host='xxxxx.me.com', port=443): Max retries exceeded with url: /attributes/restSearch (Caused by ProxyError('Cannot connect to proxy.', ConnectionResetError(104, 'Connection reset by peer')))\r\n\r\n".
The text was updated successfully, but these errors were encountered: