Sample log file name is sample.txt,stored in say "c:\test" folder.The contents of sample.txt is as follows:
>view tob tod peri=1dy fn=a1201020000 grp=ral
12/02/02_01:08:01 worli sigma146
### view tob start ###
##route analysis traffic observation data##
##status=nom##
#ral=rut_mf2b-rut_htub#
atpt rec-comp ans-comp bsy-sub rg-aban rg-to
0000000904 0000000904 0000000510 0000000254 0000000070 0000000007
pd-aban pd-to cng-itra bsy-ckt cng-itr1 cng-itr2
0000000000 0000000000 0000000001 0000000000 0000000000 0000000000
err-rec err-snd rec-to snd-to err-trns err-rut
0000000000 0000000000 0000000000 0000000000 0000000000 0000000000
rst-sub rst-rut acmto bsig-nrc vcno vcno1000
0000000010 0000000000 0000000000 0000000000 0000000000 0000000000
n-trmv n-disc n-uasn n-chgd other usg-ans
0000000000 0000000000 0000000042 0000000000 0000000010 00003.65
usg-comp usg-icmp usg-ovall
00003.70 00000.03 00003.72
#ral=rut_mp4b-rut_htub#
atpt rec-comp ans-comp bsy-sub rg-aban rg-to
0000000409 0000000409 0000000207 0000000067 0000000069 0000000013
pd-aban pd-to cng-itra bsy-ckt cng-itr1 cng-itr2
0000000000 0000000000 0000000000 0000000000 0000000000 0000000000
err-rec err-snd rec-to snd-to err-trns err-rut
0000000000 0000000000 0000000000 0000000000 0000000000 0000000000
rst-sub rst-rut acmto bsig-nrc vcno vcno1000
0000000005 0000000000 0000000000 0000000000 0000000000 0000000000
n-trmv n-disc n-uasn n-chgd other usg-ans
0000000000 0000000000 0000000017 0000000000 0000000031 00002.14
usg-comp usg-icmp usg-ovall
00002.16 00000.04 00002.20
12/02/02_01:08:08 worli sigma146
...view tob end
>view tob tod peri=1hr fn=a1201021100 grp=ral
12/02/02_01:08:31 worli sigma146
### view tob start ###
##route analysis traffic observation data##
##status=nom##
#ral=rut_mf2b-rut_htub#
atpt rec-comp ans-comp bsy-sub rg-aban rg-to
0000000081 0000000081 0000000052 0000000018 0000000008 0000000000
pd-aban pd-to cng-itra bsy-ckt cng-itr1 cng-itr2
0000000000 0000000000 0000000000 0000000000 0000000000 0000000000
err-rec err-snd rec-to snd-to err-trns err-rut
0000000000 0000000000 0000000000 0000000000 0000000000 0000000000
rst-sub rst-rut acmto bsig-nrc vcno vcno1000
0000000000 0000000000 0000000000 0000000000 0000000000 0000000000
n-trmv n-disc n-uasn n-chgd other usg-ans
0000000000 0000000000 0000000003 0000000000 0000000000 00005.86
usg-comp usg-icmp usg-ovall
00005.99 00000.06 00006.05
#ral=rut_mp4b-rut_htub#
atpt rec-comp ans-comp bsy-sub rg-aban rg-to
0000000032 0000000032 0000000018 0000000005 0000000005 0000000002
pd-aban pd-to cng-itra bsy-ckt cng-itr1 cng-itr2
0000000000 0000000000 0000000000 0000000000 0000000000 0000000000
err-rec err-snd rec-to snd-to err-trns err-rut
0000000000 0000000000 0000000000 0000000000 0000000000 0000000000
rst-sub rst-rut acmto bsig-nrc vcno vcno1000
0000000000 0000000000 0000000000 0000000000 0000000000 0000000000
n-trmv n-disc n-uasn n-chgd other usg-ans
0000000000 0000000000 0000000002 0000000000 0000000000 00002.39
usg-comp usg-icmp usg-ovall
00002.45 00000.08 00002.52
12/02/02_01:08:40 worli sigma146
...view tob end
The column names should be as follows:
raldtdate
raltime
atpt
rec_comp
ans_comp
bsy_sub
rg_aban
rg_to
pd_aban
pd_to
cng_itra
bsy_ckt
cng_itr1
cng_itr2
err_rec
err_snd
rec_to
snd_to
err_trns
err_rut
rst_sub
rst_rut
n_trmv
n_disc
usg_comp
usg_icmp
n_uasn
n_chgd
other
usg_ans
usg_ovall
Now how do I process this file an load the value corresponding to each column denoted by the value below the corresponding name in sample file.Please help with code to process the sample file.