Results 1 to 5 of 5
  1. #1
    rakeshuma is offline Member
    Join Date
    Feb 2011
    Posts
    2
    Rep Power
    0

    Default 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

  2. #2
    UrgeToLearn is offline Member
    Join Date
    Feb 2011
    Posts
    4
    Rep Power
    0

    Default

    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??

  3. #3
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

  4. #4
    rakeshuma is offline Member
    Join Date
    Feb 2011
    Posts
    2
    Rep Power
    0

    Default

    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

  5. #5
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

Similar Threads

  1. How to change into an .exe file.
    By Johanis in forum New To Java
    Replies: 14
    Last Post: 11-09-2010, 05:29 PM
  2. Change the icon of file in java
    By smn in forum SWT / JFace
    Replies: 18
    Last Post: 10-06-2010, 04:55 PM
  3. Replies: 8
    Last Post: 05-12-2010, 07:19 PM
  4. Accessing file without sharing - urgent
    By nathanr_kamal in forum Networking
    Replies: 3
    Last Post: 07-17-2008, 04:29 AM
  5. Replies: 0
    Last Post: 04-05-2008, 10:10 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •