All Questions
235
questions
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
98
views
How to disable gz backup history of logs?
In the /var/log directory from time to time different backup log files are saved, some ending in .1 .2 .3 and .gz. How can I configure the system to generate a single log without making backups but at ...
5
votes
2
answers
4k
views
What does logger -f filename do?
The man page is ambiguously worded:
-f file Log the specified file.
There's one example in the man page with no further explanation:
logger -p local0.notice -t HOSTIDM -f /dev/idmc
POSIX is no ...
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 ...
0
votes
1
answer
470
views
Find log files under multiple directories and compress each file with its own name and date
I have multiple directories like below and I want to compress each file in place.
/var/dir1/logs/logfile.log
/var/dir2/logs/logfile.log
/var/dir3/logs/logfile.log
I want to use find and tar with ...
0
votes
0
answers
1k
views
How to list users logged via remote desktop(xrdp) and ssh on Ubuntu
I'm using some shared Ubuntu machine and using the who, w, last commands doesn't print any users just my own user. Issuing reboot print a list of users logged in via xrdp.
Is there a command that can ...
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 ...
0
votes
1
answer
1k
views
Changing security levels of Fortigate logs?
Tech newbie here.
I want to send Fortigate logs to a syslog server. Previously, I was receiving way too many unnecessary firewall logs, 90% of them with a security level of "notice." I have ...
0
votes
0
answers
98
views
journalctl entries are logged using the same time, in 5minute intervals
I have a service which queries a database every second and print out results to console. When I look at journalctl I get a couple hundred lines that all have the same timestamp, and then the next ...
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
2
answers
2k
views
Is there a way to globally specify where Unison should log?
I'd really like to have Unison log only to a specific file for ALL of my profiles. I have a number of different profiles, 3 local ones, and one remote one (my laptop syncs with this computer to keep ...
0
votes
2
answers
76
views
Prevent application (iscsiadm) logging to dmesg?
I have an issue where running sudo iscsiadm -m discovery -t st -p IP -l logs to dmesg across all terminals on the server.
The command is run from a java application, using:
Runtime.getRuntime()....
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 ...
0
votes
1
answer
1k
views
How to Forward Windows Print Log to Syslog
I want to collect logs from various machine (windows and linux) to a centralized log server. The log server has been configured and is listening on port 514 tcp and udp for log in syslog protocol.
I ...
2
votes
1
answer
30
views
Automatically switch to new rotated log
On debian I monitor nginx logs with tail command:
tail -f /var/log/nginx/access.log
but since at midnight access.log is rotated (access.log is renamed as access.log.1 and new access.log is created), ...