Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. Listen now

Questions tagged [logs]

Configuring or analysing log files (text files where programs output error and informational messages, useful for debugging and troubleshooting).

344 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
1
vote
0answers
39 views

Per-user total traffic counter

How can I get a per-user traffic counter? (I'm not looking for real-time monitoring such as nethogs) ifconfig displays a traffic counter for all users: UserIPacct isn't maintained anymore.
1
vote
0answers
508 views

Exim: Log sent/received emails headers

I've a fully working mail server running on Exim over Debian. Recently I was asked if it was possible to get a monthly log of the headers of all email sent and received. By headers I mean email ...
1
vote
0answers
78 views

Variables in history?

Is it possible to include environment variables in the history output. Something along the lines of: %T %F $SUDO_USER $HISTORY_COMMAND 1 2015-01-01 00:00:00 USER123 echo 123 Reason being we have a ...
1
vote
0answers
46 views

Syslog config syntax

I have setup a syslog server to test it out and its working perfectly fine. I want to understand what this syntax is actually doing in the rsyslog.conf file of the server that I added as guided by ...
1
vote
0answers
792 views

error in count script for number of occurences

I have written a small script to count number of occurrences of logs in a particular file. The following is my code: #!/bin/sh count=1 while read line do found=$( grep M $line ) OCCURENCE=$( ...
1
vote
1answer
601 views

rsyslog use different templates to store logs

I am using rsyslog to handle the logs that my program creates. I have used a template to customize the logs format. My doubts are: If I create a template, every program that use that rsyslog.conf ...
1
vote
0answers
468 views

WebDAV + davfs — error copying large files

I am using Apache on server, with WebDAV. On client Linux, I have davfs2 mounted folder. When I try to access small file, everything works fine. When I try to access image file size of 2Gb, I am ...
1
vote
0answers
87 views

Suppress Rsyslog to terminal

When I use Rsyslog (in bash using logger and in Node using winston-syslog), all log levels are also shown on the terminal window. I only want to log these events, and silent the output unless they ...
1
vote
0answers
1k views

VSFTP user login & activity monitoring

We have a linux box that is configured with vsftp for our ftp sessions. Unfortunately, for the last few days, we've found that files served by vsftpd have been lost (deleted). I would like to know: ...
1
vote
0answers
124 views

Last reboot shown few rows at the same time?

I had got this from my server logs. I wonder what does it mean by that? ("Last reboot", The repetition of the same day and time) reboot system boot 3.13.0-35-generi Fri Jul 10 17:15 - 12:06 (18:...
1
vote
1answer
456 views

Is there a way to have logcheck send a daily digest as well as the hourly mails?

I'm looking for a way to get logcheck to send the hourly notifications but also send me daily digest at the end of the day. Is there a way to achieve that at all? It'd be fine to invoke logcheck ...
1
vote
0answers
213 views

PHP version info missing from Apache log on startup

I am building a LAMP server (CentOS 6.6), using a current server at work as a roadmap (CentOS 6.4). After installing PHP 5.5.24 and a lot of other modules (mod_nss, mod_perl, etc), everything seems ...
1
vote
0answers
582 views

Correct/Efficient/Reliable way to import log file entries to a MySQL database?

I'd like to be able to query our server access log files to identify abuse patterns. Log files really aren't very queryable, and it would be fairly easy to do what I wanted if each hit was a row in a ...
1
vote
0answers
44 views

Is there a version of the BSD print system's `pac` command in the SVR4 print system

I was reading an old UNIX manual and one of the chapters was on UNIX printing systems. I am used to the BSD system(lpr/lpd) system, and found the pac command kind of cool. If you do not know what pac ...
1
vote
0answers
122 views

How to view document name of a print job

How do I view the document name of a print job? The closest I've come to the answer is with this command... lpstat -W completed ...which displays several results with a timestamp, but no document ...
1
vote
1answer
132 views

What can cause auth.log to start over again?

In my Raspberry Pi running Debian, I have a simple script to output the IPs which have successfully logged into the system via SSH. It's like this: #!/bin/bash egrep 'Accepted password|Accepted ...
1
vote
1answer
43 views

Is there any dynamically produced .log file showing up the memory usage on FreeBSD?

I am using FreeBSD 10.1-RELEASE and I was just wondering if there is any .log file produced by default from the system because I am using ELK and I want to pass this file to logstash and then ...
1
vote
0answers
393 views

How do you tweak iptables limit rules on openSUSE Tumbleweed?

I have a fresh install of openSUSE Tumbleweed, it is logging a lot firewall related stuff due to my apple devices multicasting to enable airplay. Lines look like: Mar 14 12:45:13 server kernel: SFW2-...
1
vote
0answers
157 views

Make opensuse 13.2 accept remote logging?

My question is how can one make opensuse 13.2 accept remote logging? Since it uses systemd-journal, which conflicts an installation attempt of syslog or rsyslog? Many thanks!
1
vote
1answer
566 views

Retrieve Print history

i am trying to retrieve print history for feb 16th when i go into http://localhost:631 and cups/jobs I can see the print jobs but there is no option to reprint?
1
vote
1answer
526 views

catch kernel panic log

My Mint Cinnamon system on Lenovo g565 keeps hanging every several hours. I think the problem may be somehow connected with network and desktop environment, because either plugging ethernet cable (...
1
vote
0answers
97 views

How do I stop recurring error messages from appearing in messages and auditd.log?

On my CentOS linux machine, in my auditd.conf file, I have set my max_log_file_action=keep_logs. However, in my /var/log/messages and /var/log/auditd.log, the following message appears multiple times ...
1
vote
0answers
876 views

How can I log outgoing TCP traffic including the full path of URLs?

I use a program regularly on Linux that makes a TCP request when it starts up and updates a file with an access token before launching. I'd like to write a batch script that makes this request (using ...
1
vote
0answers
5k views

tracking directory permission changes

Permission of a certain directory named 11203 got changed twice because of which the hosted app encountered some problems. When I used the command: ausearch -i |grep chmod |grep 11203 I got the ...
1
vote
1answer
375 views

capture log of ufsdump when backup to stdout

I am backing a file system with ufsdump. In order to gain space in the remote file system I backup to stdout then pipe the output to compress. I find is more efficient that backuping up and then ...
1
vote
1answer
125 views

Proper resource locations for software under /usr/local (var data like log)

I'm trying to put together a small piece of software, and I wanted to know the appropriate place to put various items if I'm setting to use /usr/local. For example, under /usr/local I will have: bin ...
1
vote
2answers
1k views

Script to see if user has logged off

I have created this program to see if a user is logged on and it checks every minute. if [ "$#" -ne 1 ] then echo "Usage: mon user" exit 1 fi user="$1" until who | grep "^$user " > /dev/...
1
vote
0answers
589 views

File path in audit log instead of inode number

When I do: echo "#TEST" >> /etc/passwd I get the following in audit logging: node=kayak.office.local type=SYSCALL msg=audit(1412687666.054:62033): arch=c000003e syscall=2 success=yes exit=...
1
vote
0answers
86 views

How can we measure performance overhead resulting from writing to files or folders?

I have a tool which takes as input a folder or a file and then it logs operations done on that file or folder (modifying,deletion,creating new folders or files, etc). I was looking for a way to ...
1
vote
2answers
145 views

How to know URL being observed directly in a server

I host many websites using cpanel. I want to know URL being accessed at real time. It seems that many old domains still point to my host and they seem to take a chunk of CPU
1
vote
0answers
1k views

Changing the date format of auth.log

I was looking to change the date format in which auth.log logs information. I could not find a way to do it. Is there a method to do this? My system uses rsyslog.
1
vote
0answers
439 views

Unable to start apache

I'm running CentOS7 in virtualbox on a mac (osx 10.9.3). Ultimately, I want to access the website on my Guest VM from my Host. I can Ping and SSH to VM but I can't access the webpage when entering ...
1
vote
1answer
413 views

Capture information of system-call

I have a QEMU-KVM hypervisor (ubuntu) with several VMs. What I want to do is capture all information of VMs system call to hypervisor (without any intervention to VM whatsoever) in real time within a ...
1
vote
0answers
71 views

Get log from kernel while loading

There is a arm/omap2-based device without ethernet, UART ports. It has usb connection with host, numeric keyaboard, LCD display. There is working U-Boot and kernel images for this. I'm trying to ...
1
vote
0answers
1k views

Disable kernel logging during initialization

I'm using a Linux image generated with buildroot for an embedded system. I recently disabled some modules from being generated with the image and now some logging messages are being shown during the ...
1
vote
0answers
193 views

Stop atieventsd flooding my journalctl

When running journalctl -f, this line shows up every seconds.. Month DD HH:MM:SS computername atieventsd[number]: xauth: file list does not exist for example May 15 08:32:11 gravity atieventsd[355]...
1
vote
1answer
772 views

Rotating iptables logs, strange message about script being converted to upstart job

I use a script /etc/logrotate.d/iptables containing entries like: /var/log/in_iptables.log { rotate 4 weekly missingok notifempty compress ...
1
vote
1answer
45 views

Weird logging behavior in Berkeley mail on a Mac

I use Berkeley mail (/usr/bin/mail) on an iMac. It has just started behaving in strange ways. If I type "~v", to open an editor, I get "[LogLevel VERBOSE]" or sometimes "[LogLevel DEBUG]" and the ...
1
vote
0answers
121 views

Logging full paths to printed files in CUPS

We are trying to configure the CUPS printing service into the protected enterprise network, and we need to store full paths of printed files (instead of local filenames without directory, as it is ...
1
vote
2answers
330 views

Linux statistics script (Google analytics-like)

We own a few servers, each with about 100 users on it, some with 1 domain, some with a few. I'm looking for a script which runs in the background which can provide information about which users uses ...
1
vote
0answers
146 views

How to customize apache mod_sec log output?

I have an apache server which uses mod_security configuration. Those logs are further analyzed and sent out to OSSEC server for intrusion detection and monitoring. That OSSEC server then sends those ...
1
vote
0answers
2k views

How can I enable fail2ban and mod_secure logs to appear in logwatch on centos 6.4?

I have logwatch working fine but I don't see the fail2ban and mod_secure logs appearing in my logwatch logs. How do I enable this? What do I need to do to logwatch's configuration file? Below is the ...
1
vote
0answers
953 views

Understanding to errors in /var/log/messages

Recently I've been checking my log and found two weird errors which I don't understand. The first one: May 22 08:11:00 localhost dbus: [system] Rejected send message, 1 matched rules; type="...
1
vote
2answers
124 views

Reduce redundant logfile

I often have longer redundant log files, redundant in the sense that blocks of text repeat with minor changes. The length of the files makes it difficult to spot the actual information. I had the idea ...
1
vote
0answers
1k views

ftp server log to include more information

I am implementing the ftp server on linux box (fedora 11, vsftpd). Everything works good so far but i need Ftp server log files to contain transfer rate information. At the moment when I use "get " ...
1
vote
0answers
609 views

How to disable Logwatch filtering script?

The default config for http-error logs in Logwatch on a CentOS 5 box (logwatch-7.4.0-1) includes the line: *ApplyhttpDate That wipes out all lines, because Apache 2.2 uses StdDate format (e.g. Fri ...
1
vote
0answers
248 views

Where are the logs for the serial port (power save modes, specifically)

I'm running a system with Ubuntu 10.10 (pretty old, I know, but it has to be that one), with all its packages updated to the latest version supported (the distribution is not supported anymore so, to ...
1
vote
1answer
109 views

Can selinux log an application owner name?

So I've set up selinux to log all file access operations in a certain directory. Here's some sample log output when doing an ls from sftp: type=AVC msg=audit(1338465611.221:356): avc: granted { ...
1
vote
0answers
391 views

really basic bootstrap logger - (preferably syslog, cascade to http/raw)

I have a bootstrap shell script that is run as the very first thing when a fresh Linux server is booted up to multi-user mode with networking. Once it is complete, I would like to report the error ...
1
vote
1answer
2k views

disk or partition log history

Is there any way to find the disk status log or disk free space history. How can I show the disk status of my partition table? Scenario is I have to provide the status of the disk status which is ...