Skip to main content

All Questions

Tagged with
103 votes
3 answers
118k views

logrotate configuration file syntax - multiple wildcard entries possible?

Since the man page doesn't answer my question and I don't want to force a rotation cycle, I decided to ask the question here. The man page for logrotate gives the following example: "/var/log/...
0xC0000022L's user avatar
  • 7,213
69 votes
8 answers
52k views

How can I log all process launches in Linux?

I would like to get a log of all processes that are launched with the time that they were launched and the arguments they were launched with. Is this possible in Linux?
Brandon DuRette's user avatar
62 votes
6 answers
10k views

Alternative for "tail -f" that follows filename

I have some logs being generated using a timed rotating file logger. This logs to a file called tool.log, and at midnight, moves this to tool.log.<date> and starts a new tool.log. I have a tail ...
Hugh's user avatar
  • 1,211
60 votes
3 answers
72k views

Linux - some way to keep a live-updating log file open in terminal?

This must've been done before: I want to keep a log file open in terminal so I can monitor updates to it as they occur. My searches are coming up with everything but this situation... I must be ...
wulftone's user avatar
  • 973
42 votes
4 answers
221k views

Where Linux places the messages of boot?

I want to find place to where Linux writes all boot messages. You know: facility one [STARTED] facility two [STARTED] facility three [FAILED] I searched with find . -print0 | xargs -0 grep -...
Rodnower's user avatar
  • 2,209
39 votes
1 answer
3k views

Accidentally deleted log file of running process `python something.py 2>&1 | tee .log`. Is there a way to still save the output on the tmux-pane?

Accidentally deleted log file of running process python something.py 2>&1 | tee .log. The script is running in a tmux pane on zsh. The process is still running but not logging. The output ...
baxbear's user avatar
  • 516
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
30 votes
4 answers
37k views

Linux command line utility for watching log files live?

What's a good linux command line utility for watching a log file live? It's probably obvious but I totally forgot it.
kylehotchkiss's user avatar
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
24 votes
5 answers
31k views

How do I log file system read/writes by filename in Linux?

I'm looking for a simple method that will log file system operations. It should display the name of the file being accessed or modified. I'm familiar with powertop, and it appears this works to an ...
cmcginty's user avatar
  • 3,289
19 votes
4 answers
3k views

Linux command line log viewer which allows auto tail AND searching?

I use tail -f in my Linux shell, to view log files, as I like how it auto-updates with the incoming text: I like to see the new stuff come scrolling in. However, I also like the search functionality ...
Max Williams's user avatar
  • 3,039
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
17 votes
3 answers
64k 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
16 votes
1 answer
22k views

How to follow systemd unit log?

I have a running systemd unit and I want to follow it's log. I know I can show unit's log by using: journalctl -u my_unit.service But that only prints current logs without following them. I know I ...
jirislav's user avatar
  • 573
14 votes
7 answers
28k views

Piping tail -f into awk

I am trying to pipe tail -f into awk to monitor a logfile in realtime, but according to examples, there should be not problem but I can't get it to work. here is the command I'm running tail -f ...
gimpycpu's user avatar
  • 241
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
13 votes
5 answers
24k views

Text / log editor with auto-refresh support [closed]

I'm looking for a text editor / log manager of some kind that will automatically refresh a file's contents when it changes. I have a single target log file (e.g. current.log) that is overwritten ...
Mark McDonald's user avatar
12 votes
4 answers
5k views

Walk me through the Linux log files (please)

I just tried loading a 2MB file in gedit and it silently died on me. I was wondering if anything might appear in a log file that might help me diagnose this: I checked syslog and found out it ...
Andy's user avatar
  • 3,107
12 votes
4 answers
24k views

logrotate unable to rotate logs, getting "No such file error"

logrotate is unable to rotate my logs. I have checked the file permissions, they are fine. I have even tried by putting "su root root" in the configuration file, still I am facing the same issue. ...
Sandeep Singh's user avatar
11 votes
1 answer
10k views

How to stop journalctl showing audit logs and only keep it in a file?

I would like to have all auditd logs only in it's own log file and keep my journalctl view less polluted with events that most of the time, are generated by my own actions (single-user/personal ...
Wereii's user avatar
  • 358
9 votes
2 answers
55k views

How to change log level in /var/log/messages?

I'm running SUSE Linux Enterprise Server 10, SP2 (SLES10 SP2), and am seeing a large number of what support calls cosmetic errors being logged to /var/log/messages. Does anyone know of a way to ...
user avatar
8 votes
5 answers
17k views

Writing a CPU/RAM usage log over a period of time to file on CentOS

I'm looking for an application or line of code that would let me observe a process, save the info in a number of variables, then put the gathered info on a file. I've been trying with variations of ...
keponk's user avatar
  • 218
8 votes
4 answers
29k views

Redirecting command output in docker

I want to do some simple logging for my server which is a small Flask app running in a Docker container. Here is the Dockerfile # Dockerfile FROM dreen/flask MAINTAINER dreen WORKDIR /srv # Get ...
Dreen's user avatar
  • 456
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
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
7 votes
3 answers
15k views

What does "Still Running" mean (Linux)?

$ last -x reboot reboot system boot 4.4.0-46-generic Mon Nov 14 12:15 still running What does the "still running" mean at the end of the log entry? Did the server reboot? Is it going try later? Is ...
user2966456'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
6 votes
2 answers
5k views

Specify top's screen width in batch mode

I am logging the output of: top -b -n1 -c so I can keep track of which processes are using how much memory and CPU each minute. When top shows the full command line (-c), the command line text gets ...
Zach Dwiel's user avatar
6 votes
2 answers
2k views

Where to find Ubuntu One logs

Ubuntu one does not synchronize files since I upgraded from 9.10 to 10.04. The preferences panel keeps showing "Synchronization in progress...", but files are not downloaded from the repository. It ...
Stéphane's user avatar
  • 245
6 votes
1 answer
21k views

Journalctl shows logs from about last hour only

I have a problem with journalctl logs, which doesn't show me logs older than about one hour. First log entry is from about one hour ago, instead of 2 days as requested. $ date -u Wed May 13 08:59:21 ...
Jakub Kuszneruk's user avatar

15 30 50 per page
1
2 3 4 5
8