Why there are /var/adm/messages.0,messages.1,messages.2,messages.3


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Why there are /var/adm/messages.0,messages.1,messages.2,messages.3
# 1  
Old 04-19-2012
Why there are /var/adm/messages.0,messages.1,messages.2,messages.3

Hi folks,

In what circumstance does the log move to

/var/adm/messages.0.......messages.1,messages.2,messages.3 .......etc

---------- Post updated at 06:23 PM ---------- Previous update was at 06:17 PM ----------

To make my questions more understandable,
What are the processes that write to "/var/adm/messages"? From what I gathered Syslogd does the job. Am i right?
Also I saw multiple files, messages, messages.0, messages.1 and so on. Why is it so?
Also is there any other system process that writes to these files?
Any help is highly appreciated.
# 2  
Old 04-19-2012
The files are 'log rotated' - that means the current one (see ls -l [filename]) is this weeks file, file.5 is from five weeks ago. This allows you to keep messages organized by time/date. After a while the files are aged out - deleted when they are old.
# 3  
Old 04-19-2012
Does that mean /var/adm/messages are this week's files?
And /var/adm/messages.1 are files one week ago?
How about /var/adm/messages.0?
# 4  
Old 04-19-2012
It just means the logfiles were copied and reopened so they could be compressed and to prevent individual logs from getting too big. The exact details and timing depends on your log rotation system and can vary from system to system. They're likely configurable.

It would make sense for .0 to come before .1, look at them with ls -l to see which came first.

Last edited by Corona688; 04-19-2012 at 11:38 AM..
# 5  
Old 04-19-2012
It's quite common to write a script to copy (then null) logs to a file with suffix equal to date +%w (day of the week where Sunday=0 ... like in cron).

You could post a directory listing?
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Solaris

Local zone is not logging systems messages to /var/adm/messages

This is isolated to just 1 non-global zone out of many zones managed This is a Solaris 11 system on SPARC This is NOT a branded zone syslogd is active This came to our attention when one of our scripts didn't run over the weekend prompting us to check our messages logging in... (6 Replies)
Discussion started by: samthewildone
6 Replies

2. UNIX for Advanced & Expert Users

/var/adm/messages vs /var/log/messages

The /var/adm/messages in Solaris seem to log more system messages/errors compared to /var/log/messages in Linux. I checked the log level in Linux and they seem OK. Is there any other log file that contains the messages or is it just that Linux doesn't log great many things? (2 Replies)
Discussion started by: gomes1333
2 Replies

3. Solaris

uamod messages in /var/adm/messages

Hello, I am using Solaris 10 and I'm geting the folowing error in /var/adm/messages. Feb 12 09:01:18 srp21ce1 uamod: NOTICE: (uamod480 @ Q 0x600159db710) set threshold to default values Feb 12 09:01:18 srp21ce1 uamod: NOTICE: (uamod480 @ Q 0x600159db710) threshold values... (4 Replies)
Discussion started by: toshibelul
4 Replies

4. Solaris

[kern.warning] messages in /var/adm/messages

Hi Having looked through the log file /var/adm/messages i've noticed these kernel warning messages and i don't know what they mean: !-- @page { size: 8.5in 11in; margin: 0.79in } P { margin-bottom: 0.08in } --> cpudrv: NOTICE: cpu_acpi: _TSS package not found. cpudrv: WARNING:... (1 Reply)
Discussion started by: jpg.2009
1 Replies

5. Solaris

Help understanding [daemon.warning] messages in /var/adm/messages

Hi I've been using solaris for a few days now. During the install process i had some problems configuring my nic as i needed to install a third-party driver, which i got from a a linked site from the Sun Device Detector tool a ran prior to installing. I got it working eventually, but i'm... (1 Reply)
Discussion started by: jpg.2009
1 Replies

6. Solaris

/var/adm/messages

Check message file and result posted below. Can anyone tell me what this is a sign of, what does it mean? server1% more messages.0 Dec 02 09:35:06 server1 bsd-gw: Inval id protocol request (65): AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA^\\2... (6 Replies)
Discussion started by: finster
6 Replies

7. Solaris

Info req: /var/adm/messages - Kern.warning - different ID messages

Hi all, where I can find a list and meaning of the ID number (for example ID 353554 kern.warning)? Thanks in advance Pierluigi (1 Reply)
Discussion started by: Petrucci
1 Replies

8. UNIX for Advanced & Expert Users

error messages in /var/adm/messages

Hi, I have a SunFire V490, Solaris 10 with XP1024 storage and HP Library. I have noticed the following error messages in the /var/adm/messages file. These errors are being generated constantly. Also commands like devfsadm, format cfgadm etc are getting hung. After a reboot it works fine for a... (1 Reply)
Discussion started by: nitinp82
1 Replies

9. Solaris

/var/adm/messages- Help

Solaris 8/ sun 420R Checked /var/adm/messages file and got the following message: Dec 4 16:40:05 serverXYZ ConfigProvider: get_pkg_instdate: getdate failed for the standard C locale (7) Does anyone know what this means? Looked up getdate but do not understand.... Thanks. (1 Reply)
Discussion started by: finster
1 Replies
Login or Register to Ask a Question