Results 1 to 5 of 5
- 02-18-2011, 09:07 AM #1
Member
- Join Date
- Feb 2011
- Posts
- 2
- Rep Power
- 0
Urgent help to change value of log file
Hi,
I have a daily generated iis logfile , inside the logfile there is an id which is unique now i need to replace the id to the title and that title and corresponding ID is present in xlsheet.
So now i need to check each row having the title aginst the logfile row and need to replace accordingly.
samplelog file
2011-02-17 12:58:31 172.30.9.191 GET /Gatekeeper.aspx type=wel&id=wel-epub/MMS1234567.epub 80 - 180.129.52.192 MobileRead/1.0+CFNetwork/485.12.7+Darwin/10.4.0 500 0 64 131072 172265
MMS1234567 needs to be replaced to title Charles Darwin similarly 200 ID are there
Please help
- 02-18-2011, 09:50 AM #2
Member
- Join Date
- Feb 2011
- Posts
- 4
- Rep Power
- 0
Hey if u r trying to extract this unique ID then use the concept of substring. Please specif your question more clearly..
You need to replace the log files entries or you wan tto take some data from the log file and append it to the title??
- 02-18-2011, 10:27 AM #3
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
How this is related with Java? This is a Java forum, please focus on related stuff.
- 02-21-2011, 02:12 AM #4
Member
- Join Date
- Feb 2011
- Posts
- 2
- Rep Power
- 0
Hi,
thanks for reply. ok my logfile is exyymmdd.log now i need to read the log file using java program of previous day i.e (exyymmdd, -1) after reading the log file i need to check the value which start with MMS12345.book(numbers are changing) when I come across the MMS12345.book in the log , i need to map it with a xlsheet which has the corresponding title, and then replace the MMS12345 with that title.
The above can i do in one single java program.
Kindly help me with ur valuable input
Thanks for your patience and time
Regards
Uma
- 03-01-2011, 04:01 PM #5
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
Just looking at your requirement I can say that it's possible to done with Java.
Did you try to do anything on that yet?
Similar Threads
-
How to change into an .exe file.
By Johanis in forum New To JavaReplies: 14Last Post: 11-09-2010, 05:29 PM -
Change the icon of file in java
By smn in forum SWT / JFaceReplies: 18Last Post: 10-06-2010, 04:55 PM -
how to change the layout of an input file and write to an output file
By renu in forum New To JavaReplies: 8Last Post: 05-12-2010, 07:19 PM -
Accessing file without sharing - urgent
By nathanr_kamal in forum NetworkingReplies: 3Last Post: 07-17-2008, 04:29 AM -
How to change the date of modification of a file
By Java Tip in forum java.ioReplies: 0Last Post: 04-05-2008, 10:10 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks