All Questions
235
questions
103
votes
3
answers
117k
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/...
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?
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 ...
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 ...
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 -...
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 ...
39
votes
7
answers
71k
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?
29
votes
4
answers
35k
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.
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.
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 ...
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 ...
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 ...
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 ...
16
votes
1
answer
21k
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 ...
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 ...