# API for graylog-datanode

**URL:** <https://community.graylog.org/t/api-for-graylog-datanode/37557>\
**Category:** Graylog Central (peer support)\
**Created:** [September 10, 2026, 6:04am UTC](https://community.graylog.org/t/api-for-graylog-datanode/37557 "2026-09-10T06:04:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![igoriceg](https://avatars.discourse-cdn.com/v4/letter/i/bc8723/32.png) [@igoriceg](https://community.graylog.org/u/igoriceg)\
**Post date:** [September 10, 2026, 6:04am UTC](https://community.graylog.org/t/api-for-graylog-datanode/37557/1 "2026-09-10T06:04:50Z")

</div>

Hello everyone. I’ve run into the following problem: Graylog version 7.3 — graylog‑server and graylog‑datanode are installed on the same physical server. I need to access the API to manage indices via the terminal (use bash scripts to check the number of indexes and delete them under certain conditions). If I run

curl -X GET “[http://localhost:9200/](http://localhost:9200/)”

in the terminal, I get the response:

curl: (52) Empty reply from server.

When i had a grayog 5, this works fine.

At this stage, I need help. thx in advance

---

<div class="post-metadata">

**Author:** ![Wine\_Merchant](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/wine_merchant/32/14596_2.png) [@Wine\_Merchant](https://community.graylog.org/u/Wine_Merchant)\
**Post date:** [September 10, 2026, 9:01am UTC](https://community.graylog.org/t/api-for-graylog-datanode/37557/2 "2026-09-10T09:01:56Z")

</div>

Hello @igoriceg,

Data Node implements Opensearch Security which means you would need to use either a JWT token or client certs to access the Opensearch API.

You can download the cert via ui under System/Cluster Configuration/Certificate Management

 ![image](https://us1.discourse-cdn.com/flex016/uploads/graylog/original/3X/8/f/8f5745f8f30a54c2c0b2d936a5c36b425725b986.png)

You should then use those certs with the curl and use https.

```auto
curl --cert client.crt --key client.key --cacert ca.crt \
“https://localhost:9200/”

```

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/graylog/original/3X/c/7/c7c09c6b5099570133d6502b83f50ba4430de5b6.png) [@system](https://community.graylog.org/u/system)\
**Post date:** [September 24, 2026, 9:02am UTC](https://community.graylog.org/t/api-for-graylog-datanode/37557/3 "2026-09-24T09:02:33Z")

</div>

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