Questions tagged [syslog-ng]
Questions specific to the syslog-ng logging solution (https://syslog-ng.org/). Use this tag if your question relates to configuring or using syslog-ng, or if you'd like to know if you can solve a particular logging problem with syslog-ng.
80 questions
0
votes
0
answers
47
views
syslog-ng client is saving a message twice
I have an application sending messages using syslog perl module. syslog-ng client is capturing it by a custom filter that uses program name and writes it to a new file. I can see the log lines added ...
1
vote
1
answer
121
views
SELinux causing issue with syslog-ng
I have a little experience with RHEL 6 from around 2016-2018 timeframe, but not much. When I took a new job in January 2025, I inherited a couple RHEL 8 systems. Those systems are not connected to a ...
0
votes
1
answer
169
views
recommended frequency for syslog-ng's "stats" logging
Yesterday I upgraded a VM (with very limited disk space) from Debian/bookworm to the shiny new Debian/trixie.
One of the changes introduced was setting the frequency of status printout in syslog-ng to ...
0
votes
0
answers
60
views
cisco parser dropping logs
new to syslog-ng but been working on this issue for a few days and have nowhere to go. logs aren't really pointing me anywhere anymore that I can tell. I'm running syslog-ng as a container in an ...
0
votes
1
answer
865
views
How do I change the date/time format in syslog-ng from `mmm [d]d hh:mm:ss` to `yyyy-mm-dd hh:mm:ss`?
I noticed that the default datetime format for logs in /var/log/messages is mmm [d]d hh:mm:ss, for example:
Jan 4 03:46:50 1.2.3.4 ntpclient[6952]: Failed resolving address to hostname pool.ntp.org: ...
0
votes
2
answers
637
views
How do I check which conf file was loaded by syslog-ng when starting?
I am running syslog-ng on debian.
How do I check which conf file was loaded upon startup?
Neither
systemctl status syslog-ng
nor
systemctl show syslog-ng
tell me.
0
votes
0
answers
1k
views
Is rsyslog compatible with syslog-ng?
I am doing a project where the organisation uses syslog-ng for the central remote logging servers and this will surely not change.
The application suite that I am developing on, is using Red Hat ...
0
votes
1
answer
2k
views
Issue with uniqueness of the persist names in syslog-ng
I am new to syslog-ng and was trying to fix the issue of an error which arises due to uniqueness of the persist names in syslog-ng,
I see the below error in my syslog
err Error checking the ...
1
vote
1
answer
2k
views
Buildroot: syslog-ng logs into the "/var/log/messages.1" file instead of "/var/log/messages"
I am building an embedded Linux board with Buildroot (user manual here).
I have syslog-ng running on the board. It's config file is specified in buildroot here: https://github.com/buildroot/buildroot/...
0
votes
1
answer
3k
views
syslog-ng not writing to file
I am new to syslog-ng, and want to test writing to a syslog from an external device. The external device shows that it is "connected" to my syslog on port 516. However, on my CentOS7 host ...
1
vote
1
answer
517
views
syslog-ng does not include severity in its lines
I'm trying to configure syslog-ng in an embedded distro.
I added the syslog-ng package.
I was expecting the /var/log/ files to include their log severity / log level, but it isn't to.
Any way to ...
0
votes
1
answer
364
views
Howto log multiple sftpd server's activity which user's chrooted home is on shared NFS?
I have an Ubuntu server with sftpd running where /var/data/chroot/ is an NFS mount from a remote central NFS server, and each sftpd user's chroot home is /var/data/chroot/<username>/ and every ...
0
votes
0
answers
2k
views
Switched from rsyslog to syslog-ng, but its not starting up
I wanted to switch logging from rsyslog to syslog-ng, but after configuration and startup, it faield to start up.
This is the log file I am getting, but I cant find any clues there what is wrong:
rrr-...
2
votes
1
answer
2k
views
Any way to keep Stunnel from blowing up my logfiles?
I have stunnel v5.44 (Ubuntu 18.04 v3:5.44-1ubuntu3) configured on a client to connect to a server in a screened subnet. The remote host has syslog configured to listen for logfiles over the stunnel ...
0
votes
0
answers
404
views
internal logrotate mechanism in syslog-ng
Does the syslog-ng has its own rotating mechanism?
I am new to auditing and linux and I though I could use logrotate but I noticed that I need to restart the syslog-ng daemon every time when I use it ...
0
votes
0
answers
810
views
Syslog-ng failing, unable to resolve 0.0.0.0
I am rebuilding my Raspberry Pi from scratch and following my docs that I keep with regards to what I install and configure, so that I can quickly get the system rebuilt. In this instance I am using ...
2
votes
1
answer
1k
views
What is `tty10` used for in syslog-ng
syslog-ng has the option to include a config snippet:
@include "`scl-root`/system/tty10.conf"
and many examples on-line include that file; but I can't understand what it's for?
The entire included ...
0
votes
1
answer
202
views
Syslog Ng detecting f5 logs as a directory due to hostname written attached as "local/" or "slot1/"
We have a system in place where we have a bunch of f5 devices sending logs to syslog-ng. We have syslog-ng configured to go to:
/path/to/directory/$HOST.
This is causing a problem because since /...
0
votes
0
answers
264
views
Program not working after setting script in init.d
I have two programs that need to run on start up. I am using init.d scripts because the virtual machine in my system does not have systemctl. With my configuration program_A is working but program_B ...
0
votes
2
answers
2k
views
Is there a way to send logs to a specific directory with syslog-ng?
I would like to send logs of each application to a remote collector with syslog-ng.
If I have Apache, I'd like my Apache logs to be sent to my remote collector in the file /var/log/apache.log.
I ...
0
votes
1
answer
940
views
syslog-ng permissions to read /var/log
In our company, we are planning to use syslog-ng for the Centralized log aggregation. We have logs coming from Network devices and 100's of *nix systems(client) produces log files which sent it to ...
0
votes
1
answer
585
views
syslog-ng modification issue for unix socket
I am having issue researching the right way to go about a problem. The problem is the syslog-ng file in the salt master server at the moment only enforces unix-stream as follows:
source s_sys {
...
10
votes
1
answer
9k
views
How copytruncate actually works?
we would like to understand copytruncate before rotating the file using logrotate with below configuration:
/app/syslog-ng/custom/output/all_devices.log {
size 200M
copytruncate
dateext
...
0
votes
0
answers
454
views
Syslog-NG filtering with tags - RHEL 7.x
In the below list of syslog messages:
# tail -9 /var/log/messages
Oct 9 14:15:39 machine1 puppet-agent[14371]: Finished catalog run in 6.68 seconds
Oct 9 14:45:31 machine1 puppet-agent[12234]: The ...
1
vote
1
answer
1k
views
How can I make syslog-ng to filter for a user name?
I've found a nice feature of the syslog-ng: if I use the logger to log things from the user process, I get the logging user name. Around so:
peterh$ echo test log message|logger
then I get this in /...
1
vote
0
answers
2k
views
Logrotate syslog-NG logging - RHEL 7.x
/usr/sbin/logrotate is used to log rotate syslog-NG logging, as shown below:
[root@machine1 output]# crontab -l
# 00 23 * * * /TSM/bkup 1>/dev/null 2>&1
1 * * * * /usr/sbin/logrotate /app/...
0
votes
1
answer
8k
views
SyslogNG-How to optimise filter and log statements? [closed]
Below is the current configuration for Syslog-NG logging, locally,
source s_network {
udp(
flags(syslog_protocol)
keep_hostname(yes)
...
1
vote
1
answer
2k
views
Deployment of haproxy between devices and Syslog server
Below is the current architecture of Syslog-NG to avoid single point of failure.
Currently devices send same syslog message to two syslog servers listening on UDP port 514. Each server stores the ...
1
vote
1
answer
1k
views
Message forwarding with de-duplication - SyslogNG
Based on the advice from answer that says: Simply adding both servers and always write to both is the easiest one,
we have setup syslog-NG server on two machines that receive same syslog message and ...
0
votes
2
answers
10k
views
syslog-ng won't start because error binding socket with permission denied
I've recently rebooted one of my machines after a long time and a now I'm having a lot of problems with configuration changes.
syslog-ng service is not working anymore with the following error from ...
0
votes
1
answer
626
views
Forwarding messages with certain filter
Scenario is to receive all incoming messages and store all of those messages in /app/syslog-ng/custom/output/all_devices.log, but forward only certain messages(by filtering).
filter tag is used to ...
1
vote
1
answer
288
views
Changing group ownership of files - User management
Installed an application as root owner but not as non-root. why? Because we had to install this application in custom location(/app)
So, after installing an application(Syslog-NG), below are the ...
1
vote
1
answer
908
views
syslog-ng configure on RHEL 7 fails with OpenSSL version 0.9.8 dependency
Building latest syslog-ng (3.17.2, rather than the packaged version in EPEL, which is 3.5.6, built 30-Dec-2015) from https://github.com/balabit/syslog-ng/releases
Amidst ./configure --prefix=/app/...
0
votes
1
answer
708
views
Syslog-ng loggen
Here's the situation:
I have syslog-ng version 3.15. I've noticed that when using TLS and non-TLS transmission, the logs are different.
I have noticed that, when sending logs using the loggen -i (...
0
votes
1
answer
714
views
Syslog-ng TLS error
I have an issue when trying to forward logs from a CentOS 7
[root@localhost ~]# hostnamectl
Static hostname: localhost.localdomain
Icon name: computer-vm
Chassis: vm
...
0
votes
1
answer
3k
views
Forwarding syslog-ng logs over TLS
This is the scenario: I have a server that's listening on port 6514 on TCP for logs. I created the .key .crt files on the server as described here: https://www.logzilla.net/2014/10/17/configuring-tls-...
0
votes
2
answers
1k
views
syslog message format & syslog-ng
Case 1:
For the below incoming message of syslog,
<14>Mar 22 11:12:06 RT_FLOW: RT_FLOW_SESSION_CREATE: session created 1.2.3.4/62963->23.58.169.35/443 0x0 junos-https 6.7.8.9/32359->23.58....
2
votes
0
answers
464
views
syslog-ng make error - final link failed: Nonrepresentable section on out
I am trying to install syslog-ng-3.13.2 from source code on embedded linux. I executed ./configure --with-ivykis=system successfully. After that, on executing make, I get the following error:
/usr/...
0
votes
1
answer
538
views
syslog-ng make error - iv.h: No such file or directory
I am trying to install syslog-ng-3.13.2 from source code on embedded linux. The ./configure command worked without any error. When I do make, I get the following error:
In file included from /source/...
1
vote
1
answer
1k
views
syslog-ng startup failure when using /proc/kmsg [duplicate]
I have recently been updating syslog-ng from 3.7.3 to 3.13.2. After the upgrade, the daemon fails to start with this error message:
[2017-12-23T20:42:40.635915] Error checking the uniqueness of the ...
2
votes
1
answer
2k
views
Cannot start syslog-ng when apparmor is running
I am unable to start syslog-ng when apparmor is running because it complains it is unable to find the system plugin:
service apparmor start
* Starting AppArmor ...
* Loading AppArmor profiles ......
1
vote
1
answer
127
views
syslog-ng equivilent of pri-test of rsyslog
I have systems running syslog and rsyslog across my environment and I would like to have similar outputs.
I have created a template in rsyslog that looks like the following:
$template ...
2
votes
1
answer
4k
views
syslog-ng network() destination doesn't like transport("tcp")
I have installed syslog-ng v3.5.6 to the Debian GNU/Linux 8.7 (jessie):
# syslog-ng --version
syslog-ng 3.5.6
Installer-Version: 3.5.6
Revision: 3.5.6-2+b1 [@416d315] (Debian/unstable)
Compile-Date: ...
0
votes
0
answers
1k
views
Problem to send radius authentication logs to remote host
I have installed freeradius server on FreeBSD,it sends authentication logs to syslog's local1
#
# Which syslog facility to use, if ${destination} == "syslog"
#
# The exact values permitted here are ...
0
votes
0
answers
552
views
Syslog overwrite-if-older doesn't seem to work for rotating every minute
The docs for syslog 3.1.1 show an option on the file destination that I'd like to use to create logs that overwrite themselves daily, hourly or minutely (that would be a small log).
destination ...
0
votes
1
answer
2k
views
Undefined symbol: SSL_library_init with Syslog-ng
I have OpenSSL installed from source and linked the GLIB_LIBS and GLIB_CFLAGS to the correct directories during configure and configured with-SSL
When I try to start syslog-ng (Version 3.6.4) on ...
0
votes
1
answer
487
views
syslog-ng balabit client keeps opened deleted journal log files
OS: CentOs 7
syslog-ng -V:
syslog-ng-premium-edition 5 F6 (5.6.1b)
Installer-Version: 5.6.1b
Real problem:
syslog-ng keeps in open state deleted journal log files:
syslog-ng 15305 30257 ...
0
votes
1
answer
248
views
Don't read specified file source in syslog-ng?
I find at versions syslog-ng-3.5 and syslog-ng-3.6 ,the syslog-ng will by default read from /dev/kmsg even if when I don't use
file ("/proc/kmsg" program_override("kernel: "));
in source{ },
when I ...
1
vote
0
answers
3k
views
syslog-ng syslog connection broken on udp
We have following remote logging configuration:
destination d_jenkins { network("x.x.x.x" transport("udp") port(514) template(t_jenkins)); };
log { source(s_system); destination(d_jenkins); };
This ...
0
votes
1
answer
2k
views
Is there a way to rewrite parts of a message globally instead of inserting rewrite on all log paths?
I need to escape \n from the message. I can do this with "rewrite" but the problem is I have many log paths and I do not want to specify "rewrite" on all log paths. Is there a global way of setting a ...