Results 1 to 4 of 4
  1. #1
    Rajita is offline Member
    Join Date
    Aug 2011
    Posts
    2
    Rep Power
    0

    Default Seaching a string and date in a different logfile

    Hello friends,

    I would like to search a string and date in logfile using the java. please suggest me a good technology for this (like servlets or hybernate or anything else in java). and how ? please advise me..
    Thank you in advance

  2. #2
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    11,863
    Rep Power
    19

    Default Re: Seaching a string and date in a different logfile

    Open the file and read it line by line looking for the data?
    Please do not ask for code as refusal often offends.

    ** This space for rent **

  3. #3
    Rajita is offline Member
    Join Date
    Aug 2011
    Posts
    2
    Rep Power
    0

    Default Re: Seaching a string and date in a different logfile

    Thank you for reply....

    Ya, i meant file should not be static. Because i have 500 different files to search in same machine.
    so every time i have to select the file, in which i would like to do search for some specific string.
    Hope am clear. and i am unable to sort this problem. can i use jsp to retrive different file names fro the user side and
    then send that path to java program (servlet) and then read the file and search for string (string is also a dynamic)?
    Please need your help and suggestions.

    Thank you in advance

  4. #4
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    11,863
    Rep Power
    19

    Default Re: Seaching a string and date in a different logfile

    So, this is now a web app?
    Sorry, but you're going to have to explain what it is you are trying to do.
    Please do not ask for code as refusal often offends.

    ** This space for rent **

Similar Threads

  1. Seaching a text file for credit card numbers
    By javamann in forum New To Java
    Replies: 9
    Last Post: 11-21-2011, 12:44 AM
  2. string date to formatted date string
    By reach2sudhakar in forum New To Java
    Replies: 4
    Last Post: 06-20-2011, 10:06 AM
  3. converting string (GMT date) to date in US time.
    By JRuyechan in forum New To Java
    Replies: 1
    Last Post: 10-15-2010, 07:07 AM
  4. convert String date to Date
    By computerbum in forum New To Java
    Replies: 7
    Last Post: 09-18-2010, 03:26 PM
  5. [SOLVED] Read From LOGFILE
    By Mir in forum New To Java
    Replies: 394
    Last Post: 06-19-2008, 02:20 PM

Posting Permissions

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