Questions tagged [syslog]

syslog is a standard (RFC 5424) for message logging. Use this tag for syslog logging related messages. For generic logging messages use [logging] instead

Filter by
Sorted by
Tagged with
10
votes
1answer
14k views

Suppress duplicate messages in rsyslog?

Is there a way to configure rsyslog to suppress identical duplicate messages? In certain situations (often hardware failures) my syslog can grow to 100 MB or more due to repeated messages every ...
4
votes
1answer
2k views

Does a process invoking oom-killer kill itself?

Looking through syslog, I see lines like dd invoked oom-killer. Does this mean dd is being killed by the oom-killer or does it mean dd asked oom-killer to go kill another high memory process?
27
votes
2answers
32k views

add new syslog facility

I would like to use syslog to log messages coming from my PHP based site. My question is - can I add custom facility name? I know there are predefined facilities like: auth, authpriv, cron, dæmon, ...
3
votes
1answer
258 views

Is there a way to determine what services use a specific syslog facility on RHEL?

I am currently logging all haproxy information to local0 and loca1 facilities (depending on message level). At the moment, logging gets properly routed to the haproxy logs 'err.log' and 'general.log',...
3
votes
1answer
2k views

Using syslog from a kernel module

I am writing a linux kernel module to report statistics and send some log messages. Can I use syslog to accomplish this job? Or is printk the only way?
8
votes
5answers
6k views

Switch off syslog on laptop?

Is there any point in keeping logs on my laptop? This is not a server to debug problems via syslog. I occassionally want to look at dmesg | tail but that does not mean I need anything on disk. Wastes ...
5
votes
1answer
842 views

rsyslog rule inconsistently applied

I have created a rule to redirect messages containing {FILTER} in file /etc/rsyslog.d/40-filter.conf :msg,contains,"{FILTER}" /var/log/filter.log & ~ I have edited file /etc/rsyslog.conf so it ...
4
votes
4answers
2k views

Parsing log files

I am trying to develop a system statistics tool for Ubuntu that will store data about resource utilization of processes/users. I am storing these data in my own log files like /var/log/<process>....
22
votes
4answers
47k views

make a log file

Is there any way to make a log file for maintaining some data in /var/log/ with the help of some library function or system call in c language in linux. And I also want to know the standards that we ...
4
votes
3answers
3k views

rsyslog is not discarding message as it should

I have set up rsyslog to write messages from local0.* to a separate logfile, and then discard the messages. For some reason, the logs are going to both /var/log/syslog, and the new logfile. I have ...
4
votes
1answer
8k views

Converting syslog-ng 3.0? format to 3.2 format

Just rebooted my system to this warning :: Starting Syslog-NG [BUSY] WARNING: Configuration file format is too old, please update ...
2
votes
1answer
254 views

Bash script and Database

I have an iptables firewall in Linux bridge (RHEL5). I want to extract information like IP address, port number, port type, date and time, etc. from log messages using a Bash script, and then want to ...