Skip to main content

All Questions

Tagged with
-1 votes
1 answer
233 views

Is this kind of log system harmful to the hard disk?

Recently I'm learning the web development and I found the applications will write their running logs into /tmp/appname/logs/a.log or /tmp/appname/logs/a.log.1 with the following format: {"message&...
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
0 answers
24 views

squid - logfile based on source

According to some googled documents, I am trying to set up per-host logfile to exclude some requests from access log, but to keep these requests in different logfile. My related config in squid.conf: ...
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 ...
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 ...
0 votes
1 answer
1k views

Write the output of xmllint to a log file, how?

With xmllint I check all XML files in the folder and if xmllint finds an invalid XML file there is an output. My question: how can I write this output to a log file? I found this command on the ...
0 votes
0 answers
2k views

samba linux access log file location

experts! I have a linux smb installation, and, as well as apache logs every access (what ip, when, requests what resource), I wonder if smb does the same: I'd like to have a log file that reflects ...
1 vote
1 answer
775 views

iptables logging how to increase max log prefix?

I have many iptables rules that will log offending packets. My logs go to /var/log/iptables.log but the logs appear in 24-hour time: Mar 13 00:13:55 kernel: DROPPED Attempted ping, I would like them ...
1 vote
1 answer
5k views

How to log some, but not all, lftp transfers

I have an lftp script file that I use for mirroring some directories over sftp, so I run the command using something like lftp -f mirror_dirs.lftp. I would now like to log the transfers to a specific ...
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 = "...
0 votes
0 answers
273 views

log tcp contakting connection with nftables

I Want to log TCP contracting Connexion using nftables(iptables) I tried to write tcp flags in Rule, but when I acces to webpage of destination IP address I get just this Info in my logfile : ...
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 ...
1 vote
0 answers
55 views

How to check for screen activation in system logs

I have a Debian 10 (Buster) installed, and I was wondering how to check in the system logs when the screen was activated. The way I configured the OS is that I have turned off in the power manager ...
2 votes
1 answer
3k views

Docker logs is missing log entires which are showing in docker attach

I am working on a software running inside a docker container where the produced logs are mandatory in order to evaluate it later on. My problem is that the command docker logs is missing some log ...
1 vote
1 answer
39 views

Check Mount Directory

I have raspberry pi and have microsd with raspbian from which the system is loading and the HDD on which I write logs. I encountered such a problem that sometimes the disk falls off and the logs begin ...

15 30 50 per page
1 2 3
4
5
16