0
votes
2answers
268 views

disabling apache logging to access.log

I've been reading about disabling the logging of the apache server, which is crucial for me as I'm running huge tests on it, and it fills the disk. I've tried changing http.conf and directing stuff ...
24
votes
9answers
10k views

Logging in Linux

So I have a daemon running on a linux system, and I want to have a record of its activities: a log. The question is, what is the "best" way to accomplish this? My first idea is to simply open a file ...
7
votes
7answers
6k views

Can syslog Performance Be Improved?

We have an application on Linux that used the syslog mechanism. After a week spent trying to figure out why this application was running slower than expected, we discovered that if we eliminated ...
9
votes
5answers
4k views

Linux non-blocking fifo (on demand logging)

I like to log a programs output 'on demand'. Eg. the output is logged to the terminal, but another process can hook on the current output at any time. The classic way would be: myprogram ...
13
votes
11answers
16k views

Truncating a file while it's being used (Linux)

I have a process that's writing a lot of data to stdout, which I'm redirecting to a log file. I'd like to limit the size of the file by occasionally copying the current file to a new name and ...
3
votes
4answers
1k views

How to find the reason for a dead process without log file on unix?

This is an interview question. A developer started a process. But when a customer wants to use the process, he found the process wasn't running. The developer logged in and found the process died. ...
0
votes
2answers
1k views

How to highlight the differences between subsequent lines in a file?

I do a lot of urgent analysis of large logfile analysis. Often this will require tailing a log and looking for changes. I'm keen to have a solution that will highlight these changes to make it easier ...
5
votes
3answers
3k views

Garbage collector log (loggc) file rotation with logrotate does not work properly

I came across a weird issue when using JVM garbage collection log option with Linux logrotate command. When rotation is executed, it fills NUL ( ^@ ) values the first line of the file given as ...
0
votes
3answers
507 views

How can I log to a specific file in linux using logger command?

I will run the following script: #!/bin/bash ./myprogram #get exit code exitvalue=$? #log exit code value to /var/log/messages logger -s "exit code of my program is " $exitvalue But I don't want ...
0
votes
3answers
1k views

Python parsing log file to extract events in real time

I've a process that is logging messages to a file. I want to implement another process (in Python) that parses these logs (as they are written to the file), filters the lines that I'm interested in ...
0
votes
1answer
424 views

tail logback log files with log level coloring in linux server

We are migrating from log4j to logback, and with log4j we are using multitail with colorscheme to tail our log files with log level coloring. Can multitail do the same for logback ? is there any ...