Hello all,

I am new to perl. I am trying to analyze and insert do database some
data from bunch of weird unicode log files. I did manage to complete
Unicode and database part but now log analysis - thats the area where
I need some help...

Log file has following structure:

**********************************************************
  Process Report File
  Start date & time:    6/4/2007    6:08:56 AM

  Process Settings:
  ------------------------------
  => Setting 1
  => Setting 2
  => Setting 3
  => Setting 4

  Report file: C:\logs\PSTMig_20070604060856.txt

  Files to be processed:
  ------------------------------------------------------
  PST: G:\#HOU- Template Boston ATPW_TEMPLATEBOSTON.pst  -->  Archive:
JournHist01;   Retention Category: AIM
  PST: G:\#HOU- Template New York ATPW_TEMPLATENEWYORKATPW.pst  -->
Archive: JournHist01;   Retention Category: AIM
  PST: G:\#PWM- Exchange Test Account_EXCHANGETESTACCOUNT.pst  -->
Archive: JournHist01;   Retention Category: AIM

  End time:     7:19:27 AM
  Report file: C:\Program Files\Enterprise Vault\Reports
\PSTMig_20070604060856.txt

  Some of the PSTs contained items that were not eligible for archive.
  These items have not been archived and remain in the PSTs.
  See the Help for information on how to migrate these items.

  PSTs containing ineligible items:
 
---------------------------------------------------------------------------------------------------
  PST: G:\#HOU- Template Boston ATPW_TEMPLATEBOSTON.pst  -->  Vault:
JournHist01
  PST: G:\#PWM- PF Admin_PWMPFADMIN.pst  -->  Vault: JournHist01
  PST: G:\698\ANTIGEN_BOSTON_ANTIGEN_BOSTON.pst  -->  Vault:
JournHist01

  PSTs successfully processed:
  --------------------------------------------
  PST: G:\Carpenter, Jeffrey_JEFFREYC.pst  -->  Vault: JournHist01 (1
items archived)

  PST: G:\DBAGENT - Boston_DBAGENTA.pst  -->  Vault: JournHist01 (0
items archived)

  PST: G:\Demo Account_DACCOUNT.pst  -->  Vault: JournHist01 (0 items
archived)

  PSTs partially processed:
  ---------------------------------------------------------------
  PST: G:\#HOU- Template Boston ATPW_TEMPLATEBOSTON.pst  -->  Vault:
JournHist01

    Items archived:                     0 (of 1)
    Items failed archiving:             0
    Items not eligible for archiving:           1

  PST: G:\#PWM- PF Admin_PWMPFADMIN.pst  -->  Vault: JournHist01

    Items archived:                     0 (of 41)
    Items failed archiving:             0
    Items not eligible for archiving:           41

  PST: G:\ANTIGEN_BOSTON_ANTIGEN_BOSTON.pst  -->  Vault: JournHist01

    Items archived:                     474 (of 614)
    Items failed archiving:             0
    Items not eligible for archiving:           140

**********************************************************


File is divided into 5 'parts' - I need to extract list of files to be
processed and then search again for each file and find out what was a
migration status, basicly...

My question is - how to parse such a file ? I am failing on whole
logic.

Can anyone help me ? Any ideas are greatly appreciated...


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to