give me a shell-script which extract data from log file on a server by giving date and time as input (for both start time and end time) and it will give the logs generated during the given time as output. (4 Replies)
Hi all,
I have a file which contains comments,dotted lines(-------),actual records etc.I need to fetch only the actual records and put into a new file neglecting/deleting other rows.I have a header record too which contains the column names for the actual records.i need to discard this too.how... (5 Replies)
Hi , I am having a script which will start a process and appends the process related logs to a log file. The log file writes logs with every line starting with date in the format of: date +"%Y %b %d %H:%M:%S".
So, in the script, before I start the process, I am storing the date as DATE=`date +"%Y... (5 Replies)
If I have a log like :
Mon Jul 19 05:07:34 2010; TCP; eth3; 52 bytes; from abc to def
Mon Jul 19 05:07:35 2010; UDP; eth3; 46 bytes; from aaa to bbb
Mon Jul 19 05:07:35 2010; TCP; eth3; 52 bytes; from def to ghi
I will need an output like this :
Time abc to def... (1 Reply)
Please help me out to extract the Data from the XML Log files.
So here is the data
ERROR|2010-08-26 00:05:52,958|SERIAL_ID=128279996|ST=2010-08-2600:05:52|DEVICE=113.2.21.12:601|TYPE=TransactionLog... (9 Replies)
Hi All,
I have two input file and need to generate a CSV file. The existing report just "GREP" the records with the Header and Tailer records with the count of records.
Now i need to split the data into 25 records each in the same CSV file.
id_file (Input file )
227050994
232510151... (4 Replies)
I'd like to copy strings from a log file and put them into a CSV.
The strings could be on different line numbers, depending on size of log.
Example Log File:
File = foo.bat
Date = 11/11/11
User = Foo Bar
Size = 1024
...
CSV should look like:
"foo.bat","11/11/11","Foo Bar","1024" (7 Replies)
I was searching for parsing a log file and found what I need in this link
http://stackoverflow.com/questions/7575267/extract-data-from-log-file-in-specified-range-of-time
But the most useful answer (posted by @Kent):
# this variable you could customize, important is convert to seconds.
# e.g... (2 Replies)
Hi,
I am trying to extract lines of data within a log file on a Redhat 5 Linux system.
eg I need all the lines with a particular username over the last 3 minutes.
the log file may read like this, and I want a way to search all the lines extracting all the relevant lines over the last 3... (2 Replies)
So, we have a script, that is supposed to have a couple of functions like showing number of failed connections, recieved bytes per IP-address, and so on. We are supposed to be able to limit the number of results to either 0-24 hours or X days back from the last data in the log file.
Everything... (3 Replies)
Discussion started by: Plumpen
3 Replies
LEARN ABOUT REDHAT
xchklog
xchklog(8) JFS utility - extract fsck.jfs log xchklog(8)NAME
xchklog - extract a log from the JFS fsck workspace into a file
SYNOPSIS
xchklog [ -f output.file ] [ -p ] [ -V ] device
DESCRIPTION
xchklog extracts the contents of either the most recent or immediately prior JFS fsck service log from the specified device, and writes the
output into a specified or default file. (The default file name is <pwd>fscklog.new. If the -p option is used, the default file name is
<pwd>fscklog.old.)
The contents of the output file can be formatted into text by using the JFS utility xchkdmp.
device is the special file name corresponding to the actual device from which the fsck log will be extracted (e.g. /dev/hdb1 ).
OPTIONS -f output.file
Specify the output file name, overriding the default file name.
output.file must be 127 characters or less in length.
output.file will be created in the present working directory unless it is fully qualified.
-p Extract the prior log (as opposed to the most recent log).
-V Print version information and exit (regardless of any other chosen options).
EXAMPLES
Extract the most recent log on /dev/hda5 into <pwd>fscklog.new:
xchklog /dev/hda5
Extract the most recent log on /dev/hdb3 into /temp/l9651107.log:
xchklog -f /temp/l9651107.log /dev/hdb3
Extract the prior log on /dev/hdb4 into <pwd>fscklog.old:
xchklog -p /dev/hdb4
REPORTING BUGS
If you find a bug in JFS or xchklog, please report it via the bug tracking system ("Report Bugs" section) of the JFS project web site:
http://oss.software.ibm.com/jfs
Please send as much pertinent information as possible, including any xchklog error messages and the complete output of running fsck.jfs
with the -v option on the JFS device.
SEE ALSO xchkdmp(8), mkfs.jfs(8), fsck.jfs(8), logdump(8), logredo(8), xpeek(8)AUTHOR
Barry Arndt (barndt@us.ibm.com)
xchklog is maintained by IBM.
See the JFS project web site for more details:
http://oss.software.ibm.com/jfs
January 11, 2002 xchklog(8)