Forum Discussion

Joshgreen_94's avatar
Joshgreen_94
Icon for Nimbostratus rankNimbostratus
Aug 08, 2022
Solved

HTTPS Custom Monitor

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

  • 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.

2 Replies

  • 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.

    • Joshgreen_94's avatar
      Joshgreen_94
      Icon for Nimbostratus rankNimbostratus

      Thank you, that worked great. 

      Got that one written down for next time 🙂

       

      All the best.

      Josh