Closed ashleyconnor closed 9 years ago
Ah figured it out.
The default config you supply doesn't contain any exposed ports (for security I'm guessing) so I replace it with a config that exposes a port.
input {
tcp { port => 3333 type => "json event" codec => json_lines {} }
stdin {
type => "stdin-type"
}
file {
type => "syslog"
path => [ "/var/log/*.log", "/var/log/messages", "/var/log/syslog" ]
}
file {
type => "logstash"
path => [ "/var/log/logstash/logstash.log" ]
start_position => "beginning"
}
}
I can then run:
docker run -d \
-p 9292:9292 \
-p 9200:9200 \
-p 3333:3333 \
-e LOGSTASH_CONFIG_URL="https://gist.githubusercontent.com/ashleyconnor/c7267f5d66a49c2755fa/raw/8dcacbaf05d998861985648af2835f833643b0c4/logstash.conf" \
pblittle/docker-logstash
And now it is accepting logs - although I still have a few issues with my client.
@ashleyconnor, sorry for the delay. I'm glad you figured out the port question. What's going on with this issue:
And now it is accepting logs - although I still have a few issues with my client.
Let me know if I can help.
I've fired up a container using the the command in the readme
Now I'm attempting to get logs to show up on the Kibana web interface using logstash-logger
The problem is, I'm not sure what port to use in order to log to this container. Kibana is running on 9292 and elasticsearch is running on 9200. So which port should I use? I've tried (9292, 9200) which are exposed. Passed in
-p 514:514
to the first command.