Issues integrating Slack

Hello ,
I have config for slack like

xpack.notification.slack:
  account:
    monitoring:
      url: https://hooks.slack.com/services/T0NT7C7BM/B9JP0HSMD/Mxu1VoeIzm6Ch

But when i do query like

GET _nodes?filter_path=**.settings.xpack.notification
returns {} . I have already restarted my cluster with setting .

elasticsearch]# curl -v https://hooks.slack.com ; echo $?
* About to connect() to hooks.slack.com port 443 (#0)
*   Trying 52.84.124.223...
* Connected to hooks.slack.com (52.84.124.223) port 443 (#0)
* Initializing NSS with certpath: sql:/etc/pki/nssdb
*   CAfile: /etc/pki/tls/certs/ca-bundle.crt
  CApath: none
* SSL connection using TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
* Server certificate:
*       subject: CN=slack.com,O="Slack Technologies, Inc.",L=San Francisco,ST=CA,C=US
*       start date: Feb 08 00:00:00 2018 GMT
*       expire date: Feb 12 12:00:00 2021 GMT
*       common name: slack.com
*       issuer: CN=DigiCert SHA2 Secure Server CA,O=DigiCert Inc,C=US
> GET / HTTP/1.1
> User-Agent: curl/7.29.0
> Host: hooks.slack.com
> Accept: */*
>
< HTTP/1.1 302 Found
< Content-Type: text/html
< Content-Length: 0
< Connection: keep-alive
< Date: Mon, 05 Mar 2018 17:53:32 GMT
< location: https://api.slack.com/
< Referrer-Policy: no-referrer
< Server: Apache
< Strict-Transport-Security: max-age=31536000; includeSubDomains; preload
< Vary: Accept-Encoding
< X-Frame-Options: SAMEORIGIN
< X-Slack-Backend: h
< X-Cache: Miss from cloudfront
< Via: 1.1 5cb08f1fdb064b6046c3b17fe92559f8.cloudfront.net (CloudFront)
< X-Amz-Cf-Id: Ec7F-qbp8FtILTp70eCzLK8ZZYhqEGadwmhymTb-lnS96kPWWKxjlw==
<
* Connection #0 to host hooks.slack.com left intact
0

Can someone advise on slack integration what i am missing

Have you tried just

GET _nodes/settings

?

Thanks BIll but i was able to resolved issue

this setting is considered sensitive, so it is not returned when the settings are returned, as it might expose information you dont want to have exposed.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.