Sponsored Content
Operating Systems AIX need to extract info from log files Post 302130587 by kirantalla on Tuesday 7th of August 2007 01:13:23 AM
Old 08-07-2007
need to extract info from log files

hi guys i need to extract information from log files generated by an application.


log file has the following lines for each process..
----------------------------------------------

Fri Aug 03 12:06:43 WST 2007 INFO: Running project PROJECT1
Fri Aug 03 12:06:43 WST 2007 INFO: Source Files For Project:PROJECT1
Fri Aug 03 12:06:43 WST 2007 INFO: [0]=/full/path/to/the/pdf/file/file name 001.pdf
Fri Aug 03 12:07:41 WST 2007 INFO: Done GC=1186114061306
Fri Aug 03 12:07:41 WST 2007 INFO: Returning true from deleteSources()
Fri Aug 03 12:07:41 WST 2007 INFO: Done running project PROJECT1

Fri Aug 03 12:06:43 WST 2007 INFO: Running project PROJECT2
Fri Aug 03 12:06:43 WST 2007 INFO: Source Files For Project:PROJECT2
Fri Aug 03 12:06:43 WST 2007 INFO: [0]=/full/path/to/the/pdf/file/file name 002.pdf
Fri Aug 03 12:07:30 WST 2007 INFO: Running plugin Extract Data from PDF
Fri Aug 03 12:07:30 WST 2007 INFO: Starting runPlugin()
Fri Aug 03 12:07:41 WST 2007 ERROR: Cannot process the file
Fri Aug 03 12:07:41 WST 2007 INFO: Done running project PROJECT2

Fri Aug 03 12:06:43 WST 2007 INFO: Running project PROJECT3
Fri Aug 03 12:06:43 WST 2007 INFO: Source Files For Project:PROJECT3
Fri Aug 03 12:06:43 WST 2007 INFO: [0]=/full/path/to/the/pdf/file/file name 003.pdf
Fri Aug 03 12:07:30 WST 2007 INFO: Running plugin Extract Data from PDF
Fri Aug 03 12:07:30 WST 2007 INFO: Starting runPlugin()
Fri Aug 03 12:07:41 WST 2007 ERROR: File Rollback
Fri Aug 03 12:07:41 WST 2007 INFO: Done running project PROJECT3

Result

file name 001.pdf : Success
file name 002.pdf : Failed
file name 003.pdf : Rollback


i could only extract the lines, but i could not format the output.. hope i will get a solution.

thanx

Last edited by kirantalla; 08-20-2007 at 05:18 AM..
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

using cut to extract info

a simple question, how can i use cut (after using grep) to extract the last four digits on a line. so say i had a string http://blabla:9020, how would I extract the port?? -Fez (4 Replies)
Discussion started by: hafhaq
4 Replies

2. UNIX for Advanced & Expert Users

How to find all the log files under the root directory -- Need Info

Hi I need to find all the log files under the root directory and delete them if necessary, if any one has a sample script who can share with me. Thanks (2 Replies)
Discussion started by: gkrishnag
2 Replies

3. AIX

Extract info

Anyone have a better idea to automate extraction of info like ... "uname" "ifconfig" "ps efl" "netstat -ao" etc. from several hundred aix, solaris, red hat boxes? without logging into each box and manually performing these tasks and dumping them to individual files? thanks for any input (1 Reply)
Discussion started by: chm0dvii
1 Replies

4. IP Networking

How to extract NIC and other info ,given Ip

Hi all, I am working on a networking project that requires me to find out the NIC on that particular machine and many more things. Now Given the IP and the subnet. I would like to know how we can extract such informations? I am talking in exclusivity to Solaris boxes!! The required... (6 Replies)
Discussion started by: wrapster
6 Replies

5. Shell Programming and Scripting

Extract info from csv

I have some input file, which contains some lines which are comma separated. Eg. a,b,id=999],d d,f,g,id=345],x x,y,x,s,id=677],y I run a loop to read the lines one by one. What i want is to extract the value on the right of id=. I cannot do it by Awk, since the column number is not fixed.... (5 Replies)
Discussion started by: indianjassi
5 Replies

6. Shell Programming and Scripting

Extract info from log file and compute using time date stamp

Looking for a shell script or a simple perl script . I am new to scripting and not very good at it . I have 2 directories . One of them holds a text file with list of files in it and the second one is a daily log which shows the file completion time. I need to co-relate both and make a report. ... (0 Replies)
Discussion started by: breez_drew
0 Replies

7. Shell Programming and Scripting

How to extract log info based on last month?

Hi Gurus I'm using HPUX B.11.23 ia64, the below sample log data was extracted from HPUX commnad: last -R. Sample data: root pts/ta userpc Wed Aug 11 09:46 - 20:21 (10:35) root pts/ta userpc Wed Aug 11 09:44 - 20:10 (10:34) root pts/ta userpc Wed Aug 11... (4 Replies)
Discussion started by: superHonda123
4 Replies

8. Shell Programming and Scripting

Extract portion of log info based on specific word

Hi Gurus, I'm using HP-UX B.11.23 operating system. I've been trying to extract a specific wording for example: "A tool used by tp produced warnings" from my below log data, but could not find a way to solve it. My intention is, if the log contain the word: "A tool used by tp produced... (9 Replies)
Discussion started by: superHonda123
9 Replies

9. Shell Programming and Scripting

HELP: Shell Script to read a Log file line by line and extract Info based on KEYWORDS matching

I have a LOG file which looks like this Import started at: Mon Jul 23 02:13:01 EDT 2012 Initialization completed in 2.146 seconds. -------------------------------------------------------------------------------- -- Import summary for Import item: PolicyInformation... (8 Replies)
Discussion started by: biztank
8 Replies

10. Shell Programming and Scripting

Compare two files and extract info

Hello, I have two files which look like this File 1 Name test1 status P Gene1 0.00236753 1 1.00E-01 Gene2 0.134187 2 2.00E-01 Gene3 0.000608716 2 3.00E-01 Gene4 0.0016234 1 4.00E-01 Gene5 0.000665868 2 5.00E-01and file 2 No Pos ... (2 Replies)
Discussion started by: nans
2 Replies
set_color(1)							       fish							      set_color(1)

NAME
set_color - set_color - set the terminal color set_color - set the terminal color Synopsis set_color [-v --version] [-h --help] [-b --background COLOR] [COLOR] Description Change the foreground and/or background color of the terminal. COLOR is one of black, red, green, brown, yellow, blue, magenta, purple, cyan, white and normal. o -b, --background Set the background color o -c, --print-colors Prints a list of all valid color names o -h, --help Display help message and exit o -o, --bold Set bold or extra bright mode o -u, --underline Set underlined mode o -v, --version Display version and exit Calling set_color normal will set the terminal color to whatever is the default color of the terminal. Some terminals use the --bold escape sequence to switch to a brighter color set. On such terminals, set_color white will result in a grey font color, while set_color --bold white will result in a white font color. Not all terminal emulators support all these features. This is not a bug in set_color but a missing feature in the terminal emulator. set_color uses the terminfo database to look up how to change terminal colors on whatever terminal is in use. Some systems have old and incomplete terminfo databases, and may lack color information for terminals that support it. Download and install the latest version of ncurses and recompile fish against it in order to fix this issue. Version 1.23.1 Sun Jan 8 2012 set_color(1)
All times are GMT -4. The time now is 12:55 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy