All Questions
235
questions
0
votes
0
answers
1k
views
How can I log shutdown messages?
I'm trying to log the shutdown messages in my linux, I see "Asking all remaining processes to terminate..." and then there is a big delay, and then there is some other chatter and log messages which ...
1
vote
2
answers
606
views
Temperature log with acpi -t
I had system freezes with my HP Pavilion when using Linux (at the moment I use Debian, Ubuntu showed the same behavior). HP support forum suggests that the error is related to temperature control. So ...
0
votes
1
answer
63
views
File is taking up a lot of space on server
I have this file on my Ubuntu server, and it is 12GB in file size. I don't know what that file is, and would like to know, would be safe to to delete or truncate the file?
Here is the file
/var/log/...
17
votes
7
answers
20k
views
Logging lock-screen events
Problem
See the exact date & time a user locks and unlocks his work station - running Fedora 18.
Question
Is there any way to log an event of a user entering and exiting "lock-screen" on fedora ...
1
vote
2
answers
21k
views
Where are logs of MySQL ? Fedora
Hello I just installed MySQL on my Fedora from Source, with cmake,make,make install etc. It's working, but where can I find logs of the server? I have looked into /var/log, but there is nothing with ...
2
votes
2
answers
1k
views
Plotting timedata in gnuplot
I have a log file (auth.log) where non-relevant lines has been removed.
I wish to aggregate lines per hour/day into the plot, meaning that each line that is within the same hour or day is aggregated ...
1
vote
1
answer
2k
views
Logrotate append to existing file and truncate original
Is it possible with logrotate to take the content of a log and add it to an existing file?
Like so:
1. Put the content of /var/log/vnc.log after the content of /archive/logs/vnc.log
2. Truncate /...
2
votes
0
answers
82
views
Old gdb cannot find out how to do logging
I'm running an obsolete Red Hat OS and debugging with the built-in gdb but I cannot figure out how to do logging.
I've tried:
set logging on
But get:
No symbol "logging" in current context
It ...
4
votes
1
answer
1k
views
ubuntu upstart permission error when writing to log on a non admin user
I have a simple upstart script:
start on started network-services
respawn
respawn limit 100 5
setuid www-data
exec node /var/testapp/app.js >> /var/log/testapp.log 2>&1
post-start ...
17
votes
3
answers
65k
views
Rsyslog outputting to custom log file
Can anyone tell me what I did wrong here?
Here is the ultimate question:
Why when I use the logger command can I not get it to output to a custom log file in /var/log?
In my script:
logger -i -t ...
2
votes
3
answers
3k
views
Is there log which record the operation of files in linux [duplicate]
Is there log which record the operation of files in linux. Just like, if some users rename or delete or add some files, can root user see the records of the operations. Do these logs exists in linux.
...
0
votes
1
answer
2k
views
Logging incoming IP addresses on a specific port
I've tried tcpflow and iptables but I'm unable to do so.
I believe someone is attempting to DDOS my open port which is a server, so that my clients are unable to connect. From tcpflow I'm able to get ...
2
votes
3
answers
1k
views
log execution of certain commands on linux
I have to maintain a system (debian) on which several users are allowed to install programs - so I would like to log, for example, if anyone executes "apt-get install" or "apt-get purge", so I can ...
3
votes
1
answer
12k
views
Find log files of Linux Mint after system turned frozen
My system freezes regularly, more than once a day, sometimes right after the start of X. I have not been able to reproduce the error deterministicly.
After rebooting, where do I find the old files? ...
2
votes
2
answers
499
views
Is there a way to automatically get track of installed packages and dependencies?
There are packages I installed using 'apt-get install', that installed also all its dependencies. If I want to remove it after some time, I would remove its dependencies as well. Now I do not trust '...
0
votes
1
answer
354
views
Linux network audit
I have a server with Linux Red-hat Enterprise Edition 5.4 installed.
and a client/server application that permits connection at the port 6000, but it doesn't offer connections log.
I want to know ...
1
vote
2
answers
8k
views
How do I configure rsyslog to write to /var/log/{hostname of sender} when receiving remote logs?
My ADSL modem supports remote logging via syslog. I have set up my server, running rsyslog, to accept the log messages from the modem and they are being show in /var/log/syslog along with the messages ...
1
vote
4
answers
6k
views
How sync files with s3cmd to Amazon S3, check if sent and remove locally?
I'm trying to use Amazon S3 service to store logs from my applications.
Given /user/bin/s3cmd --help tells me what I need to know how send the files:
s3cmd --help
usage: s3cmd [options] COMMAND [...
1
vote
2
answers
496
views
Find the differences between versions of a log file
Is there a utility that will show you a difference in a directory of log files at one point of time and at the current moment?
Current a method in debugging applications is to remove all of the logs ...
0
votes
1
answer
60
views
Create a logging program
I want to create a program that logs all the processes started by the user and confirms after they are started. I don't want to log all the syscalls and other daemon processes. I have initially ...
3
votes
2
answers
4k
views
How to make `script` command loaded automatically on terminal login
script command allows to log gently everything that was put to console during session (like history but also displays results of commands). Everything is logged to file typescript.xxx
Now I want to ...
0
votes
1
answer
203
views
3rd party tool for log rotation in Linux?
I want an auto archive all of my log files for an application on my Linux distro.
Also after the log files have been archived,
the actual log files should be deleted (not the archived ones).
I know ...
3
votes
4
answers
16k
views
How to grep logfile via SSH on multiple servers?
Sometime, I need to find out specific log content(such as api call) from log files, those log files exists in several Linux servers.
I have to use SSH to login every server and use grep searching the ...
2
votes
2
answers
127
views
Efficient environment for viewing logs [closed]
Currently I am using tail -f for viewing logs.
Is there any more efficient/readable/better way of viewing logs?
4
votes
1
answer
10k
views
logrotate configuration and execution
I'm trying to configure logrotate to rotate and delete log files every day at midnight, but have never used it before. So: (a) I want to confirm that my configuration is correct, and (b) I need help ...
7
votes
3
answers
11k
views
logging RAM memory high-water mark of a Linux process
I would like to log the RAM memory high-water mark of a Linux process (kernel 3.2.0-36) by the time the process finishes. I am calling the process inside a Perl script. Something like:
my $cmd = "...
1
vote
1
answer
947
views
Figuring out how my /etc/ folder got deleted [closed]
I was playing around with my sendmail configuration in the /etc/ folder, and then, somehow, the contents of my /etc/ folder went away, and I'm unsure of how. From /var/log/auth.log:
Nov 8 10:28:42 ...
1
vote
3
answers
2k
views
How to find what is written to filesystem under linux
How can i find out what processes write to a specific disc over time?
In my particular case I got a little homeserver running 24/7 and I included a script in the crontab to shutdown all drives that ...
0
votes
1
answer
708
views
How do I save log files to another partition?
I have the following :
uname -a :
2.6.31-14-generic-pae #48-Ubuntu SMP Fri Oct 16 15:22:42 UTC 2009 i686 GNU/Linux
df -h :
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 ...
3
votes
2
answers
9k
views
Redirecting output from syslog to own log
I'm following this tutorial: Using Fail2ban To Block Wrong ISPConfig Logins, but rsyslog won't redirect the output from a file to another:
/etc/rsyslog.d/12-ispconfig.conf:
if $programname == '...
1
vote
3
answers
2k
views
Huge log files consuming entire hard drive
My hard drive keeps becoming full, and I thought it was just normal usage, but now that I pay attention, rsyslogd is hogging the CPU, and I think the drive is being filled by log files:
> la -S
...
1
vote
2
answers
182
views
Log viewer server and client
I'm looking for a log viewing solution for (mostly) Linux and (preferably) Windows too. I want to be able to centralize the log information for a lot of servers so that people in the company can see ...
0
votes
1
answer
62
views
Write log when somebody attempt to load OS
I'd like to write a log when somebody attempt to access my computer. (e.g. enter login and password, doesn't matter successfully or not).
I use Arch Linux and CDM (console display manager).
ps: I ...
2
votes
2
answers
6k
views
View old command output from a closed terminal
I ran
hg pull
hg up
to check in my working copy to the Mercurial repository.
I got some warning messages in the terminal. I closed the terminal and now I want to see those messages again.
Are ...
1
vote
0
answers
45
views
How can I print individual characters on pre-desktop system log screen in linux at first log message?
I want customize the booting to display a message character by character in the system log display that appears before the desktop login. If I make my own kernel module to do the printing, how can I ...
39
votes
7
answers
72k
views
Remove first N lines from an active log file
Is there a way to remove the first N lines from a log that is being actively appended by an application?
1
vote
1
answer
2k
views
How to stop dhclient writing syslog messages on Lubuntu 11.10
I'm running Lubuntu 11.10 and the package installs dhclient. Everything seems to work fine except that it keeps logging huge amounts of unnecessary dhclient status messages (several per second, every ...
3
votes
1
answer
2k
views
Recording user activity if they have "sudo bash" access
I would like to monitor all the commands when a user calls sudo bash, including the rest of the commands.
3
votes
2
answers
6k
views
Determine when Linux lost power
I returned from a trip and noticed that my apartment had lost power. I am currently running a small Linux server (Ubuntu 8.04) and had to boot it back up.
Is there a way to read some log and see ...
0
votes
2
answers
539
views
In Linux can I direct all traffic from a specific ip address or mac address to file
In Linux can I direct all traffic from a specific ip address or mac address to file.
I am look of a way to take all traffic from a specific ip address or mac address and put it into a file. Does ...
2
votes
0
answers
541
views
My Dell laptop running Ubuntu Linux 11.10 hangs on reboot but not shutdown. How do I diagnose this?
My Dell laptop running Ubuntu Linux 11.10 hangs reliably while shutting down for a reboot, but when I shutdown, it will complete successfully. How do I diagnose this? I don't know what log files I ...
1
vote
2
answers
7k
views
How to monitor input and output HTTP requests on Linux?
When I invoke an URL I get in an infinite loop due to "301 Move Permanently" HTTP Response Code.
I'd like know the output and input requests that the machine is sending/receiving.
Is there any way ...
24
votes
3
answers
48k
views
Linux: How to monitor incoming pings
Can I somehow monitor incoming pings on a Linux machine? netcat doesn't seem to support that.
14
votes
1
answer
73k
views
How to check Ubuntu crash log in last session?
My headless Ubuntu (11.10) crashed. When I plug in keyboard and monitor, I see an non-interactive cursor (no blink) on a black screen. SSh, telnet don't work from other machines. Ping works.
I have ...
0
votes
1
answer
118
views
email myself startup screen messages log
I currently have a NAS (Ubuntu 10.04) on my network without an access to a monitor due to a lack of a graphics card. I noticed that every time I restart the NAS, it's been taking longer to fully ...
4
votes
5
answers
3k
views
Linux application to tail multiple log files (like OS X Console.app)
I'm constantly tailing log files. At any given time I've got half a dozen terminal windows open that are simply running tail -f .
In OS X, the Console app is brilliant. All the usual log files are ...
8
votes
2
answers
19k
views
Where to look when the system crashes or something else horrible goes down?
My Linux Mint workstation is acting funky, it appears to be logging me out randomly, though I'm guessing what's really happening is that the X desktop is crashing. Maybe.
How do I troubleshoot this? ...
6
votes
2
answers
20k
views
How can I view live logs on a Linux server (Ubuntu)
How can I view a live log on a Linux server, so that I can see new log entries instantly as they are being added?
1
vote
2
answers
621
views
Is there a open source monitoring package that monitors logs for specific string patterns?
In our current system, we are not effectively monitoring the logs for errors as most of the errors are not serious enough. I want to basically warn users on the important errors. I cannot touch the ...
4
votes
1
answer
4k
views
Where to see the recent changes/actions on a computer?
I log on to a lot of different servers at work to do some tasks and install new software. However, sometimes I find myself wanting to know what has been done to the computer recently. This usually ...