08-Aug-2022 01:54 - edited 08-Aug-2022 01:55
Hi all,
I need to format a custom HTTPS monitor in such a way it makes a request similar to the below:
curl -L -X GET 'https://x.x.x.x:9200/_cluster/health?pretty' -H 'Authorization: ApiKey anapikeygoeshere'"
Is this feasible? I'm not totally clued up on how these strings need to be formatted.
Thanks,
Josh
Solved! Go to Solution.
08-Aug-2022 11:33
Hi Josh,
Send String:
GET /_cluster/health?pretty HTTP/1.1\r\nAuthorization: ApiKey anapikeygoeshere\r\nConnection: Close\r\n\r\n
If the pool member ports are not 9200, you must specify them in the "Alias Service Port" field.
08-Aug-2022 11:33
Hi Josh,
Send String:
GET /_cluster/health?pretty HTTP/1.1\r\nAuthorization: ApiKey anapikeygoeshere\r\nConnection: Close\r\n\r\n
If the pool member ports are not 9200, you must specify them in the "Alias Service Port" field.
10-Aug-2022 01:51
Thank you, that worked great.
Got that one written down for next time 🙂
All the best.
Josh