# Problem connecting rest api

**URL:** <https://community.graylog.org/t/problem-connecting-rest-api/28391>\
**Category:** How Are We Doing? Suggestion Box\
**Created:** [April 10, 2023, 8:39am UTC](https://community.graylog.org/t/problem-connecting-rest-api/28391 "2023-04-10T08:39:41Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![alireza](https://avatars.discourse-cdn.com/v4/letter/a/b77776/32.png) [@alireza](https://community.graylog.org/u/alireza)\
**Post date:** [April 10, 2023, 8:39am UTC](https://community.graylog.org/t/problem-connecting-rest-api/28391/1 "2023-04-10T08:39:41Z")

</div>

I want to send log to graylog installed by docker in my local network  
i can get for example this url output [http://10.0.2.106:9000/api/api-docs](http://10.0.2.106:9000/api/api-docs)  
so i can connect to graylog via http  
I made HTTP Api in System/Inputs  
I try to send data with postman  
I Use Authentication Basic with my admin user And password  
using post with this [http://10.0.2.106:9000/api/](http://10.0.2.106:9000/api/)  
but whatever i do i get this response  
{  
“type”: “ApiError”,  
“message”: “HTTP 405 Method Not Allowed”  
}  
is there any documentation to send data via restapi?

---

<div class="post-metadata">

**Author:** ![gsmith](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/gsmith/32/1222_2.png) [@gsmith](https://community.graylog.org/u/gsmith)\
**Post date:** [April 10, 2023, 9:14pm UTC](https://community.graylog.org/t/problem-connecting-rest-api/28391/2 "2023-04-10T21:14:31Z")

</div>

Hello @Welcome @alireza

By chance are you testing this out with Graylogs API Browswer?

---

<div class="post-metadata">

**Author:** ![alireza](https://avatars.discourse-cdn.com/v4/letter/a/b77776/32.png) [@alireza](https://community.graylog.org/u/alireza)\
**Post date:** [April 13, 2023, 6:19am UTC](https://community.graylog.org/t/problem-connecting-rest-api/28391/3 "2023-04-13T06:19:07Z")

</div>

yes but I had a problem that I asked in another post

> [@Problem on showing ApiBrowser on Http Api node](https://community.graylog.org/t/problem-on-showing-apibrowser-on-http-api-node/28393/3):
>
> thank you for your response. I use docker-compose as it said on graylog websit with mongodb and elasticsearch and graylog inside it . I added the network as you said mode for graylog part but it could not connect to mongodb and elasticsearch so it didnt work , I uploaded my docker-compose . Blockquote version: ‘2’ services: MongoDB: [Docker](https://hub.docker.com/_/mongo/) mongodb: image: mongo:5.0.13 volumes: - mongo\_data:/data/db Elasticsearch: [Install Elasticsearch with Docker | Elasticsearch Guide [7.10] | Elast…](https://www.elastic.co/guide/en/elasticsearch/reference/7.10/docker.html)

---

<div class="post-metadata">

**Author:** ![gsmith](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/gsmith/32/1222_2.png) [@gsmith](https://community.graylog.org/u/gsmith)\
**Post date:** [April 13, 2023, 10:08pm UTC](https://community.graylog.org/t/problem-connecting-rest-api/28391/4 "2023-04-13T22:08:35Z")

</div>

hey @alireza

I understand now. I think that other post gets fixed then this issue will get resolved

---

<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:** [April 27, 2023, 10:09pm UTC](https://community.graylog.org/t/problem-connecting-rest-api/28391/5 "2023-04-27T22:09:11Z")

</div>

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