Sponsored Content
Top Forums Shell Programming and Scripting How can view log messages between two time frame from /var/log/message or any type of log files Post 302538873 by johnveslin on Thursday 14th of July 2011 11:54:52 AM
Old 07-14-2011
How can view log messages between two time frame from /var/log/message or any type of log files

How can view log messages between two time frame from /var/log/message or any type of log files.

when logfiles are very big and especially many messages with in few minutes, I would like to display log messages between 5 minute interval.

Could you pls give me the command?
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Send-file /var/log/message

Hello All i need Shell Script to send /var/log/message or another if he have or grep this file to have some info like PID or value (e.g like NFS mount - stop ) to some body in my System Thanks for Advanced (2 Replies)
Discussion started by: Hosam
2 Replies

2. UNIX for Dummies Questions & Answers

help interpreting var/log/messages log

I'm using RHEL and my var/log/messages file is filled with "FTP session opened/closed" lines that happen all day: Aug 2 04:04:38 web proftpd: 74.125.56.10 (142.231.76.249) - FTP session closed. Aug 2 04:05:11 web proftpd: 74.125.56.10 (142.231.88.123) - FTP session opened.Is this normal? We... (2 Replies)
Discussion started by: gaspol
2 Replies

3. Solaris

diff b/w /var/log/syslog and /var/adm/messages

hi sirs can u tell the difference between /var/log/syslogs and /var/adm/messages in my working place i am having two servers. in one servers messages file is empty and syslog file is going on increasing.. and in another servers message file is going on increasing but syslog file is... (2 Replies)
Discussion started by: tv.praveenkumar
2 Replies

4. UNIX for Dummies Questions & Answers

Message in /var/log/messages: Cannot do reverse lookup

Hi I have an entry in hosts.deny and now I get the following message in /var/log/messages: g 21 09:30:46 machine sshd: Failed password for illegal user d from ::ffff:213.229.69.42 port 57181 ssh2 Aug 21 09:30:46 machine sshd: Received disconnect from ::ffff:213.229.69.42: 11: Bye Bye Aug 21... (2 Replies)
Discussion started by: mojoman
2 Replies

5. UNIX for Dummies Questions & Answers

Message in /var/log

What does this message mean: Dec 16 04:30:01 vader kernel: target2:0:4: FAST-10 SCSI 10.0 MB/s ST (100 ns, offset 8) (2 Replies)
Discussion started by: mojoman
2 Replies

6. Solaris

Difference between /var/log/syslog and /var/adm/messages

Hi, Is the contents in /var/log/syslog and /var/adm/messages are same?? Regards (3 Replies)
Discussion started by: vks47
3 Replies

7. Linux

Can we delete /var/log/messages-2015* files

Hi Team, My linux version is Linux 2.6.32-71.el6.x86_64 #1 SMP Wed Sep 1 01:33:01 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux Now /var mount point is full, and I don't know what files to delete from this file system. When I checked /var/log there are lot of log files starting with name... (3 Replies)
Discussion started by: Bhavi
3 Replies

8. Shell Programming and Scripting

Help on script to capture info on log file for a particular time frame

Hi I have a system running uname -a Linux cmovel-db01 2.6.32-38-server #83-Ubuntu SMP Wed Jan 4 11:26:59 UTC 2012 x86_64 GNU/Linux I would like to capture the contents of /var/log/syslog from 11:00AM to 11:30AM and sent to this info via email. I was thinking in set a cron entry at that... (2 Replies)
Discussion started by: fretagi
2 Replies

9. Shell Programming and Scripting

Log all the commands input by user at real time in /var/log/messages

Below is my script to log all the command input by any user to /var/log/messages. But I cant achieve the desired output that i want. PLease see below. function log2syslog { declare COMMAND COMMAND=$(fc -ln -0) logger -p local1.notice -t bash -i -- "$USER:$COMMAND" } trap... (12 Replies)
Discussion started by: invinzin21
12 Replies

10. Shell Programming and Scripting

Transfer the logs being thrown into /var/log/messages into another file example /var/log/volumelog

I have been searching and reading about syslog. I would like to know how to Transfer the logs being thrown into /var/log/messages into another file example /var/log/volumelog. tail -f /var/log/messages dblogger: msg_to_dbrow: no logtype using missing dblogger: msg_to_dbrow_str: val ==... (2 Replies)
Discussion started by: kenshinhimura
2 Replies
defragcron(8)						      System Manager's Manual						     defragcron(8)

NAME
defragcron - Schedules AdvFS file domains for defragmenting SYNOPSIS
/usr/sbin/defragcron [-p] [-q] [-t nnn] [-b hh:mm] [-a hh:mm] [-l pathname] [domain...] /usr/sbin/defragcron [-p] [-q] [-t nnn] [-T mm] [-l pathname] [domain...] OPTIONS
Specifies that the domains are to be defragmented in parallel. If not specified, the default is to serially defragment the domains. Sup- press informational messages. If not specified, the default is to produce informational messages. Specifies the aggregate I/O performance threshold, the point at which the domain should be defragmented. A number from 1-100. If not specified, the default is to always defrag- ment the domain. The performance threshold is based on the value returned by the defragment -nv command. If this value is lower than or equal to the value specified here, the domain is defragmented. If specified, the utility will not run before this time and will return an error if the time is not yet reached. Specify time values using the 24-hour clock. If not specified, the default time is 01:00. If specified, the utility will not run after this time, and will return an error if the time has been passed. Specify time values using the 24-hour clock. If not specified, the default time is 05:00. Specifies an exact time interval, in minutes, for the defragment utility to run. If not specified, there is no default. If you use this option, its action overrides the before and after time checking of the -a and -b options. Specify the -l option to direct messages to log files in the specified directory. One log file is generated for nonspecific messages and separate log files are generated for each domain that is defragmented. If the option is not specified, the default action is to not produce log files for the messages (which then are directed to the standard output device). If the option is specified, you also must specify a pathname for the directory into which the log files are to be written. The default directory, as specified in the root crontab entry, is /usr/var/defragcron/. The names of the log files have the following format: domain1.log, domain2.log, ..., and so on, one file for each active domain, plus a file, defragcron.log for the nonspecific messages. If you have named a domain defragcron, messages for that domain are writ- ten to the nonspecific messages in the defragcron.log file. OPERANDS
Specifies one or more AdvFS file domains. If no domains are specified, the default action is for the utility to defragment all active AdvFS file domains. DESCRIPTION
The defragcron utility runs the defragment utility to a schedule that you specify on all active AdvFS file domains or on the active domains you specify. The typical use of this utility is to run it as a command in the cron daemon. See cron(8). Unless the domain is listed in the comand line, the utility does not attempt to defragment inactive file domains (those which have no mounted filesets). It can try to defragment file domains that have some mounted and some unmounted filesets. In this case, the utility fails. RESTRICTIONS
You must have root user privileges to run this utility. All restrictions for the defragment utility are in effect for the defragcron utility. EXIT STATUS
The utility returns a 0 (zero) on success. Otherwise, it returns a 1 and an error diagnostic. EXAMPLES
The following example defragments all active domains that have an aggregate I/O performance threshold less than or equal to 60 for an interval of 240 minutes: # /usr/sbin/defragcon -q -t 60 -T 240 FILES
The command's path. The path of the defragment utility. SEE ALSO
Commands: crontab(1), cron(8), defragment(8) defragcron(8)
All times are GMT -4. The time now is 01:22 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy