Re: How to read log files

2010-04-04 Thread Dotan Cohen
> I just came across a page that might help you with the subject. > > > > I was looking for something else and stumbled across this. > Thanks, Wayne! That page has already been read and bookmarked long ago! -- Dotan Cohen http://bido.com http://what-is-

Re: How to read log files

2010-04-04 Thread Wayne
Dotan Cohen wrote: Mar 28 09:14:19 sfd kernel: [ Â Â 0.00] Linux version 2.6.31-20-generic (bui...@palmer) (gcc version 4.4.1 (Ubuntu 4.4.1-4ubuntu8) ) #58-Ubuntu SMP Fri Mar 12 05:23:09 UTC 2010 (Ubuntu 2.6.31-20.58-generic) Doesn't look like Debian to me... Ubuntu is a Debian derivativ

Re: How to read log files

2010-04-02 Thread Dotan Cohen
>>> xgrep () { grep -i "$1" $(echo $PATH | tr ":" " ") ; } >>> >> Nice. I'm having a hard time understanding that last one, but I will >> figure it out. Thanks! >> > It looks like it takes the PATH environment variable and splits it into > multiple tokens (directories), and grep will search in *eve

Re: How to read log files

2010-04-02 Thread Jari Fredriksson
On 2.4.2010 1:45, Dotan Cohen wrote: >> etcgrep () { grep -ir "$1" /etc/* ; } >> sgrep () { grep -ir "$1" /usr/src/linux ; } >> xgrep () { grep -i "$1" $(echo $PATH | tr ":" " ") ; } >> > > Nice. I'm having a hard time understanding that last one, but I will > figure it out. Thanks! > > It look

Re: How to read log files

2010-04-01 Thread Dotan Cohen
> etcgrep () { grep -ir "$1" /etc/* ; } > sgrep () { grep -ir "$1" /usr/src/linux ; } > xgrep () { grep -i "$1" $(echo $PATH | tr ":" " ") ; } > Nice. I'm having a hard time understanding that last one, but I will figure it out. Thanks! -- Dotan Cohen http://bido.com http://what-is-what.com

Re: How to read log files

2010-04-01 Thread Mike McClain
On Wed, Mar 31, 2010 at 08:00:18PM +0300, Dotan Cohen wrote: > > That was quite what I asked: where could I read more on the subject? > Dead trees are fine! > Hi Dotan, These are trivial but handy for chasing down where messages come from: etcgrep () { grep -ir "$1" /etc/* ; } sgrep () { gre

Re: How to read log files

2010-03-31 Thread Jari Fredriksson
On 28.3.2010 19:33, Jari Fredriksson wrote: > On 28.3.2010 19:11, Dotan Cohen wrote: >> Is there a good resource for learning to read log files such as the >> kernel log, messages, dmesg, and such? I have been googling but found >> nothing really comprehensive yet understandable for a newbie. Where

Re: How to read log files

2010-03-31 Thread Dotan Cohen
> Sure, a very efficient way to do some bug hunting is just to copy-paste > the error in google's search, after removing some locale file names that > are probably not unique. Usually that gives you a "this is wrong, and > this is what you can do about is". When it doesn't is when the fun begins...

Re: How to read log files

2010-03-31 Thread Dotan Cohen
> Based on your previous posts, I take that to mean > > Tell me what book I should get to teach me how to fix errors I may encounter > on my linux system. > No, a better paraphrase might be: "Please suggest resources (both online and off) from where I could learn more about Debian-based systems, s

Re: How to read log files

2010-03-31 Thread Sjoerd Hardeman
Jochen Schulz schreef: > Camaleón: >> Then he could use a serial port and instruct kernel (at boot time) to log >> out there. I've done that one time, with a VM machine and another linux >> (openSUSE). >> >> What are the recommended steps to achieve this in Debian? > > /etc/inittab contains exam

Re: How to read log files

2010-03-31 Thread Sjoerd Hardeman
Wayne schreef: > Dotan Cohen wrote: >>> As a last resort buy a book on linux that covers the subject you want >>> answered. >>> >> >> That was quite what I asked: where could I read more on the subject? >> Dead trees are fine! >> > > Based on your previous posts, I take that to mean > > Tell me w

Re: How to read log files

2010-03-31 Thread Wayne
Dotan Cohen wrote: As a last resort buy a book on linux that covers the subject you want answered. That was quite what I asked: where could I read more on the subject? Dead trees are fine! Based on your previous posts, I take that to mean Tell me what book I should get to teach me how to f

Re: How to read log files

2010-03-31 Thread Stephen Powell
On Wed, 31 Mar 2010 13:00:18 -0400 (EDT), Dotan Cohen wrote > Wayne wrote: >> As a last resort buy a book on linux that covers the subject you want >> answered. >> > > That was quite what I asked: where could I read more on the subject? > Dead trees are fine! I think I understand Dotan's point.

Re: How to read log files

2010-03-31 Thread Dotan Cohen
> As a last resort buy a book on linux that covers the subject you want > answered. > That was quite what I asked: where could I read more on the subject? Dead trees are fine! -- Dotan Cohen http://bido.com http://what-is-what.com -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.

Re: How to read log files

2010-03-30 Thread Jochen Schulz
Camaleón: > > Then he could use a serial port and instruct kernel (at boot time) to log > out there. I've done that one time, with a VM machine and another linux > (openSUSE). > > What are the recommended steps to achieve this in Debian? /etc/inittab contains examples. (Legacy) Grub can be con

Re: How to read log files

2010-03-30 Thread Camaleón
On Tue, 30 Mar 2010 23:19:29 +0200, Jochen Schulz wrote: > Camaleón: >>> The machine is locking up and the keyboard leds flash. >> >> When the machine locks, try to access it via ssh. > > That won't work when the keyboard LEDs are flashing. That's a clear sign > for a kernel panic. We just have

Re: How to read log files

2010-03-30 Thread Jochen Schulz
Camaleón: > On Tue, 30 Mar 2010 23:20:59 +0300, Dotan Cohen wrote: > >>> I cannot see any "panic" or "kernel oops" in that log. >>> >>> What is the exact behaviour are you seeing? >>> >> The machine is locking up and the keyboard leds flash. > > When the machine locks, try to access it via ssh.

Re: How to read log files

2010-03-30 Thread Wayne
Dotan Cohen wrote: My 2 cents: read and understand log messages when you are in trouble, if system is working well, you don't need understand these logs. But in that case I would not be able to identify the faulty lines in the log. I need to know what a healthy log looks like, to diagnose a si

Re: How to read log files

2010-03-30 Thread Camaleón
On Tue, 30 Mar 2010 23:20:59 +0300, Dotan Cohen wrote: >> I cannot see any "panic" or "kernel oops" in that log. >> >> What is the exact behaviour are you seeing? >> >> > The machine is locking up and the keyboard leds flash. When the machine locks, try to access it via ssh. >> I think you shou

Re: How to read log files

2010-03-30 Thread Dotan Cohen
> I cannot see any "panic" or "kernel oops" in that log. > > What is the exact behaviour are you seeing? > The machine is locking up and the keyboard leds flash. > I think you should be a little more verbose so people can understand the > big picture and make any suggestion. > I was asking in t

Re: How to read log files

2010-03-30 Thread Dotan Cohen
> My 2 cents: read and understand log messages when you are in trouble, > if system is working well, you don't need understand these logs. > But in that case I would not be able to identify the faulty lines in the log. I need to know what a healthy log looks like, to diagnose a sick one. > googl

Re: How to read log files

2010-03-30 Thread Dotan Cohen
> Mar 28 09:14:19 sfd kernel: [    0.00] Linux version > 2.6.31-20-generic (bui...@palmer) (gcc version 4.4.1 (Ubuntu > 4.4.1-4ubuntu8) ) #58-Ubuntu SMP Fri Mar 12 05:23:09 UTC 2010 (Ubuntu > 2.6.31-20.58-generic) > > Doesn't look like Debian to me... > Ubuntu is a Debian derivative, Jordan. I

Re: How to read log files

2010-03-29 Thread Javier Barroso
On Mon, Mar 29, 2010 at 5:29 PM, Celejar wrote: > On Mon, 29 Mar 2010 13:38:14 +0200 > Javier Barroso wrote: > >> On Mon, Mar 29, 2010 at 9:06 AM, Dotan Cohen wrote: >> >> Why don't you just post what you've got? You will most probably find >> >> someone who can explain not only where the proble

Re: How to read log files

2010-03-29 Thread Lisi
On Monday 29 March 2010 16:18:12 Camaleón wrote: > On Mon, 29 Mar 2010 11:10:34 -0400, Jordan Metzmeier wrote: > > On Mon, Mar 29, 2010 at 10:39 AM, Camaleón wrote: > >> I support the person and his question, he seems to be an active (and > >> productive) Debian user. > >> > >> Anyway, Debian and U

Re: How to read log files

2010-03-29 Thread Celejar
On Mon, 29 Mar 2010 13:38:14 +0200 Javier Barroso wrote: > On Mon, Mar 29, 2010 at 9:06 AM, Dotan Cohen wrote: > >> Why don't you just post what you've got? You will most probably find > >> someone who can explain not only where the problem is but how to read > >> it, too. > >> > > > > In the ge

Re: How to read log files

2010-03-29 Thread Camaleón
On Mon, 29 Mar 2010 11:10:34 -0400, Jordan Metzmeier wrote: > On Mon, Mar 29, 2010 at 10:39 AM, Camaleón wrote: >> I support the person and his question, he seems to be an active (and >> productive) Debian user. >> >> Anyway, Debian and Ubuntu share almost the same source. >> >> >> > You don't th

Re: How to read log files

2010-03-29 Thread Jordan Metzmeier
On Mon, Mar 29, 2010 at 10:39 AM, Camaleón wrote: > On Mon, 29 Mar 2010 09:54:40 -0400, Jordan Metzmeier wrote: > >> We are still supporting this guy, even though it appears he is not >> running Debian? > > I support the person and his question, he seems to be an active (and > productive) Debian u

Re: How to read log files

2010-03-29 Thread Camaleón
On Mon, 29 Mar 2010 09:54:40 -0400, Jordan Metzmeier wrote: > We are still supporting this guy, even though it appears he is not > running Debian? I support the person and his question, he seems to be an active (and productive) Debian user. Anyway, Debian and Ubuntu share almost the same source

Re: How to read log files

2010-03-29 Thread Jari Fredriksson
On 28.3.2010 19:11, Dotan Cohen wrote: > Is there a good resource for learning to read log files such as the > kernel log, messages, dmesg, and such? I have been googling but found > nothing really comprehensive yet understandable for a newbie. Where > should I start? > As has been said, Google i

Re: How to read log files

2010-03-29 Thread Jordan Metzmeier
On Mon, Mar 29, 2010 at 9:50 AM, ceduardo wrote: > 2010/3/28 Dotan Cohen : >> Is there a good resource for learning to read log files such as the >> kernel log, messages, dmesg, and such? I have been googling but found >> nothing really comprehensive yet understandable for a newbie. Where >> shoul

Re: How to read log files

2010-03-29 Thread ceduardo
2010/3/28 Dotan Cohen : > Is there a good resource for learning to read log files such as the > kernel log, messages, dmesg, and such? I have been googling but found > nothing really comprehensive yet understandable for a newbie. Where > should I start? > > Thanks! > You can use "tail" console-comm

Re: How to read log files

2010-03-29 Thread Camaleón
On Mon, 29 Mar 2010 10:06:46 +0300, Dotan Cohen wrote: >> Why don't you just post what you've got? You will most probably find >> someone who can explain not only where the problem is but how to read >> it, too. >> >> > In the general sense my intention was to learn and not lazy-web the > list. Bu

Re: How to read log files

2010-03-29 Thread Javier Barroso
On Mon, Mar 29, 2010 at 9:06 AM, Dotan Cohen wrote: >> Why don't you just post what you've got? You will most probably find >> someone who can explain not only where the problem is but how to read >> it, too. >> > > In the general sense my intention was to learn and not lazy-web the > list. But yo

Re: How to read log files

2010-03-29 Thread Jordan Metzmeier
On Mon, Mar 29, 2010 at 3:06 AM, Dotan Cohen wrote: >> Why don't you just post what you've got? You will most probably find >> someone who can explain not only where the problem is but how to read >> it, too. >> > > In the general sense my intention was to learn and not lazy-web the > list. But yo

Re: How to read log files

2010-03-29 Thread Dotan Cohen
> Why don't you just post what you've got? You will most probably find > someone who can explain not only where the problem is but how to read > it, too. > In the general sense my intention was to learn and not lazy-web the list. But you are right, attached is /var/log/messages. -- Dotan Cohen

Re: How to read log files

2010-03-28 Thread Lisi
On Sunday 28 March 2010 19:26:19 Jari Fredriksson wrote: > Maybe you are not entitled to use a computer in the first place? I hope that this was a semantic/language error, and not an unpleasant comment. But it reads more like a very unpleasant comment. Lisi -- To UNSUBSCRIBE, email to debian-

Re: How to read log files

2010-03-28 Thread Ron Johnson
On 2010-03-28 14:24, Dotan Cohen wrote: On 28 March 2010 21:26, Jari Fredriksson wrote: I have no problem reading log files. But I have 25 years behind of reading those. Excellent. I hope to have a similar thing to say in the year 2035. Maybe you are not entitled to use a computer in the

Re: How to read log files

2010-03-28 Thread John Hasler
Thierry Chatelet writes: > So even if linux was born the very same year; 1991 + 25 = 2016 Log files have been around for just a _little_ bit longer than Linux has. -- John Hasler -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contac

Re: How to read log files

2010-03-28 Thread Jochen Schulz
Dotan Cohen: > > Actually, I am interested in Kernel logs and messages at the moment. > For individual software such as Apache, TFM is usually rather > adequate. But where is TFM for the kernel? Why don't you just post what you've got? You will most probably find someone who can explain not only

Re: How to read log files

2010-03-28 Thread Thierry Chatelet
On Sunday 28 March 2010 20:26:19 Jari Fredriksson wrote: Out of space man!!! Here is an extract from wikipedia: In 1991 while attending the University of Helsinki, Torvalds began to work on a non-commercial replacement for MINIX,[19] which eventually became the Linux kernel. So even if linux was

Re: How to read log files

2010-03-28 Thread Dotan Cohen
> I doubt you'll find a single resource explaining log messages of different > programs/subsystems. You might find in a program's documentation some > information about its logs, but you'll have to search for each software. > > Is there anything in particular that you are looking for, or anything i

Re: How to read log files

2010-03-28 Thread Eduardo M KALINOWSKI
On 03/28/2010 01:11 PM, Dotan Cohen wrote: Is there a good resource for learning to read log files such as the kernel log, messages, dmesg, and such? I have been googling but found nothing really comprehensive yet understandable for a newbie. Where should I start? I doubt you'll find a sing

Re: How to read log files

2010-03-28 Thread Dotan Cohen
>> I have no problem reading log files. But I have 25 years behind of >> reading those. > > Thank you for pointing that out to us. We're soo impressed. Not. > Actually, at this point I still though that Jari was trying to help. He did make a very helpful suggestion at the beginning of the thre

Re: How to read log files

2010-03-28 Thread Dotan Cohen
On 28 March 2010 21:26, Jari Fredriksson wrote: > I have no problem reading log files. But I have 25 years behind of > reading those. > Excellent. I hope to have a similar thing to say in the year 2035. > Maybe you are not entitled to use a computer in the first place? > Maybe I am not. Maybe

Re: How to read log files

2010-03-28 Thread Odd
Jari Fredriksson wrote: On 28.3.2010 21:16, Dotan Cohen wrote: Install logwatch, it will email you the essentials of daily logs. Thanks. Actually, my goal is to understand what I am reading in the logs, not just to have the error pointed out. But I will install logwatch for sure. Right now, I

Re: How to read log files

2010-03-28 Thread Jari Fredriksson
On 28.3.2010 21:16, Dotan Cohen wrote: >> Install logwatch, it will email you the essentials of daily logs. >> > > Thanks. Actually, my goal is to understand what I am reading in the > logs, not just to have the error pointed out. But I will install > logwatch for sure. > > Right now, I am fighti

Re: How to read log files

2010-03-28 Thread Dotan Cohen
> Install logwatch, it will email you the essentials of daily logs. > Thanks. Actually, my goal is to understand what I am reading in the logs, not just to have the error pointed out. But I will install logwatch for sure. Right now, I am fighting with a kernel panicking machine. Instead of googli

Re: How to read log files

2010-03-28 Thread T o n g
On Sun, 28 Mar 2010 19:11:03 +0300, Dotan Cohen wrote: > Is there a good resource for learning to read log files such as the > kernel log, messages, dmesg, and such? I have been googling but found > nothing really comprehensive yet understandable for a newbie. Where > should I start? When I used

Re: How to read log files

2010-03-28 Thread Jari Fredriksson
On 28.3.2010 19:11, Dotan Cohen wrote: > Is there a good resource for learning to read log files such as the > kernel log, messages, dmesg, and such? I have been googling but found > nothing really comprehensive yet understandable for a newbie. Where > should I start? > Install logwatch, it will