Hi folks,
I have installed Graylog using a docker compose file.
version: '3.2'
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch-oss:6.8.2
ports:
- "9200:9200"
environment:
ES_JAVA_OPTS: "-Xms512m -Xmx512m"
networks:
- graylog
mongo:
image: mongo:4.0
networks:
- graylog
graylog:
image: graylog/graylog:3.1
ports:
- "9000:9000"
- "12201:12201/udp"
- "1514:1514"
environment:
GRAYLOG_HTTP_EXTERNAL_URI: "http://my-server-ip:9000/"
networks:
- graylog
depends_on:
- elasticsearch
- mongo
networks:
graylog:
driver: bridge
I’m facing an issue when I run a curl command.
curl -X POST -H ‘Content-Type: application/json’ -d ‘{ “version”: “1.1”, “host”: “test.com”, “short_message”: “A short message”, “level”: 5, “_some_info”: “foo” }’ 'http://my-server-ip:12201/gelf
Error which I’m getting is
curl: (7) Failed to connect to my-server-ip port 12201: Connection refused.
I have 2 inputs running in my Graylog server.
I have searched similar issues in the community. But it didn’t solve my issue.
I’m I missing something or is there any issue in configuration?