IrcDirk / enterprise-log-search-and-archive

Automatically exported from code.google.com/p/enterprise-log-search-and-archive
0 stars 1 forks source link

node/elsa.pl indexing problem #113

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

1. Run "sh install.sh node"

What is the expected output? What do you see instead?

Got the error:

Sleeping for 60 seconds to allow ELSA to init...
init_elsa success
Executing test_elsa
Sending test log messages...
average rate = 1892.57 msg/sec, count=1893, time=1.002, (last) msg size=256, 
bandwidth=473.14 kB/sec
Sleeping for 60 seconds to allow ELSA to load batch...
test_elsa FAIL

What version of the product are you using? On what operating system?

ELSA r726. CentOS 6.4.

Please provide any additional information below.

It looks like node/elsa.pl fails to call indexer on every index_interval, 
causing test_elsa() in install.sh to fail. This may be caused by r715 of 
node/elsa.pl.

Attached are two node.log files, gathered after running loggen to generate some 
logs, one on r714 and the other on r726.

Original issue reported on code.google.com by dmitry.f...@gmail.com on 26 Mar 2013 at 6:38

Attachments:

GoogleCodeExporter commented 8 years ago
Please try new code in rev 731

Original comment by mchol...@gmail.com on 26 Mar 2013 at 6:51

GoogleCodeExporter commented 8 years ago
Still no go:

init_elsa success
Executing test_elsa
Sending test log messages...
average rate = 1893.93 msg/sec, count=1894, time=1.000, (last) msg size=256, 
bandwidth=473.48 kB/sec
Sleeping for 60 seconds to allow ELSA to load batch...
Undefined subroutine &Log::Log4perl::init called at 
/usr/local/elsa/node/Indexer.pm line 66.
test_elsa FAIL

Adding "use Log::Log4perl;" to the perl one-liner in test_elsa() dosen't help:

Executing test_elsa
Sending test log messages...
average rate = 1894.22 msg/sec, count=1895, time=1.004, (last) msg size=256, 
bandwidth=473.56 kB/sec
Use of uninitialized value $db_size in concatenation (.) or string at 
/usr/local/elsa/node/Indexer.pm line 143.
Use of uninitialized value in numeric gt (>) at /usr/local/elsa/node/Indexer.pm 
line 540.
Use of uninitialized value $db_size in concatenation (.) or string at 
/usr/local/elsa/node/Indexer.pm line 161.
Use of uninitialized value $db_size in addition (+) at 
/usr/local/elsa/node/Indexer.pm line 180.
Use of uninitialized value $db_size in addition (+) at 
/usr/local/elsa/node/Indexer.pm line 182.
Use of uninitialized value $db_size in concatenation (.) or string at 
/usr/local/elsa/node/Indexer.pm line 198.
Use of uninitialized value $db_size in addition (+) at 
/usr/local/elsa/node/Indexer.pm line 219.
test_elsa FAIL

Original comment by dmitry.f...@gmail.com on 26 Mar 2013 at 7:36

GoogleCodeExporter commented 8 years ago
This should now be fixed, try again, please.

Original comment by mchol...@gmail.com on 26 Mar 2013 at 7:44

GoogleCodeExporter commented 8 years ago
Works fine in r743, thank You.

Original comment by dmitry.f...@gmail.com on 28 Mar 2013 at 3:21