Various logs and locations?

Status
Not open for further replies.

GrahamBB

Explorer
Joined
Sep 6, 2014
Messages
77
I've looked for threads that detail the various logs, their locations, and ideally how to understand them.

Is there a resource for at least the locations of FreeNAS and BSD logs?


Cheers
 

GrahamBB

Explorer
Joined
Sep 6, 2014
Messages
77
Specifically, I had a system email that we had a bad disk and want to go dig out which one, and the problem it's causing in the pool. By the time I was onsite and could [ull up the guid, the logs had rolled over and cleared!

In general, I think it would be very helpful to be able to dig and better understand some of the (e.g.) samba messages and master browser issues that we are still struggling to dig out.

Cheers
 

pirateghost

Unintelligible Geek
Joined
Feb 29, 2012
Messages
4,219
You don't need a GUI to get to the logs. Enable ssh and connect remotely. You can monitor the logs or configure scripts to automate log backups.
 

GrahamBB

Explorer
Joined
Sep 6, 2014
Messages
77
You don't need a GUI to get to the logs. Enable ssh and connect remotely. You can monitor the logs or configure scripts to automate log backups.
yup we are sting in. My point was that we see the errors only in the GUI window, but they are erased every night at midnight. I'd welcome any pointers to a) learning about logs and how to read them, and b) best practices to manage logs.

Cheers
 

GrahamBB

Explorer
Joined
Sep 6, 2014
Messages
77
Sorry that was sshing.
 
D

dlavigne

Guest
Are they erased or compressed and rolled over? If the latter, you can read older logs using bzcat.
 

rogerh

Guru
Joined
Apr 18, 2014
Messages
1,111
A problem with the FreeNAS log rotation system is that it rotates at a certain, quite small, size and keeps a maximum of 4 compressed versions. So if something is filling a log quickly you may have logs only for a very short time. I don't know how often this is a problem in practice.
 

GrahamBB

Explorer
Joined
Sep 6, 2014
Messages
77
A problem with the FreeNAS log rotation system is that it rotates at a certain, quite small, size and keeps a maximum of 4 compressed versions. So if something is filling a log quickly you may have logs only for a very short time. I don't know how often this is a problem in practice.
Where would those compressed logs be? I don't see them in /var/logs AFAIK.
 

SweetAndLow

Sweet'NASty
Joined
Nov 6, 2013
Messages
6,421
Where would those compressed logs be? I don't see them in /var/logs AFAIK.
They are in /var/log if you don't have any then your logs haven't rolled over.

Code:
[root@FreeNAS] /var/log# ls messages*
messages        messages.0.bz2  messages.1.bz2  messages.2.bz2  messages.3.bz2  messages.4.bz2
 

GrahamBB

Explorer
Joined
Sep 6, 2014
Messages
77
They are in /var/log if you don't have any then your logs haven't rolled over.

Code:
[root@FreeNAS] /var/log# ls messages*
messages        messages.0.bz2  messages.1.bz2  messages.2.bz2  messages.3.bz2  messages.4.bz2

Thanks, that's what I needed!
 

GrahamBB

Explorer
Joined
Sep 6, 2014
Messages
77
I said yesterday that your logs were there in /var/log

You did, and the above gave me detailed information about what was where and which files I needed to check out.
 
Status
Not open for further replies.
Top