Coder Social home page Coder Social logo

Comments (9)

Bekt avatar Bekt commented on June 17, 2024

Is logstash://ip:5000 accessible from inside of the container?

from logspout-logstash.

MagicStarTrace avatar MagicStarTrace commented on June 17, 2024

docker compose logstash:
logstash:
image: elkstack/logstash-logspout
ports:
- 5000:5000/udp
restart: unless-stopped
command: -f /opt/logstash/sample.conf

=========================================================

root@vm10-140-92-130:# nc -w2 -u 10.140.31.128 5000
root@vm10-140-92-130:
# echo $?
0
root@vm10-140-92-130:~
docker run -d bekt/logspout-logstash -e ROUTE_URIS: logstash://10.140.31.128:5000 -v /var/run/docker.sock:/var/run/docker.sock

root@vm10-140-92-130:~# docker logs 4544785d3fd2

logspout v3.2-dev-custom by gliderlabs

adapters: udp tcp logstash raw

options : persist:/mnt/routes

!! bad adapter:
root@vm10-140-92-130:~#

Port normal, how should I do?

-e ROUTE_URIS: logstash://10.140.31.128:5000/udp ,The same can not 。

Please help me, thank you

from logspout-logstash.

MagicStarTrace avatar MagicStarTrace commented on June 17, 2024

@Bekt Please help me, thank you!

from logspout-logstash.

Bekt avatar Bekt commented on June 17, 2024

Can you post your full docker-compose file? From the snippet above, it looks like you didn't mount the /opt/logstash/sample.conf file in logstash.

from logspout-logstash.

MagicStarTrace avatar MagicStarTrace commented on June 17, 2024

The sample.conf file is in the mirror

from logspout-logstash.

Bekt avatar Bekt commented on June 17, 2024

Can you give me a docker-compose file I can run? Otherwise I have no idea with the given information.

from logspout-logstash.

MagicStarTrace avatar MagicStarTrace commented on June 17, 2024

Customized mirrors.
Mirror problem should not, and now logspout use compose, logspout with logstash use is no problem, it should not be a component of the problem. Now I have multiple logspout need to run in different nodes, can not use compose to run it

from logspout-logstash.

MagicStarTrace avatar MagicStarTrace commented on June 17, 2024

version: '2'
services:
elasticsearch:
image: 10.140.92.130:8050/elkstack/elasticsearch
restart: unless-stopped
ports:
- 9200:9200
kibana:
image: 10.140.92.130:8050/elkstack/kibana:latest
restart: unless-stopped
environment:
- ELASTICSEARCH_URL=http://elasticsearch:9200
ports:
- 5601:5601
logstash:
image: 10.140.92.130:8050/elkstack/logstash-logspout
ports:
- 5000/udp:5000/udp
restart: unless-stopped
command: -f /opt/logstash/sample.conf
redis:
image: redis
restart: unless-stopped

from logspout-logstash.

Bekt avatar Bekt commented on June 17, 2024

Hey @huyifanstar, were you able to figure out?

from logspout-logstash.

Related Issues (7)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.