linuxserver / docker-syslog-ng Goto Github PK
View Code? Open in Web Editor NEWLicense: GNU General Public License v3.0
License: GNU General Public License v3.0
I download container and run it. Container create folders config and log and starts/
But it cant log nothing. In main log I get this:
"Error opening file for writing; filename='/var/log/messages', error='No such file or directory (2)'"
Restarting container not helped to me.
No response
Ubuntu 20.22
- OS: Ubuntu 22.04.4 LTS (GNU/Linux 5.15.0-100-generic x86_64)
- How docker service was installed: Standard docker through apt install. Docker version 26.0.0, build 2ae903e
x86-64
docker run -d \
--name syslog-ng \
--restart=unless-stopped \
-p 514:5514/udp \
-p 601:6601/tcp \
-p 6514:6514/tcp \
-e TZ=Europe/Moscow \
-v /srv/syslog-ng/config:/config \
-v /srv/syslog-ng/log:/var/log \
lscr.io/linuxserver/syslog-ng
[migrations] started
[migrations] no migrations found
usermod: no changes
───────────────────────────────────────
██╗ ███████╗██╗ ██████╗
██║ ██╔════╝██║██╔═══██╗
██║ ███████╗██║██║ ██║
██║ ╚════██║██║██║ ██║
███████╗███████║██║╚██████╔╝
╚══════╝╚══════╝╚═╝ ╚═════╝
Brought to you by linuxserver.io
───────────────────────────────────────
To support LSIO projects visit:
https://www.linuxserver.io/donate/
───────────────────────────────────────
GID/UID
───────────────────────────────────────
User UID: 911
User GID: 911
───────────────────────────────────────
[custom-init] No custom files found, skipping...
[ls.io-init] done.
I have currently deployed the following container in a root-access disabled k8s cluster and encountered the following error log during deployment:
s6-overlay-suexec: warning: unable to gain root privileges (is the suid bit set?)
s6-mkdir: warning: unable to mkdir /run/s6: Permission denied
s6-mkdir: warning: unable to mkdir /run/service: Permission denied
s6-overlay-suexec: fatal: child failed with exit code 111
This is currently preventing me from deploying it and was wondering if a rootless mode would be something that can be introduced to allow its deployment.
Allow rootless mode for the container to be deployed and run in an rootless container orchestration platform
No response
there should be the collected logs in ./log
there is nothing
version: "2.1"
services:
syslog-ng:
image: lscr.io/linuxserver/syslog-ng:latest
container_name: syslog-ng
environment:
- PUID=1000
- PGID=1000
- TZ=Europe/London
volumes:
- ./syslog-ng:/config
- ./log:/var/log
ports:
- 5514:5514/udp
restart: unless-stopped
logger -n 192.168.1.1 -P 5514 asdf
./log
OS: Arch Linux, Raspberry Pi
CPU architecture: x86_64/arm32/arm64
How docker service was installed:
Arch Linux: official repo
Raspberry Pi: get-docker.sh
docker compose attached above
[+] Running 2/2
⠿ Network syslog-ng_default Created 0.2s
⠿ Container syslog-ng Created 1.1s
Attaching to syslog-ng
syslog-ng | [custom-init] No custom services found, skipping...
syslog-ng | s6-rc: info: service s6rc-oneshot-runner: starting
syslog-ng | s6-rc: info: service s6rc-oneshot-runner successfully started
syslog-ng | s6-rc: info: service fix-attrs: starting
syslog-ng | s6-rc: info: service 00-legacy: starting
syslog-ng | s6-rc: info: service 00-legacy successfully started
syslog-ng | s6-rc: info: service fix-attrs successfully started
syslog-ng | s6-rc: info: service legacy-cont-init: starting
syslog-ng | cont-init: info: running /etc/cont-init.d/01-envfile
syslog-ng | cont-init: info: /etc/cont-init.d/01-envfile exited 0
syslog-ng | cont-init: info: running /etc/cont-init.d/01-migrations
syslog-ng | [migrations] started
syslog-ng | [migrations] no migrations found
syslog-ng | cont-init: info: /etc/cont-init.d/01-migrations exited 0
syslog-ng | cont-init: info: running /etc/cont-init.d/10-adduser
syslog-ng |
syslog-ng | -------------------------------------
syslog-ng | _ ()
syslog-ng | | | ___ _ __
syslog-ng | | | / __| | | / \
syslog-ng | | | \__ \ | | | () |
syslog-ng | |_| |___/ |_| \__/
syslog-ng |
syslog-ng |
syslog-ng | Brought to you by linuxserver.io
syslog-ng | -------------------------------------
syslog-ng |
syslog-ng | To support LSIO projects visit:
syslog-ng | https://www.linuxserver.io/donate/
syslog-ng | -------------------------------------
syslog-ng | GID/UID
syslog-ng | -------------------------------------
syslog-ng |
syslog-ng | User uid: 1000
syslog-ng | User gid: 1000
syslog-ng | -------------------------------------
syslog-ng |
syslog-ng | cont-init: info: /etc/cont-init.d/10-adduser exited 0
syslog-ng | cont-init: info: running /etc/cont-init.d/50-config
syslog-ng | cont-init: info: /etc/cont-init.d/50-config exited 0
syslog-ng | cont-init: info: running /etc/cont-init.d/99-custom-files
syslog-ng | [custom-init] No custom files found, skipping...
syslog-ng | cont-init: info: /etc/cont-init.d/99-custom-files exited 0
syslog-ng | s6-rc: info: service legacy-cont-init successfully started
syslog-ng | s6-rc: info: service init-mods: starting
syslog-ng | s6-rc: info: service init-mods successfully started
syslog-ng | s6-rc: info: service init-mods-package-install: starting
syslog-ng | s6-rc: info: service init-mods-package-install successfully started
syslog-ng | s6-rc: info: service init-mods-end: starting
syslog-ng | s6-rc: info: service init-mods-end successfully started
syslog-ng | s6-rc: info: service init-services: starting
syslog-ng | s6-rc: info: service init-services successfully started
syslog-ng | s6-rc: info: service legacy-services: starting
syslog-ng | services-up: info: copying legacy longrun syslog-ng (no readiness notification)
syslog-ng | s6-rc: info: service legacy-services successfully started
syslog-ng | s6-rc: info: service 99-ci-service-check: starting
syslog-ng | [ls.io-init] done.
syslog-ng | s6-rc: info: service 99-ci-service-check successfully started
^CGracefully stopping... (press Ctrl+C again to force)
[+] Running 1/1
⠿ Container syslog-ng Stopped 5.9s
canceled
Hi leaving credentials in ci/cd is not good practice.
I don't known if you do this deliberatly or how far this goes as security risk right now
.
Please look at:
GITHUB_TOKEN=credentials(
GITLAB_TOKEN=credentials(
in your Jenkinsfile.....
Credentials and tokens do not belong in SCM.
Look at:
https://github.com/linuxserver/docker-syslog-ng/blob/main/Jenkinsfile
btw
Thanks for your docker-image it works out of the box!
x86-64
I used default example.
...
On unRAID:
docker run
-d
--name='syslog-ng'
--net='bridge'
-e TZ="Europe/London"
-e HOST_OS="Unraid"
-e HOST_HOSTNAME="ExternalServer"
-e HOST_CONTAINERNAME="syslog-ng"
-e 'PUID'='99'
-e 'PGID'='100'
-e 'UMASK'='022'
-l net.unraid.docker.managed=dockerman
-l net.unraid.docker.icon='https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/syslog-ng-logo.png'
-p '514:5514/udp'
-p '601:6601/tcp'
-p '6514:6514/tcp'
-v '':'/var/log':'rw'
-v '/mnt/user/appdata/syslog-ng':'/config':'rw' 'lscr.io/linuxserver/syslog-ng'
Unable to find image 'lscr.io/linuxserver/syslog-ng:latest' locally
docker: Error response from daemon: Get "https://ghcr.io/v2/": net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers).
See 'docker run --help'.
The command failed.
I expected an install to complete
Unraid 6.11.5, very limited configuration, with FreePBX installed but not running.
Unraid 6.11.5
Syslog package in Community Applications Plugin
x86-64
docker run
-d
--name='syslog-ng'
--net='bridge'
-e TZ="Europe/London"
-e HOST_OS="Unraid"
-e HOST_HOSTNAME="ExternalServer"
-e HOST_CONTAINERNAME="syslog-ng"
-e 'PUID'='99'
-e 'PGID'='100'
-e 'UMASK'='022'
-l net.unraid.docker.managed=dockerman
-l net.unraid.docker.icon='https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/syslog-ng-logo.png'
-p '514:5514/udp'
-p '601:6601/tcp'
-p '6514:6514/tcp'
-v '':'/var/log':'rw'
-v '/mnt/user/appdata/syslog-ng':'/config':'rw' 'lscr.io/linuxserver/syslog-ng'
Unable to find image 'lscr.io/linuxserver/syslog-ng:latest' locally
docker: Error response from daemon: Get "https://ghcr.io/v2/": net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers).
See 'docker run --help'.
The command failed.
Sorry, that is all I can find.
After create a docker-compose file and run it, I get log:
2023-07-24 14:20:03.983945015 [2023-07-24T14:20:03.983913] Error opening file for writing; filename='/var/log/messages', error='No such file or directory (2)'
2023-07-24 14:20:03.984001063 [2023-07-24T14:20:03.983989] Error opening file for writing; filename='/var/log/messages-kv.log', error='No such file or directory (2)'
2023-07-24 14:21:04.040980883 [2023-07-24T14:21:04.040943] Error opening file for writing; filename='/var/log/messages', error='No such file or directory (2)'
2023-07-24 14:21:04.041039840 [2023-07-24T14:21:04.041022] Error opening file for writing; filename='/var/log/messages-kv.log', error='No such file or directory (2)'
2023-07-24 14:22:04.082063882 [2023-07-24T14:22:04.082028] Error opening file for writing; filename='/var/log/messages', error='No such file or directory (2)'
2023-07-24 14:22:04.082123633 [2023-07-24T14:22:04.082107] Error opening file for writing; filename='/var/log/messages-kv.log', error='No such file or directory (2)'
Work properly.
I need to go inside a container and add rights 777 to files /var/log/messages and /var/log/messages-kv.log. After this it's work properly.
- OS:Ubuntu 20.04.6 LTS (Focal Fossa)
- How docker service was installed: in terminal by official guied. (Docker version 24.0.4, build 3713ee1) (docker-compose version 1.25.0, build unknown)
x86-64
version: '2.1'
services:
syslog-ng:
image: lscr.io/linuxserver/syslog-ng:latest
container_name: syslog-ng
environment:
- PUID="1000"
- PGID="1000"
- TZ=Etc/UTC
volumes:
- ~/syslog-ng/config:/config
- ~/syslog-ng/logs:/var/log
ports:
- 514:5514/udp
restart: unless-stopped
[migrations] started
[migrations] no migrations found
───────────────────────────────────────
██╗ ███████╗██╗ ██████╗
██║ ██╔════╝██║██╔═══██╗
██║ ███████╗██║██║ ██║
██║ ╚════██║██║██║ ██║
███████╗███████║██║╚██████╔╝
╚══════╝╚══════╝╚═╝ ╚═════╝
Brought to you by linuxserver.io
───────────────────────────────────────
To support LSIO projects visit:
https://www.linuxserver.io/donate/
───────────────────────────────────────
GID/UID
───────────────────────────────────────
User UID: 1000
User GID: 1000
───────────────────────────────────────
[custom-init] No custom files found, skipping...
[ls.io-init] done.
[migrations] started
[migrations] no migrations found
usermod: no changes
───────────────────────────────────────
██╗ ███████╗██╗ ██████╗
██║ ██╔════╝██║██╔═══██╗
██║ ███████╗██║██║ ██║
██║ ╚════██║██║██║ ██║
███████╗███████║██║╚██████╔╝
╚══════╝╚══════╝╚═╝ ╚═════╝
Brought to you by linuxserver.io
───────────────────────────────────────
To support LSIO projects visit:
https://www.linuxserver.io/donate/
───────────────────────────────────────
GID/UID
───────────────────────────────────────
User UID: 1000
User GID: 1000
───────────────────────────────────────
[custom-init] No custom files found, skipping...
[ls.io-init] done.
With syslog-ng-ctl reload
i should be able to reload the config file.
Instead of reloading the config the container prints out this:
Error connecting control socket, socket='/run/syslog-ng.ctl', error='No such file or directory'
docker exec syslog-ng syslog-ng-ctl reload
or do docker exec -it syslog-ng bash
and run the command inside.OS: Ubuntu 20.04.4 LTS
CPU architecture: x86_64
How docker service was installed: From the docker hub. Version 3.36.1
version: "3"
services:
syslog-ng:
image: linuxserver/syslog-ng:3.36.1
container_name: syslog-ng
environment:
- PUID=0
- PGID=0
- TZ=[REDACTED]
volumes:
- /srv/syslog/config:/config
- /srv/syslog/logs:/var/log
ports:
- 514:5514/udp
- 601:6601/tcp
- 6514:6514/tcp
restart: unless-stopped
networks:
- syslog
deploy:
mode: replicated
replicas: 1
placement:
constraints:
- node.hostname == [REDACTED]
logging:
driver: "json-file"
networks:
syslog:
external: true
Nothing gets printed in the logs, so not relatable.
When using syslog-ng -s -f <filename>
to check the syntax of files the following error is being generated
Error opening plugin module; module='cloud_auth', error='Error relocating /usr/lib/syslog-ng/libcloud_auth.so: _ZTVN10__cxxabiv117__class_type_infoE: symbol not found'
Syntax checking to occur without error
curl -LO https://github.com/splunk/splunk-connect-for-syslog/archive/refs/tags/v3.19.1.tar.gz
gunzip v3.19.1.tar.gz
tar -xf v3.19.1.tar
cd splunk-connect-for-syslog-3.19.1/
syslog-ng -s -f ./package/etc/conf.d/conflib/syslog/app-syslog-vmware_vsphere.conf
- OS: centos7
- How docker service was installed: yum
x86-64
docker container run -itd --rm --name sc4s linuxserver/syslog-ng:latest
docker exec -it sc4s bash
[migrations] started
[migrations] no migrations found
usermod: no changes
───────────────────────────────────────
██╗ ███████╗██╗ ██████╗
██║ ██╔════╝██║██╔═══██╗
██║ ███████╗██║██║ ██║
██║ ╚════██║██║██║ ██║
███████╗███████║██║╚██████╔╝
╚══════╝╚══════╝╚═╝ ╚═════╝
Brought to you by linuxserver.io
───────────────────────────────────────
To support LSIO projects visit:
https://www.linuxserver.io/donate/
───────────────────────────────────────
GID/UID
───────────────────────────────────────
User UID: 911
User GID: 911
───────────────────────────────────────
[custom-init] No custom files found, skipping...
crond[168]: crond (busybox 1.36.1) started, log level 5
[ls.io-init] done.
The ports provided in the docker compose are not mentioned in the default config/syslog-ng.conf
. I dont think without it being configured, it will work.
This port should be configured as source with the correct protocol, similar to how TCP and UDP are configured in there.
I've not got much of an idea of syslog-ng, so perhaps I'm wrong. I can't test this, because I can't get through messages even with basic unsecure TCP. Only UDP works for me.
look at the reference files. This of also CPU overarching.
--------
x86-64
---------
----------
syslog-ng refuse to start or reload config when configuring a SQL destination
syslog-ng accepts SQL destination
- OS: latest (as of 30/12/2022) image on rocky linux 9 (podman)
- How docker service was installed: packaged
x86-64
not pertinent
not pertinent
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.