Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

Tagged with
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 ...
wim's user avatar
  • 3,207
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 ...
aldorado's user avatar
  • 207
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/...
Get Off My Lawn's user avatar
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 ...
tutuDajuju's user avatar
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 ...
CSharpBeginner's user avatar
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 ...
Mogget's user avatar
  • 1,345
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 /...
Sat's user avatar
  • 31
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 ...
FluffyBeing's user avatar
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 ...
gmadar's user avatar
  • 143
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 ...
Atomiklan's user avatar
  • 637
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. ...
user237610's user avatar
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 ...
GangsTaRun's user avatar
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 ...
user avatar
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? ...
shuhalo's user avatar
  • 225
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 '...
Marco Sulla's user avatar
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 ...
Ould Abba's user avatar
  • 201
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 ...
x-x's user avatar
  • 495
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 [...
Valter Silva's user avatar
  • 1,381
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 ...
monksy's user avatar
  • 1,741
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 ...
quick-'s user avatar
  • 1
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 ...
dfens's user avatar
  • 141
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 ...
user avatar
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 ...
user avatar
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?
Marcin Szymczak's user avatar
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 ...
pnongrata's user avatar
  • 2,882
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 = "...
719016's user avatar
  • 4,457
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 ...
neubert's user avatar
  • 7,232
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 ...
bardiir's user avatar
  • 225
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 ...
ThinkCode's user avatar
  • 115
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 == '...
w0rldart's user avatar
  • 3,003
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 ...
endolith's user avatar
  • 7,581
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 ...
Scott Crooks's user avatar
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 ...
evfwcqcg's user avatar
  • 349
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 ...
alwbtc's user avatar
  • 2,985
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 ...
chaz's user avatar
  • 322
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?
Adam Matan's user avatar
  • 8,500
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 ...
Colmiler's user avatar
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.
Rajeev's user avatar
  • 31
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 ...
Colby Olson's user avatar
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 ...
nelaaro's user avatar
  • 13.8k
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 ...
bakennedy's user avatar
  • 121
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 ...
Neuquino's user avatar
  • 1,043
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.
futlib's user avatar
  • 1,279
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 ...
Tom Fishman's user avatar
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 ...
Vinh Nguyen's user avatar
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 ...
rcourtna's user avatar
  • 193
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? ...
CaptSaltyJack's user avatar
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?
wowpatrick's user avatar
  • 4,419
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 ...
Tusker's user avatar
  • 11
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 ...
nopcorn's user avatar
  • 16.7k

15 30 50 per page