Logstash Component for the ELK Pipeline
1.0K
Portainer: .. belowThis is an example logstash container configured to read the files in /var/log. It expects elasticsearch to be running at http://elastic.dmss:9200.
9200 -> container 9200If you don't want to use the default configuration file, you can map a custom one to
/usr/share/elasticsearch/config/logstash.yml
and
/usr/share/elasticsearch/pipeline/logstash.conf
read documentation on elastic searches website to learn how to configure each file
/var/log on the host should be mapped to /var/log in the container
{bash} docker pull portainer/portainer /tmp... It is advisable to change the mapping to something of your choosing
{bash} docker run -d -p 9000:9000 -v /var/run/docker.sock:/var/run/docker.sock -v /tmp:/data portainer/portainer ImagesPull Image section enter fuzzybunny/elastic:latest in the name fieldPull and note the spinning gear as the image is downloadedImages section on the bottom half of the screenContainers+ Add container buttonname field, enter a suitable nameImage field( this can be obtained throught Images menu )Always pull the image optionPort Mapping: +map additional port to map ports to match the configuration section towards the top of this pageAdvanced Container Settings section to finish configuring to match configuration section towards the top of this pageStart container in the middle of the pageContainer menuContent type
Image
Digest
Size
239.5 MB
Last updated
over 9 years ago
docker pull fuzzybunny/logstash