Questions tagged [rsyslog]
Questions regarding rsyslog, a multi-threaded system and kernel logging daemon.
131
questions
1
vote
0
answers
82
views
rsyslogd: action 'action-3-builtin:omfwd' suspended
I want to send MongoDB logs to a Graylog server, and the related rsyslog configuration is as follows:
$InputFileName /var/log/mongodb/mongod_27017.log
$InputFileTag mongodb
$InputFileStateFile mongodb-...
0
votes
0
answers
17
views
UBUNTU SSH tunnel not working with Rsyslog
I want to send Rsyslog request through ssh tunnel.
client(C) <----------------------> server(S)
On the client side I run this: ssh -L 2222:localhost:514 user@S
When I check (netstat -tulpn) the ...
0
votes
0
answers
64
views
rsyslog read log files and send to rsyslog file and rsyslogserver
Hi I need to send logs to rsyslog server in particular I need to send airflow logs and docker logs.
I am using rsyslog v8.2204.1 on Ubuntu 20.04.4 LTS.
For docker I installed the module: rsyslog-...
0
votes
1
answer
268
views
How to disable logging to /var/log/syslog and use only systemd logs
My last question What are the options to manage the size of /var/log/syslog of an embedded system was not answered so I am asking this question to see if it is possible to stop using /var/log/syslog ...
0
votes
0
answers
52
views
RSyslog CPU usage > 100%
We currently have RSyslog Server (On Linux Ubuntu 18.04 VM LTA with Size: Standard D4s v3 4 vcpus, 16 GiB memory) receiving logs from ZScaler Proxy & FortiGate Firewalls and ingesting them into ...
1
vote
0
answers
86
views
Change `sshd` log file with `rsyslog`
I want to change the location of sshd logging to an external volume in order to prevent filling up the boot volume. What I thought would work – create /etc/rsyslog.d/sshd.conf with a directive to use ...
1
vote
0
answers
73
views
Logrotate syslog and mysql error
OS version: 20.04
When trying to manually logrotate, there are errors rotating syslog and mysql.
~$ sudo logrotate -f /etc/logrotate.conf
error: rsyslog:4 unknown unit 'e'
error: found error in /var/...
0
votes
0
answers
305
views
How do I prevent broadcast messages to console for specific application?
I am running NUT UPS Tools server on Ubuntu 20.04.3 LTS system. I have to resart the NUT driver every 15 minutes, and each time it restarts the upsmon application broadcasts a message to the console:
...
0
votes
0
answers
19
views
Can I use an alterative port for syslog if 514 is already taken?
I'm looking to send our Load Balancer's logs to a syslog server. We already have an existing Ubuntu 20.04 syslog server and would like to use this rather than request to stand up a new server. However,...
0
votes
0
answers
106
views
How to configure syslog server to send collected syslogs to another linux server
I have an existing syslog server which is an Ubuntu 20.04 (192.168.1.124). It is ingesting logs from my syslog client which is a Centos7 (192.168.1.96).
Displayed below is the current flow:
Centos7 (...
0
votes
0
answers
314
views
Ubuntu Send Logs to Syslog Server Port Problem
I have a problem. I configured /etc/rsyslog.conf file to our syslog server. But Ubuntu server send logs to TCP 514 port therefor our syslog server cannot take this logs.
Our config;
# /etc/rsyslog....
4
votes
0
answers
198
views
Syslog full of spam, slowing down PC
I recently upgraded my Desktop and Laptop to Ubuntu 21.04 and my logs are completely filled with message from gnome-shell, kernel and other programs.
I have appropriate filers in /etc/rsyslog.d/30-...
0
votes
0
answers
75
views
syslog errors and apache2
This is a follow-on to this question...
So I can change the ownership of the log file, and the errors stop. I changed the ownership from root:adm to syslog:adm and the errors cease. But when the ...
0
votes
1
answer
101
views
How do I squelch specific messages from being logged in syslog?
I'm troubleshooting a problem of system hangs and want to know what's being logged just before the system freeze occurs. This effort is being hampered because my VPN provider (PIA) is logging gobs of ...
1
vote
0
answers
626
views
Setting a size limit for current syslog
Based on other threads, the only way to set a size limit on current syslog (/var/log/syslog) seems to be via rsyslog which is a bit tricky. I ended up replacing the line below in /etc/rsyslog.d/50-...
0
votes
0
answers
410
views
Massive problems with dpkg and apt-get upgrade
After several attempts to update, upgrade, reconfigure dpkg things and clean or install -f, I am quite desperate, since error messages persist, and I cannot quite find a solution. But let's focus on ...
1
vote
1
answer
1k
views
/var/log/syslog not getting rotated
I have a fresh install of ubuntu 20.04. I have set daily rotation in /etc/logrotate.d/rsyslog file with a maxsize of 1M but the /var/log/syslog and kern.log file keeps increasing. Here is the rsyslog ...
0
votes
0
answers
108
views
In which file of the Linux registry (/var/log) is access to /etc/shadow stored?
I tried to cat, using a non-root user, the /etc/shadow file. Access has been denied due to lack of permissions, but here's the thing:
In which file in the Linux registry (/var/log) is this attempt to ...
0
votes
0
answers
187
views
How to rotate a log file in ubuntu 18.04
I am using metabase on a digital ocean droplet with ubuntu 18.04. I followed metabase documentation for debian, but the problem is that after a while, I ended up with a 11GB log file in /var/logs/...
0
votes
1
answer
373
views
Why syslog.1 growing?
I see that only syslog.1 is growing in size (Gbs). and rest of the logrotation process is working as usual. I do see compressed syslog2.gz, syslog.3.gz, etc.
Why only SYSLOG.1 is growing? Please help
#...
0
votes
1
answer
1k
views
how to change the log level to ERROR for systemd-resolved
I am using ubuntu 20.04, I configured rsyslog to send/forward logs to a remote syslog-ng but I am getting to many WARNING message like this:
Server returned error NXDOMAIN, mitigating potential DNS ...
0
votes
0
answers
142
views
Howto block wifi-messages flooding syslog?
I'm Martin.
I am using Ubuntu "Xenial".
lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.7 LTS
Release: 16.04
Codename: xenial
For Wifi ...
1
vote
0
answers
2k
views
How to enable /var/log/debug in Ubuntu 20.04?
The question is: How to enable debug logging that will be written to /var/log/debug?
There is a piece of configuration related to debug in /etc/rsyslog.d/50-default.conf:
#
# Some "catch-all"...
1
vote
0
answers
65
views
traps being sent to rsyslog not in local2 where is conf to set this
We have APC gear sending traps to Ubuntu 18.04. trapd is forwarding these to rsyslog AOK (in same host). But unlike Cisco syslogs (from remote Cisco gear) no usable "Facility" is written ...
7
votes
1
answer
2k
views
What does the minus sign at the beginning of a log file directory mean?
I just started to learn linux with Ubuntu 18.04. When I was reading the config file for rsyslog: /etc/rsyslog.d/50-default.conf , I found that some of the log file directories are having minus signs ...
1
vote
1
answer
622
views
Kern.log and Syslog Growing Uncontrollably (with details)
Similar to other questions about uncontrollable bloat in kern.log and syslog, but in my case I can’t figure out what in the kernel is causing it because I don’t recognize the process and my google ...
1
vote
1
answer
1k
views
rsyslog stopped creating pid file after upgrade from 18.04 to 20.04
After upgrading from 18.04 LTS to 20.04 LTS rsyslog stopped writing its PID into /(var/)run/rsyslogd.pid file.
3
votes
1
answer
3k
views
Moving log location for Tomcat 9 on Ubuntu 18.04
On a fresh instance in AWS of Ubuntu 18.04, I have installed tomcat9 through apt. I'm replacing a 14.04 Ubuntu install where i was running tomcat7. Due to the nature of my application, I have a very ...
1
vote
1
answer
2k
views
rsyslog errors flooding log
Ubuntu 18.04LTS server, My log is suddenly flooded with rsyslog errors:
Jan 5 19:17:01 servername rsyslogd: action 'action 13' resumed (module 'builtin:omfile') [v8.32.0 try http://www.rsyslog.com/e/...
1
vote
0
answers
893
views
rsyslog suspending while creating directories and files
I'm using Ubuntu 18.04.3 LTS (Bionic Beaver) for details click here.
rsyslog version used rsyslogd 8.2001.0.aeabf0e9703b for details click here.
/etc/rsyslog.conf file click here.
I copied the ...
6
votes
1
answer
5k
views
Where do log messages go with journald and rsyslog
On Ubuntu 18.04 both journald and rsyslog are installed. Both serve the same purpose of collecting log messages and storing them. So we have two programs doing the same work here.
What I could find ...
2
votes
0
answers
593
views
Logrotate not doing his job, hdd full because of logs
I have a small microSD ( 3GB ) on a ARM Samsung Artik, with Ubuntu installed.
I have installed syslog-ng and Logrotate to manage my logs, because otherwise my memory get filled quickly.
My problem ...
0
votes
1
answer
2k
views
Should I reboot after set new timezone using timedatectl
I am on a 1604 system with timezone A, after I set the timezone to B using timedatectl set-timezone B, everything work fine.('timedatectl status' is B, 'date' command showing the right time, file time ...
6
votes
2
answers
2k
views
Rewriting logs received via syslog from another machine
I have Machine A, which is a pfsense installation, that sends logs via syslog to a Ubuntu box. The Ubuntu Box will have to rewrite the logs, to replace for instance host names and change format a bit. ...
0
votes
0
answers
3k
views
Unable to restart rsyslog service using "sudo systemctl restart rsyslogd"
I am not able to restart rsyslog service using systemctl:
sudo systemctl restart rsyslogd.
I keep getting the time out error message.
0
votes
1
answer
722
views
How we can monitor the network traffic of logs transferred through the rsyslog
I'm consolidating the client logs to a centralized server in Ubuntu using the rsyslog deamon. While consolidating the logs, how can i see the amount of network traffic or file size transferred from ...
5
votes
1
answer
6k
views
How to set size for system log
My server dumps because of huge system log files. I've heard that we could limit the size of system log by adding such a line size 100m into the file /etc/logrotate.d/rsyslog to do so.
Now my /etc/...
0
votes
0
answers
336
views
GPSD logs on ubuntu (syslog)
I am debugging gpsd in ubuntu. gpsd uses syslog. However I don't know where the log is getting stored. Any clues please?
4
votes
3
answers
11k
views
rsyslog template date/time format with seconds
My current template configuration of rsyslog looks like this:
/etc/rsyslog.d/00-samba-audit.conf
template(name="sambalog" type="string"
string="%$year%-%$month%-%$day% %$hour%:%$minute% %HOSTNAME% %...
7
votes
1
answer
19k
views
Every few minutes rsyslog outputs - rsyslogd: action 'action 3' resumed (module 'builtin:omfile') [v8.32.0 try http://www.rsyslog.com/e/2359 ]
Since my update to 18.04.1 last week from 16.04.5 I've been seeing this in my syslog every few minutes:
Aug 19 19:22:02 localhost rsyslogd: action 'action 3' resumed (module 'builtin:omfile') [v8.32....
0
votes
0
answers
79
views
rsyslog big data 44 terabytes of storage yearly on ubuntu 18.04
I have tried rsyslog Remote for Mikrotik user log tcp and udp
Everything was working very well
But there are some problems that I need to attend
If the size of the log is up to 120 GB daily, I need ...
0
votes
1
answer
391
views
User creation remote logging
I am trying to centralize logs from different server to one server.
I can centralize logging information via adding auth.* @server_ip:port in /etc/rsyslog.conf from the clients, but now I don't ...
0
votes
1
answer
560
views
Rsyslog rate-limiting ubuntu 16.04
I'm testing rsyslog 8.16 on Ubuntu 16.04, and I have this message on my suyslog file
rsyslogd[internal_messages]: 39340 messages lost due to rate-limiting
This is my configuration on /etc/resolv....
0
votes
2
answers
3k
views
How to stop Dovecot from logging to syslog
I'm running Ubuntu 16.04 with the packaged Dovecot for imap and Roundcube for its web interface. Everything's working dandy except I can't get Dovecot to stop logging imap logins and imap logouts to ...
1
vote
1
answer
5k
views
Cannot separate DHCPD logs for syslog
I'm trying to separate DHCPD log from syslog file in Ubuntu 16.4 LTS.
In my dhcpd.conf file I have added:
log-facility local7;
And in rsyslog.conf file:
#Logging for DHCP service
local7 /var/log/...
2
votes
1
answer
1k
views
Systemd service script not logging during shutdown
Background
NetworkManager doesn't run dispatcher.d/pre-down.d scripts, so I have created a systemd-service script. It is working well during startup and shutdown, but during shutdown it doesn't write ...
2
votes
1
answer
1k
views
Setup an extra, non-root syslog server as a systemd service
I want to create a systemd service, which would start an extra instance of syslog (I assume rsyslogd, as this seems to be what's installed on my Xenial?). I want it to listen on specified socket (...
0
votes
0
answers
580
views
Nginx logging per site to syslog
I'm currently logging each site in nginx using its own access and error log configuration:
access_log syslog:server=localhost,tag=nginx_access_internet,severity=info;
error_log syslog:...
0
votes
1
answer
556
views
how to configure rsyslog to receive log from specic IP addresses?
I want to configure rsyslog on a server so that receive logs from specific IP addresses and drop the others.is it possible?
1
vote
0
answers
2k
views
rsyslog: log message from remote host to specific file
I am trying to log messages from a specific remote host to a separate log file (and only to that file). I tried this:
# cat /etc/rsyslog.d/avs110door.conf
if $fromhost == 'avs110' then /var/log/...