-
Notifications
You must be signed in to change notification settings - Fork 0
aleks-golubyatnikov/syslog-dev
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Requirements: - Docker Engine (https://docs.docker.com/engine/install/ubuntu/); - Docker Compose (https://docs.docker.com/compose/install/); 1. Docker: #build image cd ./docker-syslog/rsyslog/ && docker build --build-arg PATH_LOGS_INSIDE=/var/log/agentlogs/ -t dev-syslog . #run container docker run --restart always -d --cap-add SYSLOG --privileged -v /var/logs:/var/log -p 514:514 -p 514:514/udp --name rsyslog dev-syslog #send test syslog message logger -n 192.168.0.40 -t dev-app -p user.notice "Testing syslog server - some text..." docker run --log-driver syslog --log-opt syslog-address=tcp://192.168.0.40 alpine echo $(uname -a) #how the message was processed (on host server) ls -la /var/logs/agentlogs/ #running processes docker ps #docker containers list docker containers ls --all #docker image list docker image ls --all #remove container (if nessesary) docker container rm <container_name> #remove image (if nessesary) docker image rm -f <image_name> #view status docker ps -f name=rsyslog 2. Docker Compose: #build docker-compose build --build-arg PATH_LOGS_INSIDE=/var/log/agentlogs/ #run docker-compose up -d #stop docker-compose stop 3. Ansible #install run ./install-syslog.sh (must be rights to execute, ex.: chmod u+x ./install-syslog.sh);
About
Rsyslog server in Docker container
Topics
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published