Wednesday, September 30, 2015

Checkpoint -- Smartlog -- index old log files

If you need to index old log files into Smartlog it may be necessary to edit a file that tracks which files have been already indexed by Smartlog

the file is $SMARTLOGDIR/data/FetchedFiles



The file may look like this:

 107 9 127.0.0.1 21 2015-05-17_000000.log 1431208806 1 9708034 0 0 3
108 9 127.0.0.1 21 2015-05-24_000000.log 1431813612 1 7910863 0 0 3
109 9 127.0.0.1 21 2015-05-31_000000.log 1432418405 1 8439733 0 0 3
110 9 127.0.0.1 21 2015-06-07_000000.log 1433023203 1 7357365 0 0 3
111 9 127.0.0.1 21 2015-06-14_000000.log 1433628006 1 8048319 0 0 3
112 9 127.0.0.1 21 2015-06-21_000000.log 1434232807 0 8153412 0 0 3
113 9 127.0.0.1 21 2015-06-28_000000.log 1434837602 0 10276527 0 0 3
114 9 127.0.0.1 21 2015-07-05_000000.log 1435442403 0 12461407 0 0 3
115 9 127.0.0.1 21 2015-07-12_000000.log 1436047205 0 16189388 0 0 3
116 9 127.0.0.1 21 2015-07-19_000000.log 1436652004 0 11414560 0 0 3
117 9 127.0.0.1 21 2015-07-26_000000.log 1437256807 0 9263747 0 0 3
118 9 127.0.0.1 21 2015-08-02_000000.log 1437861606 0 8361002 0 0 3
119 9 127.0.0.1 21 2015-08-09_000000.log 1438466403 0 9111011 0 0 3
120 9 127.0.0.1 21 2015-08-16_000000.log 1439071205 0 7988570 0 0 3
121 9 127.0.0.1 21 2015-08-23_000000.log 1439676004 0 7874889 0 0 3
122 9 127.0.0.1 21 2015-08-30_000000.log 1440280805 0 9151523 0 0 3
123 9 127.0.0.1 21 2015-09-06_000000.log 1440885604 0 9730888 0 0 3
124 9 127.0.0.1 21 2015-09-13_000000.log 1441490405 0 9468861 1 0 2 0 0 5844076 3
125 9 127.0.0.1 21 2015-09-20_000000.log 1442095207 1 10281874 0 0 3
126 9 127.0.0.1 23 2015-09-25_232324_1.log 1442700008 1 13718513 0 0 3
127 9 127.0.0.1 21 2015-09-27_000000.log 1443216206 1 2592371 0 0 3
128 9 127.0.0.1 21 2015-09-29_133142.log 1443304801 1 6904230 0 0 3
129 9 127.0.0.1 6 fw.log 1443526303 0 4294967295 1 0 2 0 0 2557934


Perform this procedure
 
Expert@HostName]# smartlogstop
 
[Expert@HostName]# cp  $SMARTLOGDIR/data/FetchedFiles  $SMARTLOGDIR/data/FetchedFiles_ORIGINAL
 
[Expert@HostName]# vi  $SMARTLOGDIR/data/FetchedFiles
 
 modify the 5th column from right from 0 to 1. this will force Smartlog to index the file again.

 [Expert@HostName]# smartlogstart

 

No comments:

Post a Comment