kodeswarank / enterprise-log-search-and-archive

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

log_size_limit % doesn't work #204

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Configure as follows: "log_size_limit" : 95%,
2. Comment out the default value as follows: "log_size_limit" : 200000000000,
3. ???
4. Profit!

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

I expect the percent value to work as described in the comment. Instead, 
running echo "" | perl /usr/local/elsa/node/elsa.pl -o results in this:

Couldn't parse JSON in config file '/etc/elsa_node.conf'
 at /usr/local/share/perl5/Config/JSON.pm line 37.
        Config::JSON::__ANON__('Config::JSON=HASH(0x44eeb38)', '/etc/elsa_node.conf') called at constructor Config::JSON::new (defined at /usr/local/share/perl5/Config/JSON.pm line 668) line 41
        Config::JSON::new('Config::JSON', '/etc/elsa_node.conf') called at /usr/local/elsa/node/elsa.pl line 59

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

Sphinx  Sphinx 2.1.0-id64-dev (r3230)
Date     2014-01-15 23:43:00 -0600 (Wed, 15 Jan 2014)
Author   mcholste
Rev  1154

OS: GNU/Linux - Oracle Linux Server release 6.2

Please provide any additional information below.

Changing it back to the static value clears the JSON error.

Original issue reported on code.google.com by lib...@gmail.com on 11 Mar 2014 at 5:03

GoogleCodeExporter commented 9 years ago
For number 2 above, I did actually put the comment hash in, but I didn't copy 
that to this ticket.

Original comment by lib...@gmail.com on 11 Mar 2014 at 5:04

GoogleCodeExporter commented 9 years ago
You need to put the percentage in quotes, e.g. "95%"

Original comment by mchol...@gmail.com on 23 Mar 2014 at 10:19

GoogleCodeExporter commented 9 years ago
OK, please update the instruction line in the file.

Original comment by lib...@gmail.com on 24 Mar 2014 at 2:58