Questions tagged [rsyslog]

Questions regarding rsyslog, a multi-threaded system and kernel logging daemon.

Filter by
Sorted by
Tagged with
0 votes
0 answers
18 views

Using logrotate with rsyslog for rotation of logs based on fixed size

Due to specific requirements, there is a need to constrict syslog to a particular size (512 MB) and also to move the syslog and kern.log to a separate custom location. Current Syslog configuration - $...
shaggy's user avatar
  • 35
0 votes
0 answers
24 views

Auditd to capture user runing command

I have a audit watch/rule that logs every command executed, but it dose not mention/logs which user executed the command! Do we have any workaround for that?
Syed Aqeel's user avatar
0 votes
0 answers
16 views

sending linux log to sunos Syslog file

I would like to write a C program that can send a Log details from Linux to a remote SunoS server. The logs would add in the syslog file at the server side. I have tried some methods such as send() , ...
Sarath Govind's user avatar
0 votes
1 answer
55 views

rsyslog - how to install rsyslog-imdocker module?

How to install rsyslog-imdocker module for ubuntu 22.04? Tried different things but still with no luck :( Besides tried to search for the same package on Centos 8 Stream and still the same results, ...
Marat Gainutdinov's user avatar
1 vote
1 answer
234 views

Why does UFW keep logging to syslog even when I turn it off through rsyslog settings?

I've uncommented & stop in /etc/rsyslog.d/20-ufw.conf. I've set StandardOutput=null by using systemctl edit ufw which shouldnt help anyway because the syslog messages are sent by a "kernel&...
Jonatan Pipping's user avatar
1 vote
0 answers
71 views

Why would a user created systemd service stop forwarding to syslog?

TLDR: I have a centralized syslog server that suddenly stopped receiving syslog message from applications servers. Messages only resumed when I restarted each individual service running on every app ...
edmz's user avatar
  • 123
0 votes
0 answers
27 views

rsyslog has to be rebooted every 5 to 10 min of processing message

I working with ubuntu 20.04 and when I installed rsyslog after about 15min it stops processing messages to the syslog file and have to run systemctl restart rsyslog so is something misconfigured?
mchonlahan's user avatar
0 votes
0 answers
244 views

xconsole causing rsyslog to fail startup

I am trying to verify that a cronjob ran on WSL2. Sources have told me to check /var/log/syslog. When I navigated there, syslog did not exist. Sources then told me to run service rsyslog start to ...
Steven DeVerteuil's user avatar
0 votes
0 answers
66 views

Forwarding historic (old) syslog to syslog server

We can forward syslogs to syslog server by making the below entry in syslog.conf/rsyslog.conf *.*<space/tab>@<syslog_server_name>:<port_no> However, this only sends new syslogs, ...
Allan's user avatar
  • 1
1 vote
0 answers
951 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-...
Fatemeh Davoudi's user avatar
1 vote
1 answer
5k 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 ...
Aminos's user avatar
  • 133
1 vote
0 answers
481 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 ...
Gary's user avatar
  • 11
1 vote
0 answers
639 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 ...
Pete Cooper's user avatar
1 vote
0 answers
471 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/...
TurboSlayer's user avatar
0 votes
0 answers
1k 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: ...
SomebodySysop's user avatar
0 votes
0 answers
66 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,...
Nina G's user avatar
  • 101
4 votes
0 answers
382 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-...
Gothicawakening's user avatar
0 votes
0 answers
108 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 ...
alabamatoy's user avatar
0 votes
1 answer
135 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 ...
jones0610's user avatar
  • 1,801
2 votes
2 answers
2k 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-...
Nerssi's user avatar
  • 21
0 votes
0 answers
728 views

Massive problems with dpkg and apt-get upgrade [duplicate]

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 ...
cwellm's user avatar
  • 1
1 vote
1 answer
3k 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 ...
AjayC's user avatar
  • 400
0 votes
0 answers
201 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 ...
john smith's user avatar
0 votes
0 answers
311 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/...
grimdbx's user avatar
  • 11
0 votes
1 answer
1k 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 #...
Sreekanth D's user avatar
0 votes
2 answers
2k 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 ...
nbari's user avatar
  • 186
0 votes
0 answers
163 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 ...
Martin's user avatar
  • 121
2 votes
0 answers
2k views

How to enable /var/log/debug in Ubuntu 20.04?

How to enable debug logging that will be written to in /var/log/debug? There is a piece of configuration related to debug in /etc/rsyslog.d/50-default.conf: # # Some "catch-all" log files. # ...
metal4people's user avatar
1 vote
0 answers
113 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 ...
Alex Wohl's user avatar
11 votes
1 answer
3k 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 ...
Chaozy's user avatar
  • 121
1 vote
1 answer
879 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 ...
allsilent's user avatar
1 vote
1 answer
2k 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.
Rychu's user avatar
  • 473
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 ...
eric's user avatar
  • 161
1 vote
1 answer
3k 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/...
alabamatoy's user avatar
1 vote
0 answers
1k 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 ...
Hrish's user avatar
  • 2,323
11 votes
1 answer
7k 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 ...
ygoe's user avatar
  • 948
2 votes
0 answers
641 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 ...
Juliatzin del Toro's user avatar
0 votes
2 answers
4k 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 ...
Michael Ouyang's user avatar
6 votes
2 answers
3k 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. ...
vidarlo's user avatar
  • 22.1k
0 votes
0 answers
4k 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.
Ogheneruona Oromuno's user avatar
0 votes
1 answer
907 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 ...
Jasir Bin Siddique's user avatar
5 votes
1 answer
9k 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/...
Yves's user avatar
  • 1,248
0 votes
0 answers
433 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?
Aadishri's user avatar
  • 196
4 votes
3 answers
14k 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% %...
tenjohn's user avatar
  • 361
8 votes
1 answer
23k 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....
Chris Pollock's user avatar
0 votes
0 answers
90 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 ...
TIK's user avatar
  • 11
0 votes
1 answer
627 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 ...
eli0T's user avatar
  • 3
0 votes
1 answer
717 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....
Hervin's user avatar
  • 1
2 votes
3 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 ...
Forkbeard's user avatar
  • 2,413
1 vote
1 answer
6k 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/...
Henry's user avatar
  • 11