How to use a error log file intelligently.?


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers How to use a error log file intelligently.?
# 1  
Old 03-05-2013
How to use a error log file intelligently.?

This has broad implications but is there a way to tell which applications are logging into lets say xsessons error file? How do I tell which error messages pertain to which applications?


Thanks in advance!Smilie
# 2  
Old 03-06-2013
I don't think I understood the question completely, but let me give it a try.

Are you looking for process writing to a common log file, multiple process into a common log file?
# 3  
Old 03-06-2013
I have investigated this before....

The last time I tried to get help with this issue the consensus was that the logs are just basically for the people that write the programs because it is very difficult to find out what the messages in the log mean. Unless we are up to speed of what the event that caused the error message that is logged, it does not mean anything to the person that did not write the code for the application. So as I do not think that being an expert on code I did not write is practical, I want to organize it so it is as comprehensible as possible.

I know that I can have the separate applications that use ksysd and syslogd (is it?) write to their own separate logs so I'm positive that these events only belong to this one/specific application. Otherwise I look at xsession errors for example and I don't have a clue which error messages where created by which application that writes to this log. Smilie

Now I would know which application created the message but not what it means. My next step would be to try to use the process of elimination to understand what the messages mean or get a closer understanding anyways.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Print Error in Console and both Error & Output in Log file - UNIX

I am writing a shell script with 2 run time arguments. During the execution if i got any error, then it needs to redirected to a error file and in console. Also both error and output to be redirected to a log file. But i am facing the below error. #! /bin/sh errExit () { errMsg=`cat... (1 Reply)
Discussion started by: sarathy_a35
1 Replies

2. Web Development

How to log http 404 error to a separate log file?

Apache Web Server: how to log http 404 error to a separate log file and i do not want to log in access.log please advice. (2 Replies)
Discussion started by: raghur77
2 Replies

3. Shell Programming and Scripting

Intelligently merge two files

I have two files as the following: file1: 243 242 243 242 242 file2: 243 car 360 396k 242 bike 240 217k I want the corresponding $3 in file 2 added as $2 in file 2. The expected output would be: 243 360 242 240 243 360 (2 Replies)
Discussion started by: jamie_123
2 Replies

4. Solaris

Log error from cron job into log file

Hi Please would it be right to log the errors from a script running in cron in the following manner: /datax/vendor/dump.sh > /datax/vendor/err.log 2>&1 (16 Replies)
Discussion started by: fretagi
16 Replies

5. Shell Programming and Scripting

awk "intelligently" paste two files together.

Hi everyone, I am trying to join two files together based on a field present in both files but not necessarily in the same order. File 1: 123 user1 245 user2 559 user3 File 2: 123 user1 246 user4 544 user2 Also, sometimes a user may not even be in both files. What I want awk to... (3 Replies)
Discussion started by: collards
3 Replies

6. Shell Programming and Scripting

Capture all error message in Log file and send the Log file by email

Hi I have a requirement to write a script to capture all errors in a Logfile and send the file in email. If there is any error occurred the subject of email will be ERROR , If there are no error occurred the subject of email will be SUCCESS. So I created a Log file and put the Appropriate... (2 Replies)
Discussion started by: dgmm
2 Replies

7. Shell Programming and Scripting

Appending error messages from log file next to the corresponding error record

Hi Everyone, I have an issue and trying to get a solution but was not succesful yet. Any help is greatly appreciated. I am using ksh to inoke sql loader to load data from txt file into two oracle tables based on the condition written in the control file. If an error occurs while loading into... (8 Replies)
Discussion started by: vpv0002
8 Replies

8. Shell Programming and Scripting

sqlplus error output to different error log file

HELLO, I am using such a command to write oracle sqlplus query result to text file: sqlplus -S xxx/xxx@xxxxxxx @\tmp\2.sql>\tmp\123.txt Is it possible to script that: If command succesfull write in \tmp\log.txt: timestamp and "succeded" and create 123.txt with results else If error... (2 Replies)
Discussion started by: tomasba
2 Replies

9. HP-UX

How to Redirect the error messages from Syslog file to our own Application Log File

Hello, I am New to Unix. I am Using HP-UX 9000 Series for my Application. I am Currently Facing an Issue that the error messages are being written in the syslog file instead of the Application Log File. The Codes for that Syslog.h is written in Pro*C. I want to know how to Redirect these... (3 Replies)
Discussion started by: balasubramaniam
3 Replies

10. UNIX for Advanced & Expert Users

Intelligently Installing from Source

Hi: (I apologise in advance for the lengthy prelude--but i think it's necessary to properly ask my question.) I code in Ruby and Python on Mac OS X. Ruby, for instance, as i suspect everyone here knows, is both open source and it it lacks native support for e.g., GUI and Image Manip. These two... (0 Replies)
Discussion started by: Alex_Land
0 Replies
Login or Register to Ask a Question